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)

Scalemotorcars 07-20-2017 09:36 PM

Has anyone figured out how to display this on Photopost? Works great with everything else. Maybe some way to add a THIS_SCRIPT to one of the files....

y2ksw 07-21-2017 07:56 AM

Quote:

Originally Posted by Scalemotorcars (Post 2588748)
Has anyone figured out how to display this on Photopost? Works great with everything else. Maybe some way to add a THIS_SCRIPT to one of the files....

Photopost does not use the standard page rendering, thus the banners are entirely skipped from their pages.

bazookajoe 07-21-2017 12:14 PM

Is there a modification that would allow a banner or banners to be placed in specific spots on every page in a thread?

y2ksw 07-21-2017 12:53 PM

Quote:

Originally Posted by bazookajoe (Post 2588770)
Is there a modification that would allow a banner or banners to be placed in specific spots on every page in a thread?

not that I know of ... except inbuilt advertising ...

SWSUSA 10-13-2017 04:54 PM

Hi! Prompt how to make two banners in rotation on the homepage?

=======

Привет! Подскажите, как сделать два баннера в ротации на главной странице?

y2ksw 10-13-2017 09:20 PM

Quote:

Originally Posted by SWSUSA (Post 2590447)
Hi! Prompt how to make two banners in rotation on the homepage?

=======

Привет! Подскажите, как сделать два баннера в ротации на главной странице?

You would use one placeholder (location) and 2 entries for that placeholder in the database.

designguy 11-29-2017 09:17 PM

This is similar to what I'm trying to do. I want to put a banner in between every 2nd post so I have the code inserted into the postbit template. Now, here's my problem: The group I'm pulling the banners from only has 3 banners in it. On a long thread, this only fills up the first three locations and then all the rest of the potential spaces are blank. I want these banners to repeat in these spaces down the page, not just show them once on the page. There doesn't seem to be a way to do this with this mod. Is there any way we can get a modification that allows a banner to be repeated on a page without entering multiple instances of the same banner?

-Designguy


Quote:

Originally Posted by rhody401 (Post 2450042)
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!


y2ksw 11-30-2017 06:50 AM

Quote:

Originally Posted by designguy (Post 2591321)
This is similar to what I'm trying to do. I want to put a banner in between every 2nd post so I have the code inserted into the postbit template. Now, here's my problem: The group I'm pulling the banners from only has 3 banners in it. On a long thread, this only fills up the first three locations and then all the rest of the potential spaces are blank. I want these banners to repeat in these spaces down the page, not just show them once on the page. There doesn't seem to be a way to do this with this mod. Is there any way we can get a modification that allows a banner to be repeated on a page without entering multiple instances of the same banner?

-Designguy

It's a rotating banner plugin and thus the only way to repeat contents is to duplicate banners and give them eventually a different weight because grouping of similar banners is more unlikely.

nxtgen 09-15-2018 12:42 PM

I know this is an older mod but it still works great.. Has anyone else run into the issue of Google marking the links as phishing? My site now shows up as phishing constantly.

djbaxter 09-15-2018 12:52 PM

I'm using it on two forums and have for years. I've never run into that problem at all.

What is the link structure you are using in your ads?


All times are GMT. The time now is 08:14 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.03304 seconds
  • Memory Usage 1,760KB
  • 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
  • (5)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
  • (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