vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How can I remove adsense specific forums? (https://vborg.vbsupport.ru/showthread.php?t=326299)

pallam 04-14-2018 01:56 PM

How can I remove adsense specific forums?
 
Hello
I am using Advertising Integration: Google AdSense with vbulletin Version 3.8.1.

How to remove ads from from specific forum.

Please help with step by step Thank you in advance.

Alan_SP 04-14-2018 05:25 PM

You need to wrap ad code in this:

HTML Code:

<if condition="!in_array($GLOBALS[forumid], array(1,2,3,4))>
1,2,3,4 are forumIDs where you DON'T want ads. You can use as many as you need.

Ad code goes between this and </if> (don't forget to end if condition).

You need to wrap all your ad code with same if condition.

pallam 04-14-2018 06:15 PM

Quote:

Originally Posted by Alan_SP (Post 2594163)
You need to wrap ad code in this:

HTML Code:

<if condition="!in_array($GLOBALS[forumid], array(1,2,3,4))>
1,2,3,4 are forumIDs where you DON'T want ads. You can use as many as you need.

Ad code goes between this and </if> (don't forget to end if condition).

You need to wrap all your ad code with same if condition.


Hi thank you for the reply.

Where I need to go add this code? Can you tell me step by step please.

snakes1100 04-14-2018 06:59 PM

Unfortunately, Alan probably isnt using vbulletin 3.8.1 or that mod, so it would be hard for anyone to tell you exactly where to place the code to work on your site.

In the options for that program, edit the location where you placed the google code, then add the code that Alan gave you.

<if condition="!in_array($GLOBALS[forumid], array(1,2,3,4))>
GOOGLE CODE
</if>

Change the forum id's to what you need them.

Brandon Sheley 04-15-2018 03:35 AM

I'm guessing the OP is actually using the built in google adsense system with vBulletin?
https://www.vbulletin.com/docs/html/...google_adsense

pallam 04-15-2018 04:34 AM

Quote:

Originally Posted by Brandon Sheley (Post 2594172)
I'm guessing the OP is actually using the built in google adsense system with vBulletin?
https://www.vbulletin.com/docs/html/...google_adsense


yes very correct my google adsense buit with vbulletin I don't no where the cods are located ..:(

Alan_SP 04-15-2018 06:25 PM

Well, I don't know in which exact templates it is, I'm now with vB4. You should look in which templates it is stored, in vB4 it is in ads templates (it is separate template group).

pallam 04-18-2018 05:46 PM

Thank you..

Brandon Sheley 04-20-2018 01:13 PM

Are there not options in your forum manager for when you want to show ads or not?
I figured vbulletin's own adsenses mod would have usergroup and forum permission options.

pallam 04-22-2018 04:55 PM

How to remove ads from specific thread I can't find the code any one help me please.

--------------- Added [DATE]1524423396[/DATE] at [TIME]1524423396[/TIME] ---------------

Quote:

Originally Posted by Brandon Sheley (Post 2594297)
Are there not options in your forum manager for when you want to show ads or not?
I figured vbulletin's own adsenses mod would have usergroup and forum permission options.



NO I don't see option I disable ads fr4om admincp but my ads still running ?


All times are GMT. The time now is 10:33 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.00967 seconds
  • Memory Usage 1,732KB
  • 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_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete