The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
"Your Profile" link
How do I make a link that will take a user to their own profile?
|
#2
|
||||
|
||||
this is a copy direct from the "navbar" usercp link..
Code:
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td> Code:
http://www.yourforum.net/yourforum/usercp.php if they are not logged in, a login box is usually appearing.. test it out.. |
#3
|
||||
|
||||
The OP wants the link to the profile, not the User CP.
Code:
<a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[your_profile]</a> |
#4
|
||||
|
||||
That doesnt work on an html page outside vB...
|
#5
|
||||
|
||||
That would've been handy information for the first post. You need to include vBulletin's global.php for the code to work, as member.php relies on a supplied user ID. However, you could probably code a plugin that will detect the user when member.php is run.
|
#6
|
||||
|
||||
Quote:
Doh!! Recomendations : search for the mod "Deluxe login" without quotations i know its old, but it works, i did a few experiments this month with that get that working on a blank page first, when it works then add the link Dismounted postet, might want to modify location to "member.php" if its in a different directory. Test and run, if that works aswell, congrats THEN you move your code to that ".php" page that it all was original intended to run on. and you can do that for as many pages you like. just a tip, always test the parts on a blank page before putting on for publick display, ewen this is annoying "under construction" wth. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|