The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Global use of $post[usertitle]
Hey
I need a hack that will allow the global use of $post[usertitle] which means it'll show up on any page where a username is shown, rather than just postbit and member info. Any hack exist for this, or is it possible? Anybody have any ideas? |
#2
|
||||
|
||||
You want someone's user title on any page? Use $vbulletin->userinfo[usertitle], not $post[usertitle]. Or, I think $bbuserinfo[usertitle] works also for the same thing, but I'm not 100% sure on that.
|
#3
|
||||
|
||||
Make a plugin for it:
*Hook Location: Global Complete* $output = str_replace('[usertitle]', $vbulletin->userinfo['usertitle'], $output); Then call it in your templates with [usertitle]. (I believe this is correct) |
#4
|
||||
|
||||
ThePimp's method works, but you'll have to be careful because then it'll replace [usertitle] anywhere in the page, including if someone puts that in their post.
|
#5
|
|||
|
|||
If you wish to display the viewer's usertitle in templates you'll have to use the $bbuserinfo[usertitle] variable.
|
#6
|
||||
|
||||
Does that also work within phrases, as a lot of the usernames are within phrases as well. What'd be a way to integrate and bypass that?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|