The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
$username in posts?
Hi folks
I am trying to personalize some stickied posts in our forum I would like to add $username to bring up each members name This way the post would be to their attention Any help or direction would be greatly appreciated. |
#2
|
|||
|
|||
Depends exactly what you're trying to do.
If you just want the name of the person who is viewing the page it's $bbuserinfo[username]. If you want it showing as part of a thread title you would probably have to use some sort of conditional to avoid things showing to guests: Code:
<if condition="$bbuserinfo['userid']">FAO $bbuserinfo[username]: </if> |
#3
|
|||
|
|||
I would just like to add it to the body of the post
In the subject title it's not needed Thanks again!! |
#4
|
|||
|
|||
I am not sure how to do it, but what he is wanting is similar to a hack that phpbb has where if you put the following text in a thread.
/user it would instead of displaying that, replace that with the persons username. |
#5
|
|||
|
|||
Quote:
--------------- Added [DATE]1234138325[/DATE] at [TIME]1234138325[/TIME] --------------- Hmmm....this is how my site used to do it... Create a plugin at global_complete with the following code: Code:
$output = str_replace('[username]', $vbulletin->userinfo['username'], $output); Code:
[username] |
#6
|
|||
|
|||
I see there was mod called "/you"
that may have been it. --------------- Added [DATE]1234139149[/DATE] at [TIME]1234139149[/TIME] --------------- Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|