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)

Frapegliko 10-22-2006 08:02 PM

Quote:

Originally Posted by soletrader
The banner-two... it says I have already installed it. Overwriting this will probably overwrite the initial product.

Coud you look into this? Thanks

thats right

soletrader 10-22-2006 09:34 PM

Quote:

Originally Posted by Frapegliko
thats right

Woudlnt that delete banner one?

Greek76 10-22-2006 11:07 PM

Quote:

Originally Posted by Frapegliko
:beard: :smoke:

LOL Im serious I have no clue.

Frapegliko 10-23-2006 09:46 AM

Quote:

Originally Posted by soletrader
Woudlnt that delete banner one?

yes, backup your codes

soletrader 10-23-2006 11:47 AM

What I meant to say is:

I want two set of banners. Banner one on top and banner two on the bottom at the same time.

How do I do this? Whats the point of using banner two if it deletes banner one???

Frapegliko 10-23-2006 12:12 PM

@soletrader

Install product bannerrotator two.xml
Add $bannerads in header
Add $banneradstwo in footer
Then insert your Codes in vBulletin Setting > vbBannerRotaror

Thats all

Luggruff 10-23-2006 03:05 PM

Is it possible to change this to make the "process" page random? Would be great, I want to use it for "comercial" use but I don't want alot of comercial on every single page, interfering with my forumstyle.

Sorry, didn't read the thread posts. Question answered ^^ *installs as soon as possible*

Luggruff 10-23-2006 09:32 PM

Ok, changed my mind about this.. I installed the hack, enabled the first one and two banners. Added the text "..Test.." in one field and "--Test--" in field number two.

I also wrote $bannerad in the header template (other templates too).. nothing shows up.
The hack has no hooks that aren't allowed to crash with others alike (global_start and cache_templates ..as I've understood it at least, it wont matter if those hooks are located in more than one product..)

How do i make it show up? (running vb 3.6.2)

farooqaaa 10-24-2006 05:28 AM

wooo000ohoooo! w00t

nice one. :). Installed.

Frapegliko 10-24-2006 12:33 PM

Quote:

Originally Posted by Luggruff
Ok, changed my mind about this.. I installed the hack, enabled the first one and two banners. Added the text "..Test.." in one field and "--Test--" in field number two.

I also wrote $bannerad in the header template (other templates too).. nothing shows up.
The hack has no hooks that aren't allowed to crash with others alike (global_start and cache_templates ..as I've understood it at least, it wont matter if those hooks are located in more than one product..)

How do i make it show up? (running vb 3.6.2)

Look in the Installation Description again
U must add $bannerads

patsalko 10-24-2006 12:44 PM

nice. will try it

Luggruff 10-24-2006 12:53 PM

Quote:

Originally Posted by Frapegliko
Look in the Installation Description again
U must add $bannerads

Ahh thanks! Finally a hack that works xD
(I just copied the code from the post you made here on page 4 ;P)

Frapegliko 10-24-2006 01:13 PM

Quote:

Originally Posted by Luggruff
Ahh thanks! Finally a hack that works xD
(I just copied the code from the post you made here on page 4 ;P)

ups :paranoid: thank u

Frapegliko 10-24-2006 01:14 PM

Quote:

Originally Posted by Luggruff
Ahh thanks! Finally a hack that works xD
(I just copied the code from the post you made here on page 4 ;P)

and dont forget to click install

Luggruff 10-24-2006 01:27 PM

Done done and done! ;D

Frapegliko 10-24-2006 01:29 PM

today comes a new version...

Stangsta 10-24-2006 10:35 PM

Quote:

Originally Posted by Frapegliko
today comes a new version...

Hopefully a "tweaked" version for 3.5 as well? ;)

principino1984 10-25-2006 12:01 AM

Great hack man! It works awesome!!!

Marco

hitmanuk2k 10-25-2006 09:12 AM

I can't get it to show in vbadvanced. Any way to do it?

Frapegliko 10-25-2006 09:57 PM

