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)

bada_bing 04-23-2013 01:55 PM

Quote:

Originally Posted by y2ksw (Post 2418064)
a   would insert a fixed space between two HTML text elements, thus:

Code:

<!--@vbbanners:0@--><!--@vbbanners:0@-->
become:
Code:

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

Giovanni

I have done something simular on my site except I have an issue where if the banners are side by side and you shrink your browser it throws the banners off allighment. Any way to wrap the banners so they can adjust depending on your browser window? The issue now is that they are fixed and assume the browser window is at least a minimum size but when you shring the window or view the site from a smart know the banners are all off

y2ksw 04-23-2013 02:11 PM

Quote:

Originally Posted by bada_bing (Post 2418072)
Giovanni

I have done something simular on my site except I have an issue where if the banners are side by side and you shrink your browser it throws the banners off allighment. Any way to wrap the banners so they can adjust depending on your browser window? The issue now is that they are fixed and assume the browser window is at least a minimum size but when you shring the window or view the site from a smart know the banners are all off

These are all HTML issues, where I am, honestly spoken, unable to help.

With vBulletin 3 you will have to handle problems with tables and most of them can't be fixed, because tables have a rather static design. On the other hand, with vbulletin 4 and div's, the situation isn't much better, because then all elements tend to flee from the developer :)

HTML hates me :p

blackie58 04-25-2013 11:48 AM

Thanks for the replies

Its working as i want thanks

GarethBurrows 04-25-2013 06:22 PM

...found the answer...

pengrus 04-26-2013 12:11 PM

My developer helped us install this mod to work with a custom theme they developed, and we found many of the adlocations do not show the ads. They said this is bug issue with vbulletin or your mod. Is he correct?

ad_thread_last_post_content = not working
ad_thread_first_post_content = not working
ad_showthread_firstpost_start = working
ad_showthread_firstpost_sig = working
ad_showthread_beforeqr = not working
ad_navbar_below = working
ad_header_logo = not working
ad_header_end = not working
ad_global_header2 = working
ad_global_header1 = working
ad_global_below_navbar = working
ad_global_above_footer = working
ad_forum_below_threadlist = working
ad_forumhome_afterforums = not working
ad_forumdisplay_afterthreads = not working
ad_footer_start = working
ad_footer_end = working
ad_board_below_whats_going_on = working
ad_board_after_forums = working
ad_blogsidebar_start = not working
ad_blogsidebar_middle = not working
ad_blogsidebar_end = not working
ad_blogshowentry_before = working
ad_blogshowentry_after = working
ad_bloglist_first_entry = working
ad_archive_below_content = working
ad_archive_above_content2 = working
ad_archive_above_content1 = working

Thank you!

y2ksw 04-26-2013 02:16 PM

Quote:

Originally Posted by pengrus (Post 2418646)
My developer helped us install this mod to work with a custom theme they developed, and we found many of the adlocations do not show the ads. They said this is bug issue with vbulletin or your mod. Is he correct?

(...)

Thank you!

Oh, how I love developers, really! :)

Do some of the ad locations work? What are the setting differences?

Did you actually insert a banner placeholder inside the inbuilt ad locations? Else there will appear nothing.

Are there enough banners in the database to show multiple banners on the same page? If you have 5 locations on page, you also must have at least 5 banners to show.

Until now, we always managed to run the banners on any system and any circumstances, and most of the times it was just a misunderstanding or spelling error, or a wrong time setting. Besides not reading the manual about vbSEO, of course :p ... even on Photopost (which is an addon), some people have managed to show their banners with the unofficial addon (at post 989 of this thread).

So, please prove me wrong :rolleyes:

pengrus 04-26-2013 02:25 PM

We created one simple text ad, and tried it one by one on all the ad locations. And the list above shows which ones working, which ones not working.

The developer even said this:

"Regarding those ad location template that is not working, we tested it on default vb and it doesn't work and it is not related to our theme. You can test it in default vBulletin style to check."

Does this mod require modification to the custom theme to add something to the theme template?

Thanks,
Sean

y2ksw 04-26-2013 09:01 PM

Quote:

Originally Posted by pengrus (Post 2418677)
We created one simple text ad, and tried it one by one on all the ad locations. And the list above shows which ones working, which ones not working.

The developer even said this:

"Regarding those ad location template that is not working, we tested it on default vb and it doesn't work and it is not related to our theme. You can test it in default vBulletin style to check."

Does this mod require modification to the custom theme to add something to the theme template?

Thanks,
Sean

Not if you use the inbuilt ad_* locations. But if you want to fill banners in more specific places, you will have to edit the respective templates.

SPVB 04-27-2013 12:41 AM

I got the first ad (<!--@vbbanners:0@--> ) to show up - how do I add the rest of the banners to the code? I am lost!

y2ksw 04-28-2013 09:18 AM

Quote:

Originally Posted by SPVB (Post 2418779)
I got the first ad (<!--@vbbanners:0@--> ) to show up - how do I add the rest of the banners to the code? I am lost!

You would add more <!--@vbbanners:0@--> into your page until you show all the banners you wish to see in a single page. And, you would add N banners into the database, each of the different banners you would show in rotation.

bzcomputers 05-05-2013 11:24 PM

Working well on 4.2 PL3.
Have one issue with ads not displaying in another mod created in CakePHP (just shows the position reference), but I'm pretty sure it isn't an issue with this mod.

Request:
The ability to select multiple positions for the same banner. This would make it easier for webmasters to track if the same banner performs better in one position versus another.

I know you could just create another banner with the same code and select a separate position, but that would completely defeat the purpose of setting max impressions and max clicks for a given banner.

y2ksw 05-06-2013 10:01 AM

Quote:

Originally Posted by bzcomputers (Post 2420122)
Working well on 4.2 PL3.
Have one issue with ads not displaying in another mod created in CakePHP (just shows the position reference), but I'm pretty sure it isn't an issue with this mod.

Request:
The ability to select multiple positions for the same banner. This would make it easier for webmasters to track if the same banner performs better in one position versus another.

I know you could just create another banner with the same code and select a separate position, but that would completely defeat the purpose of setting max impressions and max clicks for a given banner.

I believe that with the upcoming version 5 of vBulletin it will be unavoidabile to move the whole thing to a new level ... mainly because there will be no hook at all to intercept the final page output. At that point, all possibile and immaginable associations could be realized, because printing a banner would not request any efford to your servers, but to ours (:erm:).

In other words, we will have to create a new, fully driven advertising system which then will serve the banners you wish to see on your site, as external input. Once the system is up and running for a while, we may release the whole thing to the public domain. The problem however is the relatively high demand of development hours to achieve this, and most of all, how to convince everybody to use it, when there are other systems. I really don't want to make concurrence to anybody else out there ... i have already enough fighting just as is :)

brihan 05-07-2013 06:26 PM

Quote:

Originally Posted by tibobdenazareth (Post 2387523)
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>

Thank you for this information.

Could you explain it a little more. I see that this edit is for the postbit_legacy template but I'm not exactly sure where in that template you are adding this and should "THIS_SCRIPT" be changed to something else?

Thanks for any help anyone can offer.

vithorius 05-09-2013 10:15 AM

Is it possible to use this as a vBadvanced module?

(thank you!)

y2ksw 05-12-2013 09:49 AM

Quote:

Originally Posted by vithorius (Post 2420844)
Is it possible to use this as a vBadvanced module?

(thank you!)

You may insert a banner placeholder in a HTML module in order to show a banner there.

Judith2 06-03-2013 10:36 PM

I can only fit 6 banner in the sidebar, is there the opportunity to expand it to 11 banner?

Quote:

<div align="center"><!--@vbbanners:4@--></div><br />
<div align="center"><!--@vbbanners:5@--></div><br />
<div align="center"><!--@vbbanners:6@--></div><br />
<div align="center"><!--@vbbanners:7@--></div><br />
<div align="center"><!--@vbbanners:8@--></div><br />
<div align="center"><!--@vbbanners:9@--></div>

y2ksw 06-03-2013 11:47 PM

Quote:

Originally Posted by Judith2 (Post 2425661)
I can only fit 6 banner in the sidebar, is there the opportunity to expand it to 11 banner?

You would just use one placeholder N times one below each other and have at least that N number of banners for that location in database. :)

datoneer 06-04-2013 01:20 AM

Thank you it is really a great mod! Installed and rated 5 stars

Judith2 06-05-2013 11:22 PM

Quote:

Originally Posted by y2ksw (Post 2425671)
You would just use one placeholder N times one below each other and have at least that N number of banners for that location in database. :)

Um, unfortunately, I am a layman, could you explain it to me with an example? :o

bzcomputers 06-06-2013 01:42 AM

Quote:

Originally Posted by Judith2 (Post 2426025)
Um, unfortunately, I am a layman, could you explain it to me with an example? :o

He just talking about using the same place holder like....


