Page 1 of 1

does this call for a master and detail page?

Posted: Wed Jan 07, 2004 7:47 am
by malcolmboston
ok, ive posted so many questions today that my heads turned to mush

i have a lot of members on my site and each member can view other peoples profile pages

now i know how to do it the normal way anyway (in a profile section) but i want it to be able to do it anyway in the site, so if a news item says posted by WebMaster (me) if they click on that link it will take them to a profile of me, and if another person has there name on the site, take them to there

obviously it can be done because teh PHP forums do it? how could i 'emulate' this?

pseudo-code would be fine

Posted: Wed Jan 07, 2004 8:23 am
by malcolmboston
no1?
i would really like to use this feature

can anyone help?

Posted: Wed Jan 07, 2004 9:05 am
by malcolmboston
:(

Posted: Wed Jan 07, 2004 10:31 am
by Pyrite
What r u asking exactly? Please explain more, cause I don't think anyone understands you.

Or look at the source for phpBB2, that's what open source is for.

Posted: Wed Jan 07, 2004 10:41 am
by patrikG
The core statement in what you've written above, malcomboston, is:

"Everyone should be able to see a given profile from anywhere on the site"

I presume you're familiar with mySQL - just offer a link to a page (e.g. "profile.php") on every page.

"profile.php" checks if a profileID (or userID or some unique ID) has been supplied (I recommend GET, e.g.: "http://www.mysite.org/profile.php?userID=1514") . If one was supplied then pull the data from the DB and display it.

Not too difficult, is it? ;)

P.S.: Give people time to respond - giving up after two hours is a bit "un-eager", if you ask me.

Posted: Wed Jan 07, 2004 11:31 am
by Nay
Yeah, here's a secret. Work on you code till your brain wants to blow out. Post on the forums. Take a nap, wake up and tada!

-Nay

ps: My method does not garuntee any replies. After all, it's open source ;)