I already have my forum script, users can post in the forums and create topics but I want to give every user there own profile how would I begin ?
user profile script
Started on the old forum in April 2012 · view the original in the archive · old links redirect here
im a little confused myself on the while loop arnage?
Personally i would start with the database and adding new rows to the users sql such as location, about etc etc
Now by sounds of things you already have a forum set up which would also mean you would need to set up an edit profile page as well
damn things are starting to get longer.......
Does a quick exit out the of topic thinking "nooooooooo way to much work than i will do for free" lol
=]
thanks ill start and maybe share the script when im done 🙂 just one quick thing I get error with this code
<?php
echo '<a href='/redirect/"member_profile.php?username=''. $name['user'] . '">' . $name['user'] . '</a>';
?>
Yep, he said: "I already have my forum script, users can post in the forums and create topics"
... which means that they have registered and "collecting data" is with query with while loop for first step.
For example:
$read = mysql_query('SELECT * FROM `registered_users` // the rest of query');
while ($users_info = mysql_fetch_array($read)) {
echo $users_info['registered_id'].' <a href="./index.php?page=profile&id='.$users_info['registered_id'].'">'.$users_info['registered_nick'].'</a><br/>';
}
Than goes to list the profile:
$user_profile = mysql_fetch_array(mysql_query('SELECT * FROM `registered_users` WHERE `registered_id` = '.$id.''));
echo 'your id is: '.$user_profile['registered_id'].' Name: '.$user_profile['registered_id'].'...';
My point was him to ask and show what data registered users have and show him step by step.
Matt_dowd91 wrote: thanks ill start and maybe share the script when im done 🙂 just one quick thing I get error with this code
<?php echo '<a href='/redirect/"member_profile.php?username=''. $name['user'] . '">' . $name['user'] . '</a>'; ?>
<?php
echo '<a href="/redirect/member_profile.php?username='. $name['user'] . '">' . $name['user'] . '</a>';
?>
thanks
<?php echo '<a href="/redirect/member_profile.php?username='. $name['user'] . '">' . $name['user'] . '</a>'; ?>
thanks I got muddled up lol 🙂
Matt_dowd91 wrote: thanks I got muddled up lol :)
also add more rows to ur user sql, insert more data.. and hit thanks instead of writting thanks doe s/r or anyobdy else.