<div align="center"><!--@vbbanners:3@--></div><br />
<div align="center"><!--@vbbanners:3@--></div><br />
<div align="center"><!--@vbbanners:3@--></div><br />
<div align="center"><!--@vbbanners:3@--></div><br />
<div align="center"><!--@vbbanners:3@--></div><br />
<div align="center"><!--@vbbanners:3@--></div>

Then just making sure you have at least that number of ads under the single placeholder so that no ads are duplicated on a page.

y2ksw 06-06-2013 06:35 AM

Quote:

Originally Posted by bzcomputers (Post 2426036)
He just talking about using the same place holder like....


<div align="center"><!--@vbbanners:3@--></div><br />
<div align="center"><!--@vbbanners:3@--></div><br />
<div align="center"><!--@vbbanners:3@--></div><br />
<div align="center"><!--@vbbanners:3@--></div><br />
<div align="center"><!--@vbbanners:3@--></div><br />
<div align="center"><!--@vbbanners:3@--></div>

Then just making sure you have at least that number of ads under the single placeholder so that no ads are duplicated on a page.

This doesn't matter. No ad is ever duplicated on a single page, but missing ads show a blank :)

Judith2 06-06-2013 11:46 PM

thanks for the help

bzcomputers 06-07-2013 02:14 AM

Quote:

Originally Posted by y2ksw (Post 2426074)
This doesn't matter. No ad is ever duplicated on a single page, but missing ads show a blank :)


Did not know, or at least did not remember. Probably should go back and read the documentation again it's been awhile.


Couple of requests/suggestions.

1) Add an expiration date column to all the Banner Lists in the Admin CP. This way it's easier to keep track of the ads that will be expiring soon without having to page through them all individually.

2) Include global.php for rbs_stats.php. I think the statistics would look a lot better and more professional if they were contained within the framework of the web site.

3) Add an option to show a different timezone (other than GMT) universally on the statistics page.

y2ksw 06-07-2013 04:51 PM

Quote:

Originally Posted by bzcomputers (Post 2426280)
Did not know, or at least did not remember. Probably should go back and read the documentation again it's been awhile.


Couple of requests/suggestions.

1) Add an expiration date column to all the Banner Lists in the Admin CP. This way it's easier to keep track of the ads that will be expiring soon without having to page through them all individually.

2) Include global.php for rbs_stats.php. I think the statistics would look a lot better and more professional if they were contained within the framework of the web site.

3) Add an option to show a different timezone (other than GMT) universally on the statistics page.

Added to wish list :)

However, I believe I will leave this product as is for vbulletin 3-4, since it has done an almost perfect job over many years now. For vbulletin 5, I have to reinvent the wheel and most probably I will then offer a 2-step product, which first will be developed and maintained on my servers and then later released (if desired) as a stand-alone package.

The point is, vbulletin 5 does not have the old hook system any more and it is not possible to replace from within a "new" plugin parts of a fully rendered page. Thus it needs a banner system which implements the current functionallity off-line and users will implement banners using a widget.

In other words, this product will go one step back to what it was before (stand-alone) and one step forth in order to accomodate all the features which were constantly missing, such as having "simply" a fully driven advertising system. This will also open for some very new scenarios, such as advertising groups, affiliation codes and shared banners in large networks.

But since these extra features are costly in terms of traffic, I will release the whole thing as soon it is stable enough, unless we can agree to a number of my banners on your boards to cover the expenses. I have seen, it works good enough to keep the current project going, but a dedicated server has evidently a much higher cost. :)

Toorak Times 06-08-2013 02:55 PM

Please don't abandon 4.2.1 mate, I haven't started to use this mod yet, but it is as you say awesome. As a newspaper publisher I am only just starting to get my head around the publishing suite, and most mod builders ONLY think of forums, when the CMS, Calendars< groups and Blogs are the parts of vB I need advancements on.

djbaxter 06-08-2013 03:10 PM

Quote:

Originally Posted by Toorak Times (Post 2426666)
Please don't abandon 4.2.1 mate, I haven't started to use this mod yet, but it is as you say awesome. As a newspaper publisher I am only just starting to get my head around the publishing suite, and most mod builders ONLY think of forums, when the CMS, Calendars< groups and Blogs are the parts of vB I need advancements on.

The add-on works perfectly on 4.2.1.

y2ksw 06-08-2013 03:29 PM

Quote:

Originally Posted by Toorak Times (Post 2426666)
Please don't abandon 4.2.1 mate, I haven't started to use this mod yet, but it is as you say awesome. As a newspaper publisher I am only just starting to get my head around the publishing suite, and most mod builders ONLY think of forums, when the CMS, Calendars< groups and Blogs are the parts of vB I need advancements on.

I won't, but all the extra goodies, which are impossible to add on this system, will have to come elsewhere :)

If it was for me, I would have preferred this system here, because external data is always a hassle, even if you pull it in from your own servers.

Toorak Times 06-08-2013 04:21 PM

Until they put a real CMS in 5 this will be the one for content driven sites, I'd use vB5 as a linked social network maybe atm

Judith2 06-10-2013 12:18 PM

I have a tick placed so that the clicks are counted, but nothing is displayed!!

y2ksw 06-10-2013 01:38 PM

Quote:

Originally Posted by Judith2 (Post 2427085)
I have a tick placed so that the clicks are counted, but nothing is displayed!!

Scripts will not count unless you craft them specifically. Google AdSense is a good example for which you never will get a count.

Judith2 06-10-2013 10:32 PM

Ah OK! Thanks for the Answer

chikuru 06-13-2013 12:47 PM

Hello y2ksw,

How can I add more banner ads positions?
So far, there is 0-9..

Marked as Installed!

Thank you!

y2ksw 06-13-2013 01:01 PM

Quote:

Originally Posted by chikuru (Post 2427861)
Hello y2ksw,

How can I add more banner ads positions?
So far, there is 0-9..

Marked as Installed!

Thank you!

Normally you will need only 1 or 2 positions since you may reuse each position, even on the same page. We have discussed this argument many, at least 20, if not 50 times in this thread.

But if you really must, there is an option to change this.

m13 06-22-2013 07:54 PM

Hello!
After been redirected to this thread, because I asked the question in the wrong place, I ask again here:
I can't make the rotating banner system work in my forum. I have followed very carefully the steps in this tutorial http://www.pagerobot.com/pub/rbs/rbs_01.htm
But nothing happens. The banners simply don't show. The banners are .gif. Any idea why this is happening?

Thanks very much!!
I have vbulletin 4.2.

Videx 06-23-2013 12:51 AM

Quote:

Originally Posted by m13 (Post 2429840)
I can't make the rotating banner system work in my forum.

"It doesn't work" is always kind of vague. Do your ads work in all the pre-defined ad locations using stock vb? Also we'll need a link to the forum in question.

m13 06-23-2013 02:56 AM

Hi, Videx. Thanks for answer!
I'm sorry if I couldn't explain better the problem, but it is because I have no idea what is wrong.
And yes, the ads are working using admincp/advertising from stock vb.
The link: http://www.ticoracer.com/forum/forum.php

y2ksw 06-23-2013 08:17 AM

Quote:

Originally Posted by m13 (Post 2429916)
Hi, Videx. Thanks for answer!
I'm sorry if I couldn't explain better the problem, but it is because I have no idea what is wrong.
And yes, the ads are working using admincp/advertising from stock vb.
The link: http://www.ticoracer.com/forum/forum.php

I see some banners ... did you get it working?

Toorak Times 06-23-2013 11:25 AM

Hi guys, we are just investigating how to make this work best for us, just about to monetise and I am blown out by the adaptability of the system, had it installed for a year or so but never needed it till now. Using 4.2.1 so I'll let you know how we go eh...tried and couldn't make it appear, but site system working fine

Videx 06-23-2013 12:48 PM

Quote:

Originally Posted by y2ksw (Post 2429944)
I see some banners ... did you get it working?

I don't see "... /forum/rbs_banner.php ..." anywhere in the page source, so either "@vbbanners:0@" hasn't actually been added or all those existing banners are stomping over it? My first step if I was him would be to get rid of all existing ads before trying to get this mod working.

Toorak: Same thing I just said - telling us nothing but "it doesn't work" really doesn't enable anyone to do anything for you. At the very least give us a link and assure us plain vb ads are working and that you don't have any large mods installed like vbadvanced or xxx that might be interfering.

xxx==Right now I can't think of the name of that big one that seems to break everything.

Toorak Times 06-23-2013 02:42 PM

<a href="http://www.tooraktimes.com.au" target="_blank">www.tooraktimes.com.au</a> thanks Videx sorry to be so daft...just enquiring really if you reckon its good to go for 4.2.1...I have a 24yo developer hassling me, she can't figure the settings...guess I'll pull out the whip


All times are GMT. The time now is 01:04 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.04184 seconds
  • Memory Usage 1,868KB
  • 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
  • (22)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