do you edited the header template?

jeffro241 10-26-2006 02:14 AM

does this work with vBulletin Version 3.6.0?

Frapegliko 10-26-2006 08:02 AM

Quote:

Originally Posted by jeffro241
does this work with vBulletin Version 3.6.0?

yes it works

RobertPool 10-26-2006 02:10 PM

Placing $bannerads works fine in header / footer template but not at all in Postbit template... Why?

Luggruff 10-26-2006 02:19 PM

when do the new version come? You said today, the day before yesterday ;P

Devil Woman 10-26-2006 09:30 PM

Hi there, I have just installed this, must say it is a really nice hack and something I have been looking for however I have encoutered a few problems

This is the code I am using

Code:

<a href=\"URL/" target=\"_blank\" class=\"banner\"><img src=URL OF BANNERwidth=468 height=60 border=2></a>
Now I have added this in only the problem is, is that the banner then goes below the forum banner and the link doesn't link to the site that the banner is for instead it goes to www.mysite.com/%22www.urlforbanner.com/%22

Where am I going wrong? Is the code wrong and that is why the link isn't working correctly? And have I put the $bannerads in the wrong place on the header and that is why it is going under the forum banner rather than opposite the forum banner

Thanks in advance

Luggruff 10-26-2006 09:44 PM

Quote:

Originally Posted by Devil Woman
Hi there, I have just installed this, must say it is a really nice hack and something I have been looking for however I have encoutered a few problems

This is the code I am using

Code:

<a href=\"URL/" target=\"_blank\" class=\"banner\"><img src=URL OF BANNERwidth=468 height=60 border=2></a>
Now I have added this in only the problem is, is that the banner then goes below the forum banner and the link doesn't link to the site that the banner is for instead it goes to www.mysite.com/%22www.urlforbanner.com/%22

Where am I going wrong? Is the code wrong and that is why the link isn't working correctly? And have I put the $bannerads in the wrong place on the header and that is why it is going under the forum banner rather than opposite the forum banner

Thanks in advance

Your code:
Code:

<a href=\"URL/" target=\"_blank\" class=\"banner\"><img src=URL OF BANNERwidth=468 height=60 border=2></a>
Correct code:
Code:

<a href="URL" target="_blank" class="banner"><img src="URL OF BANNER" width=468 height=60 border=2></a>
Get it?

And to get the banner above the logo of your forum, simply put the $bannerads above <!-- LOGO --> in the header template.

Devil Woman 10-26-2006 10:10 PM

Hi there, I have put the correct code in and all is working fine :) thanks for that

No what I want to do is have the banners on the opposite side of the forum banner.

The forum banner is on the left hand side, I want the banners to go on the right hand side of the header so that it is opposite the banner

Thanks

Luggruff 10-26-2006 10:50 PM

Quote:

Originally Posted by Devil Woman
Hi there, I have put the correct code in and all is working fine :) thanks for that

No what I want to do is have the banners on the opposite side of the forum banner.

The forum banner is on the left hand side, I want the banners to go on the right hand side of the header so that it is opposite the banner

Thanks

In the header template find this:

Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
    <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    <td align="$stylevar[right]">
        &nbsp;
    </td>
</tr>
</table>
<!-- /logo --><br>

Each column are specified with the <td></td> tags, each new row are between the <tr></tr> tags, so to add another column just add another column tag (<td>$bannerads</td>) after the last <td></td> tag (in between the </td> and </tr> tag).

wich of course would turn out like this:

Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
    <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    <td align="$stylevar[right]">
        &nbsp;
    </td>
    <td>
$bannerads
    </td>
</tr>
</table>
<!-- /logo --><br>


Basic table building..

Devil Woman 10-27-2006 08:13 PM

you learn something new everyday :) thanks for that its much appreciated :)

moley 10-28-2006 07:24 PM

Just installed this, done everything you said but its not appearing in my postbit!

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 12:53 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.01483 seconds
  • Memory Usage 1,840KB
  • 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
  • (8)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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