user profile script

Started on the old forum in April 2012 · view the original in the archive · old links redirect here

7 replies · 570 views · started 14 years ago · 1 min read

4 participants
Matt_dowd91 Junior · 19 posts #1

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 ?

arnage Lead · 811 posts #2

You need to collect their registration data, do while() loop and display it on the profile page. Its several lines, not script so thread moved in Coding forum.

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
something else Fellow · 2,296 posts #3

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

Matt_dowd91 Junior · 19 posts #4

=]

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>';
 ?>
arnage Lead · 811 posts #5

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.

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
something else Fellow · 2,296 posts #6

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>';
 ?>
Matt_dowd91 Junior · 19 posts #7

thanks

something else wrote:

<?php
 echo '<a href="/redirect/member_profile.php?username='. $name['user'] . '">' . $name['user'] . '</a>';
 ?>

thanks I got muddled up lol 🙂

icedroplet1987 Senior · 258 posts #8

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.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close