Log in

View Full Version : Welcome Clickable Username!


Borgs8472
04-17-2006, 10:00 PM
Here's an awesomely powerful hack from me, sure to win over your forum posters hearts and minds.

Actually it's simply to compete with the likes of IPB and phpbb who like to emphasise 'your posts' more by default.

Open up your navbar template (or in some cases header template) and find:
<phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase>
and replace with:
<phrase 1="<a style='text-decoration: none' href='member.php?u=$bbuserinfo[userid]'>$bbuserinfo[username]</a>">$vbphrase[welcome_x]</phrase>

In just one edit, (this can be done with an even smaller template edit and and a phrase edit but it's not worth the hassle) your often viewed 'Welcome Username!' message has added functionality, as it can be clicked on as a link to the user's profile.

I decided to remove the default underlining that many people will have this being a link, so the link looks aesthetically similar. The colour may be slightly changed after this.

DJ XtAzY
04-18-2006, 01:21 AM
smartest simple mod XD

Tralala
04-18-2006, 01:43 AM
Installed! :)

Code Monkey
04-18-2006, 01:55 AM
You can also maintain the wonderful, translatable phrasing system by doing it this way.


<phrase 1="<a style='text-decoration: none' href='member.php?u=$bbuserinfo[userid]'>$bbuserinfo[username]</a>">$vbphrase[welcome_x]</phrase>

Kihon Kata
04-18-2006, 02:11 AM
You can also not maintain the wonderful, translatable phrasing system by doing it this way.


<phrase 1="<a style='text-decoration: none' href='member.php?u=$bbuserinfo[userid]'>$bbuserinfo[username]</a>">$vbphrase[welcome_x]</phrase>

what does that mean JUMP?

Code Monkey
04-18-2006, 02:15 AM
what does that mean JUMP?

Removed the word "not". :D
The one in the release thread hard codes the word "Welcome" so it will be a problem for other language boards specifically muli-lingual board. What I posted will leave the current phrase intact and just add the link to the name so you will not be defeating the system to get what you want.

Borgs8472
04-18-2006, 10:23 AM
^ ^
oh, well done. That seems such an odd way of hacking the the phrase system I never considered it. I'll replace with your way in post #1 ;)

Code Monkey
04-18-2006, 01:53 PM
^ ^
oh, well done. That seems such an odd way of hacking the the phrase system I never considered it. I'll replace with your way in post #1 ;)

I just tried it and it worked. *shrugs*

Not really odd if you think about it. It replaces x with whatever is between the quotes. As long as it can get through the parser without kicking up an error.

I don't think that style bit will do anything by the way.

Borgs8472
04-18-2006, 01:55 PM
^ ^
It does. Most people have links underlined by default. However welcome username is not underlined normally. Adding that parameter ensures the look stays the same.

Code Monkey
04-18-2006, 02:05 PM
You should make it look like the rest of the text. Looks kind of odd as link color.

Davidov06
07-25-2006, 07:12 AM
Whee, installed this one. Very useful.

ZeroX Prodigy
07-26-2006, 01:15 PM
Very nice code. Installing it right now!

sudn3sc3d
07-26-2006, 11:45 PM
awsome dude keep it up

oberheimhaven
07-27-2006, 10:58 PM
this doesnt work with Vba cmps???

This is what I get No input file specified. Any suggestions ?

TTG
07-27-2006, 11:11 PM
Am I missing something .. the link takes you to your own personal profile ?

Why would that be something you'd want to do every time you log in :confused: ?

oberheimhaven
07-28-2006, 09:09 PM
So much for support eh?

Borgs8472
07-28-2006, 09:16 PM
^ ^
what are you going on about?
this doesnt work with Vba cmps???

This is what I get No input file specified. Any suggestions ?
Add private.php to your header replacements list in your cmps setup maybe.

moonclamp
07-29-2006, 05:33 PM
Add private.php to your header replacements list in your cmps setup maybe.
Not quite, you should add "member.php" to your navbar replacements :)

princeedward
02-17-2008, 05:20 PM
finally got this one after some days and weeks of searching...with the big help of course of

Lynne (https://vborg.vbsupport.ru/member.php?u=65230)

Million Thanks...Guys...

:p