Announcement

Collapse
No announcement yet.

Widget PHP Direct Execution using vbulletin vars

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [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

  • #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


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

      vB::$vbulletin->**

      Comment


      • #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...
        X