The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
the name of the logged in user in my title
I want to use the title:
"I love xxxx" Where xxxx will present the name of the logged in user How can I do this? --------------- Added [DATE]1326723728[/DATE] at [TIME]1326723728[/TIME] --------------- bumpidy bump |
#2
|
||||
|
||||
I love {vb:raw bbuserinfo.username}
|
#3
|
||||
|
||||
I think he want's to use a custom user title only for his profile/posts.
You will need a conditional in your postbit(_legacy) template to replace the default user title code. If you do not use the conditional in the below way, then everyone's user title will say I love {user browsing}! Something like Code:
<vb:if condition="$post[userid] == 1 AND $show['member']"> <span class="rank">I love {vb:raw bbuserinfo.username}!</span> <vb:else /> <vb:if condition="$post['rank'] != ''"> <span class="rank">{vb:raw post.rank}</span> </vb:if> </vb:if> ------------------------------------- So this conditional 'says' If this post belongs to [you] and the user browsing is NOT a guest then show 'I love [username of user browsing]!' else if this post isnt [you] and user title isn't NULL display poster's user title ------------------------------------- Not sure if this code is 100% correct, but you get the idea. |
#4
|
|||
|
|||
Thank you, LifesGreatestGift.
That's exactly what I was looking for. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|