PDA

View Full Version : Linking to the users profile automatically?


eternal_
03-22-2009, 05:00 PM
What would be the code I'd have to use to make a link go to the users profile using vbulletin commands?

I tried putting http://www.example.com/member.php but it requires the user number which looks like this http://www.example.com/member.php?u=400

which indicates the user number. What command is required to pick up the user number automatically from the database so it knows which profile to go to?

I would guess it would be the same command that makes the name of the user at the top of the page take them to their profile page when clicked.

Thank you very much for this.

Cryo
03-22-2009, 05:06 PM
If you're editing a template the code would be...

http://www.example.com/member.php?u=$bbuserinfo[userid]

If you're editing a post template the code would be...

http://www.example.com/member.php?u=$post[userid]

Can you elaborate more on what you're trying to do and where this link will be?