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)

BOWZONE 11-14-2012 01:26 PM

I'm rather confused about something...I have added 2 banners in the 0 position and instead of them rotating on re-fresh...they're stacking on top of each other.

Thoughts??

www.bowzone.net/forum

Videx 11-14-2012 01:37 PM

Quote:

Originally Posted by BOWZONE (Post 2381022)
I'm rather confused about something...I have added 2 banners in the 0 position and instead of them rotating on re-fresh...they're stacking on top of each other.

Thoughts??

www.bowzone.net/forum

I only see one banner at that page. Have you tried different browsers? Tried clearing your browser cache?

y2ksw 11-14-2012 05:57 PM

Quote:

Originally Posted by BOWZONE (Post 2381022)
I'm rather confused about something...I have added 2 banners in the 0 position and instead of them rotating on re-fresh...they're stacking on top of each other.

Thoughts??

www.bowzone.net/forum

looks ok to me ... 1 banner there

BOWZONE 11-15-2012 01:34 PM

1 Attachment(s)
Yes, cleared cache...

Here's a screenshot from this morning.

BOWZONE 11-15-2012 01:35 PM

PHP Code:

    </ul>
    <
hr />
</
div></div>
</
div>
<!--@
vbbanners:0@-->
{
vb:raw ad_location.ad_navbar_below}
{
vb:raw ad_location.global_below_navbar

navbar template

BOWZONE 11-15-2012 01:37 PM

Got it figured out...Developer put in an extra hook...Thanks for helping out :)

y2ksw 11-15-2012 01:59 PM

1 Attachment(s)
Quote:

Originally Posted by BOWZONE (Post 2381246)
Yes, cleared cache...

Here's a screenshot from this morning.

and this is from now.

do you have eventually a second banner at the same location visible to your usergroup only?

BOWZONE 11-15-2012 02:13 PM

Quote:

Originally Posted by y2ksw (Post 2381250)
and this is from now.

do you have eventually a second banner at the same location visible to your usergroup only?

Hey y2ksw...Ya, I found the extra hook and removed it. All is good!

Thank you for your help!!!

Scott

kodbg 11-17-2012 09:40 PM

Hi,
I need to show one banner position - for example @vbbanners:2@ in more than one place.
Is this possible?

When i put the code in more places, only the first shows the content

And second:
I want to use something like:

<vb:if condition="vbbanners:5 == '1'">
zzzz
</vb if>

What is the right syntax?

y2ksw 11-18-2012 11:50 AM

Quote:

Originally Posted by kodbg (Post 2382063)
Hi,
I need to show one banner position - for example @vbbanners:2@ in more than one place.
Is this possible?

When i put the code in more places, only the first shows the content


And second:
I want to use something like:

<vb:if condition="vbbanners:5 == '1'">
zzzz
</vb if>

What is the right syntax?

1. You probably have no more banners for the same location (2) in database.
2. This is not possible. There are no style or code conditions you may use together with this product.

lapiervb 11-19-2012 03:16 PM

Can this be set so only certain usergroups can view the banners?

y2ksw 11-19-2012 03:55 PM

Quote:

Originally Posted by lapiervb (Post 2382596)
Can this be set so only certain usergroups can view the banners?

Yes, every banner has a field where to specify the usergroup id's as a comma-separated list.

JourneyDeep 11-19-2012 04:42 PM

I can't get this to work in 3.6.7 PL1. Everything shows up in admincp - I have rbs options, but nothing appears in the forums. How much do you charge to fix this in my forum?

y2ksw 11-19-2012 04:59 PM

Quote:

Originally Posted by JourneyDeep (Post 2382625)
I can't get this to work in 3.6.7 PL1. Everything shows up in admincp - I have rbs options, but nothing appears in the forums. How much do you charge to fix this in my forum?

nothing, but I take my time ;)

JourneyDeep 11-19-2012 06:52 PM

Quote:

Originally Posted by y2ksw (Post 2382633)
nothing, but I take my time ;)

I have no problem with that! What are your requirements for access and such.

Forensic 11-20-2012 06:37 PM

I have a couple banners that are supposed to show only in a specific location. Easy enough using the Forums section to specify where to show them.

What I can't figure out is, how do I keep other banners from showing in those forums while still allowing them in the forum home?

Is the correct method to create a separate group for forum home or am I just misunderstanding a setting?

y2ksw 11-21-2012 08:43 AM

Quote:

Originally Posted by Forensic (Post 2383015)
I have a couple banners that are supposed to show only in a specific location. Easy enough using the Forums section to specify where to show them.

What I can't figure out is, how do I keep other banners from showing in those forums while still allowing them in the forum home?

Is the correct method to create a separate group for forum home or am I just misunderstanding a setting?

If you have specific settings to a banner you will have to create a copy (use duplicate) in order to have additional rules.

A banner which shows in specific sections and in home needs thus 2 copies.

y2ksw 11-21-2012 08:45 AM

Quote:

Originally Posted by JourneyDeep (Post 2382672)
I have no problem with that! What are your requirements for access and such.

If you feel ready, please send me the URL and credentials via PM. I need to access the settings, styles and maintenance area in order to verify and setup one of the banners.

JourneyDeep 11-26-2012 10:19 PM

YGPM

tibobdenazareth 11-27-2012 12:02 AM

y2ksw, thanks for the wonderful mod. The best thing is the fact that you're very active on the board to help people.

I'm using vb4.2. I uploaded all the files in their proper locations. Installed the program, picked and edicted one of the default banners (by adding the URL and the image info). I followed everything religiously after having read pages upon pages of issues and replies here. My problem is ... NOTHING shows up.

Because I already have google adsense active, I increased the size of the banner to be larger than the google adsense box at the horizontal 0 position. Nothing showed.

I then changed everything to position 1, disabling all banner defaults and leaving just the one to which I attached the image. I changed the position to 1 (vertical), went to ad_navbar_below and tried everything that was suggested on this board. Nothing showed.

On the Options menu, whether I left the Nth placeholder as <!--@vbbanners:%d@--> or <!--@vbbanners:1@-->, nothing happened.

I'm really at the end of my rope at this point.

I already have google adsense working fine, so I don't want to touch it. I want to be able to stack my new rotating banners under it... or vertically (if that will ever work). But first, I need to be able to have it to SHOW something. PLEASE HELP and thanks.

tibobdenazareth 11-27-2012 04:54 AM

I went back to check all the pages again from page 1 until I got to one of attroll's posts in response to somebody with the same issue as mine. I checked his/her last piece of advice:

5. Check the start and end dates. I always start mine the day before the current date, making it yesterdays date.

And that's where my problem was. My start date auto-generated by the system is a few hours short. So the date has not arrived yet. I changed it to yesterday and BINGO!!!!! Thanks attroll.

Now I can move on to more interesting tweaking stuff. FABULOUS mod.

Videx 11-27-2012 01:54 PM

I wonder if the automatic dates shouldn't just be removed? They do seem more trouble than they're worth, causing ads to disappear with no notice. Or maybe just eliminate the Start date, assuming you wouldn't be entering it if it wasn't to start immediately.

I know our advertisers get very upset if I don't give them lots of notice and attention. Simply stopping their ad on the expiration date is really not an option.

tibobdenazareth 11-27-2012 04:57 PM

While I'm going through the pages.... does anyone have the post number for the solution of having 2 (let's say) 480x150 banners side by side (horizontally)? I used the suggested syntax code in the ad_navbar_below template:

<!--@vbbanners:0@-->&nbsp;<!--@vbbanners:0@-->

It doesn't work. It stacks them up one on top of the other.

tibobdenazareth 11-27-2012 07:50 PM

I went rthrough 141 pages of posts plus the pdf doc from the download ... I still can't find a working code to have 2 rotating banners of small sizes (480x150 e.g.) to be SIDE by SIDE.

Any help somebody who has figured that out? It looks like everybody has been out since yesterday.

y2ksw 11-27-2012 09:10 PM

Quote:

