vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - 10 Random Banners (Or Other HTML Objects) (https://vborg.vbsupport.ru/showthread.php?t=232023)

EWGF 03-29-2010 06:07 PM

I believe this code provides in showing the banner after the third post in forums 1, 2 and 3. In your case, this code should be placed in the "postbit" or "postbit_legacy" template
PHP Code:

<if condition="$post[postcount] % $vboptions[maxposts] == 3 AND in_array($GLOBALS[forumid], array(1,2,3))">$tenrandombanners</if> 


MagicThemeParks 04-11-2010 10:44 PM

Thanks for this! :up:

How do you increase this to more than ten banners or how do you run a 2nd instance of this same mod on the same page?

xoxstugotsxox 04-11-2010 11:47 PM

Is it possible to add this to CMPS?

EWGF 04-18-2010 10:56 PM

Quote:

Originally Posted by MagicThemeParks (Post 2019670)
Thanks for this! :up:

How do you increase this to more than ten banners or how do you run a 2nd instance of this same mod on the same page?

More than ten banners can be done by manually adjusting the plugin, although the settings in vBulletin Options only support ten fields.
You can place the variable more than once

Quote:

Originally Posted by xoxstugotsxox (Post 2019690)
Is it possible to add this to CMPS?

Yes

Scyther 07-21-2011 11:21 AM

nice mod..

marked installed....thanks..

BGObsession 07-30-2011 04:41 PM

I understand we can edit our CMPS template and add this, but what I want to be able to do on CMPS is to have this set as a center 'module' so I can rotate a series of images that change with every refresh. I've played with it, but can't figure out how to make that work.

Idea?

EWGF 08-02-2011 12:50 AM

You probably added $tenrandombanners as a BBcode in the module. That variable only works in templates :)

I made a CMPS module which does exactly what you're looking for. I also updated the code of the plugin for better rotation.

BGObsession 08-05-2011 03:22 PM

I knew the template code wouldn't work, just wasn't sure where to go from there. Awesome - I'm going to give it a try - thanks for the effort!

BGObsession 08-05-2011 08:40 PM

Working like a charm. Took me a bit to figure out I had to upload the first xml as a 'product', then upload the other xml in the CMPS section as a module, but I got it going. Thanks! Not often you ask for very specific help and get it. Truly appreciated.

BGObsession 06-03-2013 05:27 PM

Will this work on vbulletin version 4??? Anyone tried it?


All times are GMT. The time now is 03:42 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.01019 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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