vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   simple linking question (https://vborg.vbsupport.ru/showthread.php?t=181262)

invitezone 06-02-2008 04:33 AM

simple linking question
 
can anyone have a look at this for me and tell me what i need to change

Code:

<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

Code:

<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:
Code:

Welcome, <a href="{2}">{1}</a>.
Then, in navbar, find:
HTML Code:

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

Replace with:
HTML Code:

<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 [DATE]1212566026[/DATE] at [TIME]1212566026[/TIME] ---------------

thank you so much that works absolutely perfectly.

I really appreciate the help.


All times are GMT. The time now is 01:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00940 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete