vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How do I create another checkbox in advertising section ? (https://vborg.vbsupport.ru/showthread.php?t=288586)

crazyboy1661 10-03-2012 06:10 AM

How do I create another checkbox in advertising section ?
 
1 Attachment(s)
Hai guys, I need your help. I want to create a check box in advertising section as shown in the attached pic. The purpose is I don't want display Google ads on the particular forums/categories(adult queries on health) and hurt Google.

Any mod or suggestions appreciated.
:up::up::up::up:

Stefan118 10-03-2012 09:26 AM

Yes, I would like that too.
At this moment I have done this manualy.
Everywhere in my forum i have the same ads, exept for forum X, Y, Z...
These forums have each there own ads.

I edit the ad template and placed 4 conditionals in it.
1: Show the ads everywhere exept forum 774,775,776,785
Code:

<vb:if condition="!in_array($GLOBALS['forumid'], array(774,775,776,785))">
2, 3 and 4: Show other ads if forum is 1 of those 4.
Code:

<vb:if condition="in_array($GLOBALS['forumid'], array(774))">
Only this result in a huge advertising script.

crazyboy1661 10-11-2012 03:50 AM

Ok thanks for your reply. I will check it out.

crazyboy1661 03-08-2013 07:41 AM

Hi can you tell me which template you have edited? B'coz there are so many templates related to ads.
Hope you can understand!


Quote:

Originally Posted by Stefan118 (Post 2370452)
Yes, I would like that too.
At this moment I have done this manualy.
Everywhere in my forum i have the same ads, exept for forum X, Y, Z...
These forums have each there own ads.

I edit the ad template and placed 4 conditionals in it.
1: Show the ads everywhere exept forum 774,775,776,785
Code:

<vb:if condition="!in_array($GLOBALS['forumid'], array(774,775,776,785))">
2, 3 and 4: Show other ads if forum is 1 of those 4.
Code:

<vb:if condition="in_array($GLOBALS['forumid'], array(774))">
Only this result in a huge advertising script.



All times are GMT. The time now is 12:53 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.01684 seconds
  • Memory Usage 1,718KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete