Making a global variable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Gwynne
    Senior Member
    • Dec 2002
    • 642
    • 3.0.7

    Making a global variable

    Hi

    Is there any way to make $post[usertitle] a global variable that will work on all pages and not just member info and postbit?
  • Colin F
    Senior Member
    • May 2004
    • 17689

    #2
    What exactly are you trying to do?

    If you want the data from the user browsing the page, you can use $bbuserinfo[usertitle]
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment

    • Chris Gwynne
      Senior Member
      • Dec 2002
      • 642
      • 3.0.7

      #3
      What I want to be able to do is everywhere the username is mentioned throughout the system the usertitle is shown right next to it as well.

      So for example you'd have... (this is the forumhome)
      Code:
      Making a global variable
      by [I]vBulletin Team[/I] [B]Colin F[/B]
      Today 2:30pm
      Where the italic is the usertitle and bold is the username.

      Comment

      • Colin F
        Senior Member
        • May 2004
        • 17689

        #4
        Most likely that won't work, as the usertitle isn't even fetched from the database in a lot of cases.
        Best Regards
        Colin Frei

        Please don't contact me per PM.

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...