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)

stinger2 03-29-2010 09:53 PM

hi y2ksw

works great......is there any way to exclude vbadvanced from showing the banners?

y2ksw 03-30-2010 09:29 AM

Quote:

Originally Posted by acekillerboy (Post 2012283)
i use CMPS how can i make that banners to appear only in CMPS portal and nowhere else on forum ? Thanks

If you use vBAdvanced, you may add placeholders to the vbAdvanced templates only. Other CMS which don't use vBulletin as engine, are not supported.

y2ksw 03-30-2010 09:38 AM

Quote:

Originally Posted by stinger2 (Post 2012514)
hi y2ksw


works great......is there any way to exclude vbadvanced from showing the banners?

If you explicitly select the forums, vBAdvanced will be excluded. Another solution is to choose templates which aren't propagated to vBAdvanced.

acekillerboy 03-30-2010 12:15 PM

Quote:

Originally Posted by y2ksw (Post 2012769)
If you use vBAdvanced, you may add placeholders to the vbAdvanced templates only. Other CMS which don't use vBulletin as engine, are not supported.

Thank for your answer .Yes i`m using Vbadvanced can you please say me exactly what i have to do since i`m newbie with coding.

Should i place
<!--@vbbanners@--> ? where exactly?

Many thanks !!!

shahryar_neo 03-30-2010 02:10 PM

<a href="https://vborg.vbsupport.ru/showpost.php?p=2011637&postcount=705" target="_blank">https://vborg.vbsupport.ru/showp...&postcount=705</a>

Developer's help need :d

y2ksw 03-30-2010 04:29 PM

Quote:

Originally Posted by shahryar_neo (Post 2012888)

You will have to ask an HTML / Style expert for this issue. Then, when you know how to show an 'X' between your posts, you may also replace that X with a banner placeholder :)

y2ksw 03-30-2010 04:32 PM

Quote:

Originally Posted by acekillerboy (Post 2012828)
Thank for your answer .Yes i`m using Vbadvanced can you please say me exactly what i have to do since i`m newbie with coding.

Should i place
<!--@vbbanners@--> ? where exactly?

Many thanks !!!

As replied in PM.

Please don't send me PM's if you also ask here. Also, public questions are likely to be replied more quickly ;)

stinger2 03-31-2010 10:05 AM

Quote:

Originally Posted by y2ksw (Post 2012775)
If you explicitly select the forums, vBAdvanced will be excluded. Another solution is to choose templates which aren't propagated to vBAdvanced.

thank you very much for the fast response

if i select the whole forums....forum home will NOT be included....if i chose the forum home...it will exclude the other forums

i just want to exclude the portal from showing the ads...

do you have any tip to do this

regards

S2

y2ksw 03-31-2010 11:47 AM

Quote:

Originally Posted by stinger2 (Post 2013364)
thank you very much for the fast response

if i select the whole forums....forum home will NOT be included....if i chose the forum home...it will exclude the other forums

i just want to exclude the portal from showing the ads...

do you have any tip to do this

regards

S2

If this is a general rule and you are happy with changing the code a bit, you may add (hook: global_complete, "Banner Insertion"), on the very top:

Code:

if(THIS_SCRIPT == 'adv_index')
{

and, on the very bottom:
Code:

}
This way, the plugin code will run only when the portal pages are shown. However, it also keeps the placeholders unchanged in other pages, which may have undesireable side effects, if they are not in the HTML comment format. True vBAdvanced support would require more coding.

If some more users are interested in an additional feature for vBAdvanced support, this is the time to ask :)

Bacon Butty 04-01-2010 01:04 PM

Looks great. Is there any chance the placeholder can be placed after the first post in every thread, like;

https://vborg.vbsupport.ru/

... as detailed here


All times are GMT. The time now is 03:28 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.03594 seconds
  • Memory Usage 1,745KB
  • 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
  • (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