Simple HTML inserts at top and bottom of the page?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pilot
    Senior Member
    • Apr 2000
    • 380

    Simple HTML inserts at top and bottom of the page?

    UBB's control panel allows specification of some HTML to be automatically placed at the top and at the bottom of each generated UBB HTML page.

    This could also be defined differently for each forum if needed.

    How can this be done in VB 2.0.1? Specifically I want to place some HTML (a javascript reference) at the top of each page for advert banner purposes and some HTML at the bottom for disclaimers.

    Now you will probably tell me about templates - but I don't really want to edit anything - just define the HTML to be inserted. What is the simplest and cleanest way to do this?

    How granular is this - can I control it in terms of different inserts for the main forum index and in each forum?

    UBB also provided a randomiser string that it would replace with a random number in the inserted HTML - how best to do that in VB?

    Do you have a "guide to banner adverts" in VB?
  • c-prompt
    Senior Member
    • Apr 2001
    • 1309

    #2
    Look in the styles, header and footers just like UBB.....just stick your html in.

    Comment

    • Mike Sullivan
      Former vBulletin Developer
      • Apr 2000
      • 13327
      • 3.6.x

      #3
      How granular is this - can I control it in terms of different inserts for the main forum index and in each forum?
      Yes, you can, but it's not amazingly fun at this point. Basically, you create a new style for each forum and adjust the forum's colors/fonts/etc to suit. Then go to that forum's settings and assign it to the new style you created.

      UBB also provided a randomiser string that it would replace with a random number in the inserted HTML - how best to do that in VB?
      Y
      ou can do that with the phpinclude template (php parsed code) -- just stick this in:

      Code:
      srand ((double) microtime() * 1000000); // seed the generator
      $advertrand = rand(1, 100); // generate
      And that will generate a random number from 1 - 100 in $advertrand

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