PDA

View Full Version : simple linking question


invitezone
06-02-2008, 04:33 AM
can anyone have a look at this for me and tell me what i need to change

<phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase>

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>


<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>


i think that is the bit i need to edit anyway
That is from my navbar template.
What i wan to do is just edit it so that when the member clicks their name it take them to their profile.
I dont mean the usercp, just the profile.

I have seen this on many skins before and im sure its simple to do.

thanks all for looking. If this is not the right code snippet please do reply and i'll post something else.

MoT3rror
06-02-2008, 06:33 AM
<a href="member.php?u=$bbuserinfo[userid]">Your Profile</a>

I know in a default install of vBulletin 3.7, the $vbphrase[welcome_x] now has a link to the user profile. Maybe that phrase needs revert or your navbar is missing some code.

invitezone
06-02-2008, 08:32 AM
hmmm im on 3.6.8 and using a custom skin.
Anyway thanks i'll see if i can add that without breaking anything lol.

Lynne
06-02-2008, 03:05 PM
This is what they did for 3.7 (I just did these changes on my 3.6.8 board and they work):
make a new GLOBAL phrase called "welcome_x_link_y" with the contents:
Welcome, <a href="{2}">{1}</a>.Then, in navbar, find:
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
$bbuserinfo[stats]<br />Replace with:
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />

invitezone
06-04-2008, 06:35 AM
ok thanks for that, i'll give it a try.

--------------- Added 1212566026 at 1212566026 ---------------

thank you so much that works absolutely perfectly.

I really appreciate the help.