Originally Posted by Videx (Post 2385686)
I wonder if the automatic dates shouldn't just be removed? They do seem more trouble than they're worth, causing ads to disappear with no notice. Or maybe just eliminate the Start date, assuming you wouldn't be entering it if it wasn't to start immediately.

I know our advertisers get very upset if I don't give them lots of notice and attention. Simply stopping their ad on the expiration date is really not an option.

I have this already on my list ... actually it is a bug :p

y2ksw 11-27-2012 09:13 PM

Quote:

Originally Posted by tibobdenazareth (Post 2385774)
While I'm going through the pages.... does anyone have the post number for the solution of having 2 (let's say) 480x150 banners side by side (horizontally)? I used the suggested syntax code in the ad_navbar_below template:

<!--@vbbanners:0@-->&nbsp;<!--@vbbanners:0@-->

It doesn't work. It stacks them up one on top of the other.

Quote:

Originally Posted by tibobdenazareth (Post 2385848)
I went rthrough 141 pages of posts plus the pdf doc from the download ... I still can't find a working code to have 2 rotating banners of small sizes (480x150 e.g.) to be SIDE by SIDE.

Any help somebody who has figured that out? It looks like everybody has been out since yesterday.

How images and banners are chown depends also on your CSS. If the CSS tells that images have to be stacked, they will stack al lot :)

Have you tried to use a div tag around them?

tibobdenazareth 11-27-2012 09:44 PM

yes, I use the div tag. I figured out the problem.

Based on the size of my available horizontal ad space, the two sizes were adding to more than the horizontal space can contain so it pushes the next one to the next horizontal space right below it. When I adjust the sizes, both fit on the same row (side by side). Thanks.

I just can't figure out how to make banners appear after the first post of every page or after 5, 10 .... posts as described in earlier posts.

I used the "postbit_legacy" code to no avail. Nothing is shown.

I used the ad_showthread_firstpost_sig, ad_showthread_firstpost_start ... NOTHING.

I'm only copying and pasting the codes that others said work on this board. But that doesn't cut it for me. Any help Please?

tibobdenazareth 11-27-2012 11:05 PM

Quote:

Originally Posted by FrankP (Post 2328512)
Many thanks to Mystics from vb-germany.com. He gave me the following code for the postbit_legacy and this one is working like a charme:

Code:

<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:3@-->
                </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:2@-->
                </div>
        </div>
</vb:if>


I copied & pasted it into my postbit_legacy at the bottom. Nothing happened. I placed it at the beginning, nothing happened. Any help? Since you have it working like a charm. Thanks.

rhody401 11-28-2012 11:23 AM

I notice that you are calling banner groups 2 and 3. Do you have content/banners defined in those groups? ie: vbbanners:3 vs vbbanners:0

I have all of mine in group 0 and use the same code here, and it works fine.

This is what I have, to put them every 5th post:
PHP Code:

Styles Templates -> Style Manager -> edit template ->  postbit templates -> postbit_legacy  

;.....at the VERY END add this:  (puts add after 5th and 10th post)

<
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> 


tibobdenazareth 11-28-2012 12:46 PM

Thanks rhody. I always used position 0 in the code. I even copied and pasted your code above in the postbit_legacy template at the very end. Noting happened. I already have the banners working fine in the ad_below_navbar.

tibobdenazareth 11-30-2012 02:49 PM

After a couple of days trying and trying ... I DID IT!!! I found out we can't use the same position banners in multiple places. It will stick to only the first position we used it.

For example, if you use banner0@ under the navbar, you have to use another position (banner 1@ or banner3@...) after the first post or every 5 and 10 posts.

Now my next issue ... THE LOGO BANNER!

I NEED to change my static logo image into a rotating banner. I've already created the swf flash file with the exact dimensions of the current logo image. I read that editing header templates would not work. ANY HELP please.

djbaxter 11-30-2012 03:15 PM

Quote:

Originally Posted by tibobdenazareth (Post 2386845)
After a couple of days trying and trying ... I DID IT!!! I found out we can't use the same position banners in multiple places. It will stick to only the first position we used it.

For example, if you use banner0@ under the navbar, you have to use another position (banner 1@ or banner3@...) after the first post or every 5 and 10 posts.

No, that's incorrect. I use the different banner numbers for different sizes of banner. Then I display those banners wherever I wish.

tibobdenazareth 11-30-2012 05:51 PM

I edited the header template SUCCESSFULLY thanks to y2ksw's previous posts on the subject. THANKS y2ksw.

The only issue was when I use a swf flash file. I searched everywhere and couldn't find a way to have the stand-alone swf file to have a transparent background in Flash CS6 (you can do it with the HTML file, not the swf file). And the swf was hiding all the login info at the logo header.

I had to go back and add 9 or so banners at that position using instead png images. The drawback is people have to refresh or new/click to see a different image. I was hoping the swf was gonna work.

If anybody knows either a way to make the swf stand-alone file have a transparent background, or a way to send the swf logo file in the background of all the login info found in the header template, please let me know.

tibobdenazareth 11-30-2012 05:56 PM

Based on what I've done so far, here's a summary for anybody or especially newbie (like me) looking for a lot of things but doesn't want to go through hundreds of pages of info.

TO PLACE IN THE HEADER ... AS LOGO

Style Manager--> Edit Templates--> header

REPLACE: (from 3rd line)
<vb:if condition="$stylevar['titleimage']"><div><a name="top" href="{vb:link forumhome}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div></vb:if>

WITH:
<vb:if condition="$stylevar['titleimage']"><div><a name="top" href="{vb:link forumhome}" class="logo-image"><!--@vbbanners:0@--></a></div></vb:if>

NB- There's an issue with the stand-alone swf flash file with no transparent background, covering all the login info found in the header template. Works better with png image files.

Still waiting to see if there's a way to send the swf logo banner file in the background.

------------------------------------

TO PLACE AFTER FIRST POST

Style Manager--> Edit Templates--> Ad location Templates--> ad_showthread_firstpost_sig

Add at the end: <div align="center"><!--@vbbanners:0@--></div>

NB- ad_showthread_firstpost_sig places the banner as a SIGNATURE after the first post;
ad_showthread_firstpost_start places the banner inside at the start of the first post
ad_thread_first_post_content places the banner in the content space of the first post (NOT WORKING FOR ME anyway)

-------------------------------------

TO PLACE 2 BANNERS SIDE BY SIDE (Horizontal)

1) Make sure the 2 banner dimensions will fit horizontally without overlapping, based on the total horizontal ad space in the site width. Both at the same position
since they will occupy just one "row" of space together. If you set them at diff position, it will work but this would be a waste of banner position. Instead of
using banners:0@ and banners:0@, use (for example) banners:0@ and banners:1@ [again, this is a waste of position 1]
2) Wherever you are insterting them just write the following code in the appropriate template: <div align="center"><!--@vbbanners:0@--><!--@vbbanners:0@--></div>

-------------------------------------

TO PLACE BANNERS EVERY 5th AND 10th POST

Style Manager--> Edit Templates--> Postbit Templates--> postbit_legacy

Paste the following code at the end:

<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:3@-->
</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:4@-->
</div>
</div>
</vb:if>

NB- This code assumes you have already created at position 3 a banner to be placed after every 10th post and a position 4 banner after every 5th post.
Feel free to adjust according to your banner list settings. You may even include 2 banners at the same position in those codes. See above for instructions.

------------------------------------

Hope that helps.

zackw 11-30-2012 10:12 PM

I don't have time to search all over but has anybody noticed that when you set a date/time for the banners to turn on and off the script will simply change your numbers to something else?

If I try to set:
Start: Dec 1, 00 01
End: Dec 1, 23 59

It changes automatically to
Start: Dec 1, 01 01
End: Dec 2, 00 59

Why? Sometimes I'll change the 00 to 01 hour and then BOTH start and end become 02 hour! Sometimes the start or end date jumps to the next day. This is bugging me!

