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)

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.


All times are GMT. The time now is 11:56 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.04105 seconds
  • Memory Usage 1,757KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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