Plugin problem - $bbuserinfo['userid']

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • regi
    New Member
    • Jun 2002
    • 9

    Plugin problem - $bbuserinfo['userid']

    Howdy guys,

    Very new to 3.5.0 - wondering if anyone knows the solution to this problem.

    We have a piece of php that we used to include in the phpinclude templace. We now want to do it with a plug in.

    This piece of php needs to know the value of $bbuserinfo['userid'], but when we add it in the global_start hook location, it can't seem to get a value for it.

    Which hook value should we use if we want to work with that variable?

    Thanks!

    Dan
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    That variable should work, but it doesn't for some reason. This one seems to work though:

    Code:
    $vbulletin->userinfo['userid']
    I tested it and it seems to work, but I am new to this hook stuff too.

    Comment

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