Widget PHP Direct Execution using vbulletin vars

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashy
    Member
    • Sep 2001
    • 77

    [CMS] Widget PHP Direct Execution using vbulletin vars

    Hi all
    is the Widget PHP Direct Execution totally separated from the vbulletin system?

    how can i use vbulletin internal variables within a Widget PHP Direct Execution

    thanks


    Eric
  • Removed-836727
    Banned by User Request
    • Apr 2006
    • 1274

    #2
    Which variables do you need?

    Yes it's possible, you can access the vbulletin Object with vB::$vbulletin, you can execute DB Queries with vB::$db

    Comment

    • ashy
      Member
      • Sep 2001
      • 77

      #3
      sorry, i found the answer, just for someone may ask the same
      you should use as bellow

      vB::$vbulletin->**

      Comment

      • Paul M
        Former Lead Developer
        vB.Com & vB.Org
        • Sep 2004
        • 9886

        #4
        or you can just add global $vbulletin to the top of the widget php and use them as normal.
        Baby, I was born this way

        Comment

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