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)

Peejay 12-03-2008 07:20 PM

Great stuff.

To increase the numbers would it just be a case of editing the XML and increasing the code in there?

I'm looking for a rotation of 20

NIZMOZ 12-14-2008 08:37 PM

Quote:

Originally Posted by Peejay (Post 1677973)
Great stuff.

To increase the numbers would it just be a case of editing the XML and increasing the code in there?

I'm looking for a rotation of 20

Same here. I need more than 10. Info please!

vbplusme 12-16-2008 01:51 AM

Quote:

Originally Posted by NIZMOZ (Post 1685441)
Same here. I need more than 10. Info please!

You are looking for 20 from a single banner placement?

I have reworked this mod to do 4 banners 10, 5, 5, 5 and was thinking of 10, 10, 10,10.

My current client needed more than 2 and only 2 swaps but a single placement with 20 is definitely doable.

This MOD is pretty good but it looks like the original author has abandoned it.

Send me a PM be glad to help out.

HTH

jeremycards 12-19-2008 08:36 PM

im really sorry about this but... im a total n00b with this, i suk at codes and such, it really makes my head dizzy, and i can't figure out how to use this plugin...

as far as i can understand i have to put $GLOBALS[bannerads] in the code of the header... right?... that would be editing the skin... ok... but where do i put that? in what part of the code. and also i have to put it just like that? or the "bannerads" part is supposed to have the adress or something of where my banners are stored?, i really can't understand that... please someone can give detailed explanation? because im trying pretty hard but i really dont know how to do it. If you give me some examples of how it looks finished maybe i could figure it out without much problem. Thanks in advance

edit: i will add my forum url and the code if that makes things easier

www.endingsekai.com (the banner i want to change is the upper left one)

HTML Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="background-image:url($stylevar[imgdir_misc]/head_back.gif)">
<tr>
        <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/head_left.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
        <td align="$stylevar[right]" id="header_right_cell">
                <if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
        </td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]


vbplusme 12-20-2008 01:15 AM

Go to the ad_header_end template and add "$bannerads" and save it. Add your banners to the hack and you should be good to go... You can use that same "$bannerads" to place the banners manually as well, for example

Code:

<!-- content table -->
$spacer_open

$_phpinclude_output

$bannersads

$ad_location[ad_header_end]

HTH

jeremycards 12-20-2008 02:09 AM

thank you very much for the help, but it seems than im still doing something wrong... only thing than happened is than the url of the image appears below my header =/. This is my code after adding $bannerads (also tryed $GLOBALS[bannerads] but didnt worked)

HTML Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="background-image:url($stylevar[imgdir_misc]/head_back.gif)">
<tr>
        <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/head_left.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
        <td align="$stylevar[right]" id="header_right_cell">
                <if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
        </td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

$bannerads

$ad_location[ad_header_end]

also im not entirely sure how to put the headers on the hack... do i have to go to vbulletin options/vbbannerrotator and there on the first box put the URL of the banner i want? or its a different thing?

edit: oh, here's a screenshot of my options

http://i98.photobucket.com/albums/l2...s/Dibujo-3.jpg

vbplusme 12-20-2008 02:24 AM

HTML Code:

<a href="http://forum.endingsekai.com"><img src="/images/styles/silverblue/misc/shonen.gif" alt="" width="372" height="102" border="0" align="middle"></a>
Make sure the path is correct to the banner image. You can change the URL for where you want the visitor to go by changing the href piece to point to the location of your choice.

BTW, $bannerads is the correct call. I checked the code and it works here so it should work for you.

jeremycards 12-20-2008 03:12 AM

thanks, its almost done!, sorry for being such an ultimate noob with this, now the other header appeared below the one i had =/ im trying placing the $bannerads in different parts of the code but i can't fit it on the right place yet

https://vborg.vbsupport.ru/external/2008/12/50.jpg

jeremycards 12-20-2008 03:24 AM

oh wait! i figured out what to do!, thanks a lot for your help man!. I was at a total loss, really, thank you!!

Frogsong 01-27-2009 05:47 AM

Can anyone tell me if this mod works with vBulletin version 3.8?

I need a advertisement banner ad mod with banner rotation for version 3.8
Anyone know where I can find one?


All times are GMT. The time now is 07:26 AM.

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.01546 seconds
  • Memory Usage 1,755KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_html_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