![]() |
$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. :) |
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> |
I would just like to add it to the body of the post
In the subject title it's not needed Thanks again!! |
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. |
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] |
I see there was mod called "/you"
that may have been it. --------------- Added [DATE]1234139149[/DATE] at [TIME]1234139149[/TIME] --------------- Quote:
|
All times are GMT. The time now is 09:54 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|