Announcement

Collapse
No announcement yet.

Include php code inside header. Need help :)

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

  • [Forum] Include php code inside header. Need help :)

    Hi!

    I read the manual and I made a plugin with following code
    Code:
    ob_start();
      include('geoip.php');
      $geoipphp = ob_get_contents();
      ob_end_clean();
    The file geoip is located on the root level.
    Now I want to place the php code at the very top (above the HTML declaration).

    First question: What kind of hook should I select? (I tried "forumhome_start" but It didn't work)
    After that should I add the "$geoipphp" variable inside the FORUMHOME template???

    Thanks!

  • #2
    Your question would be best suited for www.vbulletin.org it is a site dedicated to vBulletin plugins and products, skins and modifications. It also has a large userbase of people who are experienced with vB development that would be able to advise you on these sort of queries.

    Comment


    • #3
      oooh! That's confusing. Why two separated forums???

      Comment

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