vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - vbBannerRotator (https://vborg.vbsupport.ru/showthread.php?t=129418)

Code Monkey 10-29-2006 05:31 PM

Does this track clicks to different banners?

d1150488 10-29-2006 07:36 PM

For those wanting to reference this variable in the postbit template you need to use...

$GLOBALS[bannerads]

Rather than

$bannerads

This has been driving me mad. Its to do with the scope of these variables in the postbit template....

rezapci 10-30-2006 02:37 AM

thanks for great hack, but I have a problem, when people click on hacks, the page well go like this http://www.domain.com/forum/adsurl error 404!

I am using this code
Quote:

<a href="www.islamicbookstore.org.uk" target="_blank" class="banner"><img src="http://www.absocs.com/advert.jpg" width=136 height=37 border=2></a>
what should I do?

Iamjine 10-30-2006 08:00 AM

I'm new to vBulletin.

I've downloaded the XML files but I don't know how to get them installed.

Would someone please show me ?

Thanks

Luggruff 10-30-2006 08:53 AM

Quote:

Originally Posted by Iamjine
I'm new to vBulletin.

I've downloaded the XML files but I don't know how to get them installed.

Would someone please show me ?

Thanks

go to http://www.yousite.com/admincp -> log in -> Plugins and products -> Products -> add new plugin (on the bottom of the page) -> browse -> submit.

THEN you go to the template manager in adminCP unde styles and templates and in the template drop-down you select "edit templates", then you doubbleclick the template you want to add the banners to and you write $bannerads or $banneradstwo at the location in the code that you want the banners to show up.

redlabour 10-31-2006 11:54 AM

Hi, please add $GLOBALS[bannerads] to the Installinstructions.

With that it is working everywhere and still at navbar, footer etc. ! ;)

(Postbit, vBadvanced, Arcade etc.)

redlabour 11-01-2006 09:47 AM

Anybody out there ?

sunnycher 11-01-2006 03:45 PM

Ok, If I want this banner to be to the RIGHT side of the forum, on top of ALL pages, how do I do this?
If you go to www.lgpphotographers.com/forum
I want the banner to rotate right above the convention banner.

Any ideas?

THANK YOU FOR THIS!

Luggruff 11-02-2006 04:34 AM

AdminCP -> Styles and templates -> Template Manager (or whatever, top link in that menu) -> << >> OR the top choice in the drop-down, does not matter, it's the HEADER template you want and that just happens to be in both places.

Take this:

Code:

<!-- logo -->
<a name="top"></a>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
 <tr>
  <td width="27"><img src="images/LGP/q1.jpg" border="0" width="27" height="182" alt="" /></td>
  <td width="100%" background="images/LGP/q3.jpg">
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
      <td width="100%"><img src="images/LGP/header3.jpg" border="0" width="234" height="182" alt="ProPs - ProPhotogs.com" /></td>
    <td align="center"><ad what="zone:1" /><p><a href="http://www.lgpphotographers.com/convention/convention.htm"><img src="./images/convention.jpg" align="center" border="0"></a></p></td>

    </tr>
    </table>
  </td>

  <td width="28"><img src="images/LGP/q2.jpg" border="0" width="28" height="182" alt="" /></td>
 </tr>
 <tr>
  <td width="27" background="images/LGP/q4.jpg"></td>
  <td width="100%">
<!-- /logo -->

And change to something like this:

Code:

<!-- logo -->
<a name="top"></a>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
 <tr>
  <td width="27"><img src="images/LGP/q1.jpg" border="0" width="27" height="182" alt="" /></td>
  <td width="100%" background="images/LGP/q3.jpg">
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
      <td width="100%"><img src="images/LGP/header3.jpg" border="0" width="234" height="182" alt="ProPs - ProPhotogs.com" /></td>
    <td align="center">$GLOBALS[bannerads]<br><ad what="zone:1" /><p><a href="http://www.lgpphotographers.com/convention/convention.htm"><img src="./images/convention.jpg" align="center" border="0"></a></p></td>

    </tr>
    </table>
  </td>

  <td width="28"><img src="images/LGP/q2.jpg" border="0" width="28" height="182" alt="" /></td>
 </tr>
 <tr>
  <td width="27" background="images/LGP/q4.jpg"></td>
  <td width="100%">
<!-- /logo -->


FPR 11-02-2006 08:16 AM

Awesome code.

How do I add the banner below the nav bar?

Cheers
FPR


All times are GMT. The time now is 01:06 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04141 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete