vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Rotating Banner System (https://vborg.vbsupport.ru/showthread.php?t=188328)

y2ksw 09-26-2013 10:46 AM

Quote:

Originally Posted by desmomax (Post 2447687)
I am using vbulletin 3.8.7 patch level 3, is this mod working with my version? many thanks
is any italian translation for my vbulletin version?

Yes, and yes: http://www.vbulletin.it/14-vbulletin...-banner-system

y2ksw 09-26-2013 10:47 AM

Quote:

Originally Posted by DonLKSAB (Post 2447971)
I have been running the rotater for some while on my sandbox setup. And it works perfect.
But now im installing it on my real system and i get a problem.
I use the iframe files to display some of my banners and for some reason it shows me the full page in every iframe.
So i have my page with a duplicate of each page in every iframe.

Any ideas?

Maybe there is a redirect at .htaccess level?

DonLKSAB 10-02-2013 06:10 AM

Quote:

Originally Posted by y2ksw (Post 2448103)
Maybe there is a redirect at .htaccess level?

How would that look?
I need to know what to look for :-)

y2ksw 10-02-2013 06:38 AM

Quote:

Originally Posted by DonLKSAB (Post 2449413)
How would that look?
I need to know what to look for :-)

No idea ... sandboxes are usually less restrictive and behave better than production sites. One suspect is about fully qualified URL's. Eventually your iframes refer still to your sandbox and the redirect in production fills the iframe with the full page. Thus you would have to create an exception or revisit the iframe code.

Cicada 10-02-2013 08:59 PM

I'm stil; unsure -- does this addon allow me to place banners between posts?

Videx 10-02-2013 10:30 PM

Quote:

Originally Posted by Cicada (Post 2449562)
I'm stil; unsure -- does this addon allow me to place banners between posts?

No, this mod allows you to randomly rotate banners via placeholder(s).

There are various ways to get vbulletin to put a banner where you want it, including between posts. If it's only one banner, you don't need this mod.

rhody401 10-05-2013 12:24 AM

It'll do it if you change the postbit code and insert the trigger(s). I have it display with this mod every 5th post, and also after the last post. This is the code I used, which I believe I found from a previous post in this thread:

PHP Code:

BANNER AFTER LAST POST HACK Added this mod to our forum on 3/1/12 

GO TO
Admin Console -> Styles Templates -> Style Manager -> edit template ->  postbit templates -> postbit_legacy  

......at the END add this, if you want it to display random ad after the LAST post:

<
vb:if condition="$post['islastshown']">
 <
div align="center"><!--@vbbanners:0@--></div><br />
</
vb:if> 


.....
at the VERY END add this:  (puts random ad after 5th and 10th posts)

<
vb:if condition="THIS_SCRIPT == 'showthread' AND (($post['postcount'] % 15 == 10) OR $post['postcount'] == 10)">
    <
div class="thread_controls">
        <
div style="width: 100%; text-align: center">
            <!--@
vbbanners:0@-->
        </
div>
    </
div>
<
vb:elseif condition="THIS_SCRIPT == 'showthread' AND (($post['postcount'] % 15 == 5) OR $post['postcount'] == 5)" />
    <
div class="thread_controls">
        <
div style="width: 100%; text-align: center">
            <!--@
vbbanners:0@-->
        </
div>
    </
div>
</
vb:if> 

Hope this is helpful! We LOVE the RBS add-on!

johnscanlan2 10-05-2013 09:24 PM

I have tried a couple of these rotating banner mods over the many years of using vB. This will be my last. Simply because it works. Once you figure it out, you quickly find that you can put the placeholder any place you want correctly.

I love it!

y2ksw 10-06-2013 04:02 PM

Quote:

Originally Posted by johnscanlan2 (Post 2450268)
I have tried a couple of these rotating banner mods over the many years of using vB. This will be my last. Simply because it works. Once you figure it out, you quickly find that you can put the placeholder any place you want correctly.

I love it!

Thanks :)

webmaster74 10-13-2013 10:41 PM

Hi. What is the meaning of the star next to the name of the banner in the banner list ?

y2ksw 10-14-2013 04:59 AM

Quote:

Originally Posted by webmaster74 (Post 2453049)
Hi. What is the meaning of the star next to the name of the banner in the banner list ?

No idea ... Maybe it is a rappresentation of bold characters on your browser? Bold banners are enabled.

kamran_dotnet 10-14-2013 06:51 AM

Quote:

Originally Posted by webmaster74 (Post 2453049)
Hi. What is the meaning of the star next to the name of the banner in the banner list ?

stared banners are expired

webmaster74 10-14-2013 10:25 PM

Quote:

Originally Posted by kamran_dotnet (Post 2453145)
stared banners are expired

