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 08-17-2011 10:14 AM

Quote:

Originally Posted by jnmann (Post 2231751)
OK, reinstalled the package and I have 2 banners...at long last! How do I get them to randomly rotate?

Does rotate simply mean randomly appear on screen refresh?

yes

y2ksw 08-17-2011 10:18 AM

Quote:

Originally Posted by MentaL (Post 2231801)
can you disable stats with this?

you may change the code accordingly, changing from:

PHP Code:

// Increment impression counts
if(count($qids))
{
    
$SQL "UPDATE " TABLE_PREFIX "rbs_banners 
        SET impressions=impressions+1 
        WHERE id IN(" 
implode(','$qids) . ")";
    
$vbulletin->db->query_write($SQL);


to:
PHP Code:

// Increment impression counts
if(&& count($qids))
{
    
$SQL "UPDATE " TABLE_PREFIX "rbs_banners 
        SET impressions=impressions+1 
        WHERE id IN(" 
implode(','$qids) . ")";
    
$vbulletin->db->query_write($SQL);


Remember you have to repeat this after every upgrade ... unless I'll add it to the options, which is actually a good tip :)

y2ksw 08-17-2011 10:24 AM

Quote:

Originally Posted by ComoEstaEso-com (Post 2234314)
Hello,
This is working in our vB 4.1.5 PL1 installation with vBSEO
I followed the formatting instruction on the PDF.

I think that my questions are basics that are flying over my head.
A test banner is not showing, when called from a post in a thread.

I have the default Google Ads enabled in "ID" 1 and 2.
I created a test banner, located in ID 3.

Can I call this banner within a post?
What about calling it within a CMS Article?

I place the @vbbanners:3@ yet come up with no banner in the post or Article.

Am I messing up somewhere?
Something I should check?

Thank you very much for your work and your help!! Greatly appreciated!

========
Adding a little bit more:
On the test thread, I placed on a post @vbbanners:5@
Then set the test banner's Position to 5

When I load the test thread, the banner comes up at the very top of the page, before anything else.
It has
Code:

" />
at the end.
In addition, the "Destination URL" is not working (ie: the image is not "clickable" for a jump to the URL)

Messing up somewhere?

The number N in the @vbbanners:N@ placeholder stands for the location. The banner ID is only useful for statistics and for click tracking.

If your test banner with ID 3 is setup at location 0, your placeholder should look like:

@vbbanners:0@

If you post @vbbanners:0@ in a message, a banner will be inserted. This also applies to the CMS and anywhere else. If you preview or edit a post with @vbbanners:0@ however, you have to reinsert the placeholder again before saving.

blowy 08-18-2011 02:42 PM

Good Evening all

I am having a problem with this. Since I have upgraded my VB and Skin this dont work anymore I have all the banners and codes in position 2 but when I enable them they dont display or rotate.

My site is http://uk-betting-tips.co.uk

I have had to install the banner manuely


cheers

y2ksw 08-18-2011 03:31 PM

Quote:

Originally Posted by blowy (Post 2234955)
Good Evening all

I am having a problem with this. Since I have upgraded my VB and Skin this dont work anymore I have all the banners and codes in position 2 but when I enable them they dont display or rotate.

My site is http://uk-betting-tips.co.uk

I have had to install the banner manuely


cheers

You will have to insert the placeholders into your new style :)

blowy 08-18-2011 03:36 PM

ah rite ok how do i do that

y2ksw 08-18-2011 06:39 PM

The same way you did in the previous style :)

duketxboy 08-18-2011 11:10 PM

Quote:

Originally Posted by y2ksw (Post 2235044)
The same way you did in the previous style :)

once again thanks for all your help

viper357 08-19-2011 05:28 AM

Hi, I am running on 3.8.5 and am struggling with a flash banner, I can get it to display correctly, however, as soon as I wrap it so that I can use a URL on the flash banner, the banner loops, the client does not want the banner to loop, the banner must stop after the first animation, but the only way I can get a link to work on the banner is by wrapping it in your code, but then the banner loops, is there any way I can stop the banner from looping? Thanks.

y2ksw 08-19-2011 09:55 AM

Quote:

Originally Posted by viper357 (Post 2235224)
Hi, I am running on 3.8.5 and am struggling with a flash banner, I can get it to display correctly, however, as soon as I wrap it so that I can use a URL on the flash banner, the banner loops, the client does not want the banner to loop, the banner must stop after the first animation, but the only way I can get a link to work on the banner is by wrapping it in your code, but then the banner loops, is there any way I can stop the banner from looping? Thanks.

All the flash activity is defined inside. If you have a banner which needs to be corrected externally, the only other whay you have is not using the wrapper at all and paste the whole object/embed code into the "Text" box.

However, train your customers! :)


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