Announcement

Collapse
No announcement yet.

Problems Getting Forum ID Variable Inside Threads

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

  • Lynne
    replied
    The global_start hook location is deprecated:
    HTML Code:
    // Deprecated as of release 4.0.2, replaced by global_bootstrap_init_start
    ($hook = vBulletinHook::fetch_hook('global_start')) ? eval($hook) : false;
    The best place to ask for help with custom code is over on vbulletin.org, the modification site.

    Leave a comment:


  • craigl
    started a topic [Forum] Problems Getting Forum ID Variable Inside Threads

    Problems Getting Forum ID Variable Inside Threads

    I am having some serious issues getting the forum id variable to extend into threads inside of a forum. Any help would be appreciated. Here is my code (not working):
    The Plugin


    Hook: global_start


    Execution Order: 5


    $myforumid = $GLOBALS[forumid];


    vB_Template:reRegister('FORUMDISPLAY',array('myforumid' => $myforumid));






    The code in the template:




    <vb:if condition="$myforumid != 33">
    <!-- Zone-4 Location -->
    <div id="zone4top" align="center" style="margin:5px;">
    <script type='text/javascript'>
    GA_googleFillSlot("Zone-4");
    </script>
    </div>
    </vb:if>


    <vb:if condition="$myforumid == 33">
    <div align="center">
    <!-- Zone-4-Jet -->
    <script type='text/javascript'>
    GA_googleFillSlot("Zone-4-Jet");
    </script>
    <br />
    </div>
    </vb:if>

Related Topics

Collapse

Working...
X