among my active and working banners, one is starred. (it expires in June 2014)

Among my disabled banners, expired banners and NOT EXPIRED banners, I have banners which are starred and Not.

webmaster74 10-14-2013 10:29 PM

Quote:

Originally Posted by y2ksw (Post 2453133)
No idea ... Maybe it is a rappresentation of bold characters on your browser? Bold banners are enabled.

Oh no, surely not, I see those stars in Firefox 24 and Chrome 30.......

I have both expired and not expired, enabled and disabled banners with a star next to their name.

Videx 10-15-2013 12:11 AM

Interesting. I have 2 (out of 16) banners starred. One is active, one isn't. I don't use expiration so all are set to expire in 2030 or something. I can't figure out why they're starred.

webmaster74 10-15-2013 09:35 AM

Quote:

Originally Posted by Videx (Post 2453390)
Interesting. I have 2 (out of 16) banners starred. One is active, one isn't. I don't use expiration so all are set to expire in 2030 or something. I can't figure out why they're starred.


I believe we should stop trying to guess and ask the developper to tell us what he or she meant by the star

ozzy47 10-15-2013 09:49 AM

Quote:

Originally Posted by webmaster74 (Post 2453526)
I believe we should stop trying to guess and ask the developper to tell us what he or she meant by the star

He did reply on it.

Quote:

Originally Posted by y2ksw (Post 2453133)
No idea ... Maybe it is a rappresentation of bold characters on your browser? Bold banners are enabled.


Tim Wheatley 10-16-2013 11:04 PM

Hi.

This works great. Thanks so much for this mod.

Just an FYI, I initially was confused, and getting a blank page as I followed your PDF and was looking in AdminCP > Advertising instead of AdminCP > Rotating Banner System which is where your stuff actually is.

Thanks again,

Tim

y2ksw 10-17-2013 09:49 AM

Quote:

Originally Posted by webmaster74 (Post 2453526)
I believe we should stop trying to guess and ask the developper to tell us what he or she meant by the star

yeah ... I can't remember :D

desmomax 10-22-2013 10:49 AM

Quote:

Originally Posted by y2ksw (Post 2448102)

thanks but when i try to import language i receive this versione error:


Questo file ? stato creato usando una diversa versione vBulletin rispetto a quella che stai utilizzando.

La tua versione: 3.8.7
Versione file: 4.1.9

y2ksw 10-22-2013 07:34 PM

Quote:

Originally Posted by desmomax (Post 2455294)
thanks but when i try to import language i receive this versione error:


Questo file ? stato creato usando una diversa versione vBulletin rispetto a quella che stai utilizzando.

La tua versione: 3.8.7
Versione file: 4.1.9

just ignore the version ;)

desmomax 10-24-2013 12:23 PM

nice it works!

i see the banner is changing just after a refresh of the page and not rotating it, is it normale?

i put the code in my header but i can see the banner only inside forum and topic display and not, for example, in my homepage or other pages. Is it possible to set up to see in all pages or most of them?

many thanks

whoareyou82605 10-28-2013 01:35 AM

Maybe i am missing something? After some time reading through the posts and the pdf i cant make my banners show, I placed the codes in multiple locations to try but no banners will show.
I have no idea why this isn't working or maybe mi missing something really stupid?

bzcomputers 10-28-2013 03:21 AM

Quote:

Originally Posted by desmomax (Post 2455846)
nice it works!

i see the banner is changing just after a refresh of the page and not rotating it, is it normale?

i put the code in my header but i can see the banner only inside forum and topic display and not, for example, in my homepage or other pages. Is it possible to set up to see in all pages or most of them?

many thanks

The "rotating" is doing what it was programmed to do - rotate through the ads you have under the same Position # on each refresh of the page. It does NOT rotate after a certain time limit. Rotating after a certain amount of time is against the rules for almost anyone who publishes ads and will get you blocked / banned / dropped from their advertising programs.

Depending on where you put the code will depend on where it shows up. If you put it in the Advertising - Manage Ads - Header location it will show on all pages.

MySaltyreef 11-08-2013 05:17 AM

hi i am currently using your hack for vb4.2.2, its flawless and does the job better than expected, are you planning on doing it for vb5 ?

y2ksw 11-08-2013 11:16 AM

Quote:

Originally Posted by MySaltyreef (Post 2459046)
hi i am currently using your hack for vb4.2.2, its flawless and does the job better than expected, are you planning on doing it for vb5 ?

Due to a number of changes in the plugin system of vbulletin 5 it will not be possible to port this product without making a lot of substantial changes. It will not be possible to integrate the banners by the means of now, and requires to become stand-alone and maintained externally. I do have the project ladder ready, but it will take a lot of time to get it done and most probably isn't what people really want.