All I want to do is start the banner at the beginning of the day, and then stop it at the end of the day, but it will not accept this. So I tried to start at beginning of the day and end beginning of the next day, and it won't go any earlier than hour 02!

That's not all. So I finally was able to use Dec 1, 01 01 to Dec 2, 01 01. But then I went to my next banner which is supposed to be Dec 2, 01 01, to Dec 3, 01 01 and it refuses that, instead changing it to hour 02 02!

There is no rhyme or reason here, but it does not seem to ever accept any time I put in there! It changes the hour or the minutes or the day to whatever it wants.

What is going on?

Thanks, I hope to fix this soon as an ad campaign is beginning tomorrow!

UPDATE:

Note, if I simply hit SAVE on a banner over and over without even changing anything, the hours auto increment up and up every time. So in order to get 23:59 I actually have to put in 22:59 so that it will increment to the right time. Since 00 will increment to 01, there is no way to put 00 as my hour.

tibobdenazareth 12-02-2012 04:35 AM

Rathar than editing postbit_legacy AND showthread_firstpost_sig templates, we cand edit postbit_legacy te,plate by adding a third section for after the first post. In that sense, the ad will fall truly AFTER the first post rather than above the signature. Here's the code.

NB- for the mobile version, that's the only way we can get something after the first post since the showthread_firstpost templates do not exist.

<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:3@--><!--@vbbanners:3@-->
</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:2@--><!--@vbbanners:2@-->
</div>
</div>
<vb:elseif condition="THIS_SCRIPT == 'showthread' AND $post['postcount'] == 1" />
<div class="thread_controls">
<div style="width: 100%; text-align: center">
<!--@vbbanners:1@--><!--@vbbanners:1@-->
</div>
</div>

</vb:if>

Maxi62 12-03-2012 08:09 AM

Hello
How can the system from version 2.3.1 to the latest 2.4.0 update without loss of data?

deanattridge 12-09-2012 07:59 PM

Quote:

Originally Posted by tibobdenazareth (Post 2386947)
Based on what I've done so far, here's a summary for anybody or especially newbie (like me) looking for a lot of things but doesn't want to go through hundreds of pages of info.

TO PLACE IN THE HEADER ... AS LOGO

Style Manager--> Edit Templates--> header

REPLACE: (from 3rd line)
<vb:if condition="$stylevar['titleimage']"><div><a name="top" href="{vb:link forumhome}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div></vb:if>

WITH:
<vb:if condition="$stylevar['titleimage']"><div><a name="top" href="{vb:link forumhome}" class="logo-image"><!--@vbbanners:0@--></a></div></vb:if>

NB- There's an issue with the stand-alone swf flash file with no transparent background, covering all the login info found in the header template. Works better with png image files.

Still waiting to see if there's a way to send the swf logo banner file in the background.

This post saved me from deleting this mod, to complex for a noob like me who just wanted a rotating Header.

However - Once I do this it seems subsequent images in position 0 list will appear below the navbar instead of at the same place as my first image. Anybody have an idea what I am doing wrong ?

KUDOS !

y2ksw 12-10-2012 04:04 PM

Quote:

Originally Posted by Maxi62 (Post 2387976)
Hello
How can the system from version 2.3.1 to the latest 2.4.0 update without loss of data?

As you would do with any other plugin :) ... and you would normally make a backup before that, as well ;)

Desibabu19 12-12-2012 12:39 PM

I have been using this hack for more than year. And I am very satisfied.

Recently I found an issue.

If I display the flash file directly, it runs at normal speed. However, under the RBS banner hack, it runs very fast. File is same.

for reference, I have displayed the file in both format. It is Edifice Ad displayed two times.

Page:
http://www.indianrealestateboard.com...e-Other-Cities

First Edifice ad through RBS hack. Second is direct html code.

swf file in use:
http://www.indianrealestateboard.com...s/edifice3.swf

Has any one faced this problem ? What parameters I need to change to make the file to run at normal speed ?


All times are GMT. The time now is 04:53 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.03839 seconds
  • Memory Usage 1,884KB
  • 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
  • (2)bbcode_php_printable
  • (17)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