I'm not sure, if an add-on rather than a plugin is more useful. I am also opting to break into the base code, as in the very beginning of vbulletin, in order to show banners cheap, easy and fast as in vbulletin 4. But this is not an option to most of the users, and also not to me, having then to create special installation procedures for every release.

Maybe however vbulletin will decide to add some classic methods to their code, which allow us to do what we want, without reinventing the wheel once again.

DoumDoum5058 11-11-2013 01:50 PM

Hi,

Can you explain me what is the position 0, position 1, position 2, position 3 and so on this hack

https://vborg.vbsupport.ru/

What does each position in VBulletin?

Thank

y2ksw 11-11-2013 07:07 PM

Quote:

Originally Posted by DoumDoum5058 (Post 2459920)
Hi,

Can you explain me what is the position 0, position 1, position 2, position 3 and so on this hack

http://imageshack.com/a/img842/8681/w0l5.jpg

What does each position in VBulletin?

Thank

You may choose what they do. You would insert a placeholder in your templates and then (or before) fill that position with 1 or more banners. :)

MySaltyreef 11-13-2013 03:08 PM

hi me again, i am currently running version 2.3.2, as i said it works flawlessly and perfectly but i am scared to update in case i loose my 30 odd banners or am i just being silly ?

and i'm pretty bummed about vb5 and not having your banner system !

bosanci28 11-13-2013 03:56 PM

So , just to clear my self, with this plugin/mod can i put banners anywhere in the forum? or...

Thanks.

Videx 11-13-2013 04:55 PM

Quote:

Originally Posted by bosanci28 (Post 2460438)
So , just to clear my self, with this plugin/mod can i put banners anywhere in the forum? or...

Thanks.

"Anywhere" may be a bit optimistic, but that is the general idea. There are lots of examples throughout the thread.

y2ksw 11-13-2013 05:50 PM

Quote:

Originally Posted by MySaltyreef (Post 2460417)
hi me again, i am currently running version 2.3.2, as i said it works flawlessly and perfectly but i am scared to update in case i loose my 30 odd banners or am i just being silly ?

and i'm pretty bummed about vb5 and not having your banner system !

Please backup the rbs_* tables so you may roll back ... however, if updating wasn't working, people would have killed me already. Backups are always a good idea :)

Eventually you may use the banner system in vb5 by using iframes and the addon example code, and using a normally hidden copy of your old vb4 forums somewhere (e.g. a protected folder). Not very elegant, but it may be an option. In any case, the time is arriving where I have more time ...

MySaltyreef 11-14-2013 10:12 AM

cool sounds a bit to complicated for me so lucky you have the brains for it, i will attempt the update this weekend, your hack was the only one that didn't give an error with the upgrade to 4.2.2 :)

nxtgen 11-16-2013 09:42 PM

Great job, thank you

Toorak Times 11-18-2013 10:06 AM

Quote:

Originally Posted by y2ksw (Post 2459992)
You may choose what they do. You would insert a placeholder in your templates and then (or before) fill that position with 1 or more banners. :)


I sorta get the placeholder thing, but how do these positions reflect on the ad positions in the Advertising Admincp.

Or do I have to somehow put a placeholder in these positions in the Advertising (i do NOT know what I'm talking about, trying to understand)

Toorak Times 11-18-2013 10:11 AM

Are there instructions on how to use the add on? Cheers

Videx 11-18-2013 02:17 PM

Quote:

Originally Posted by Toorak Times (Post 2461744)
Are there instructions on how to use the add on? Cheers

As with many mods, instructions are included in the download. Also as with many mods, don't bother trying to figure it out 100% before trying it; it will all make more sense once you get ONE banner rotating. Then you can add others if you really need them.

In many cases, such as our forum, the fact that the ads rotate in ONE place is all we need. I have never used a second placeholder (though I have placeholder 0 in a few different places).

y2ksw 11-19-2013 10:51 AM

Quote:

Originally Posted by Toorak Times (Post 2461742)
I sorta get the placeholder thing, but how do these positions reflect on the ad positions in the Advertising Admincp.

Or do I have to somehow put a placeholder in these positions in the Advertising (i do NOT know what I'm talking about, trying to understand)

:up:

MySaltyreef 11-20-2013 02:37 PM

okay another stupid question !

can we use this in a widget or forum block ?

y2ksw 11-20-2013 02:45 PM

Quote:

Originally Posted by MySaltyreef (Post 2462341)
okay another stupid question !

can we use this in a widget or forum block ?

yes :)


All times are GMT. The time now is 09:34 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.03009 seconds
  • Memory Usage 1,854KB
  • 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_php_printable
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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