Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 10 Jul 2017, 16:20
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Default Mobile Style and tags problem - how to disable ads from tags script

I have problem with Google AdSense rules. It would be pretty simple to solve, if I could disable ads in tags.

I used this template conditional to block ads from tags system: THIS_SCRIPT != 'tags' mentioned here: https://www.vbulletin.org/forum/show...&postcount=430

It worked just fine with main style, but for some reason doesn't work with default mobile style. To make things worse, default mobile style is something that Google prefers for mobile compatibility. So, I'm stuck with it, unless someone know some working mobile style that Google recognizes as mobile friendly.

When conditional is used with default mobile style, it seems that it triggers something within this style which in the end causes serious problems, i.e. website stops showing pages altogether with 500 error. When I remove tags from templates, everything works.

So I need to try and do this without simple conditional for filtering tags script.

Does anyone knows which exact template in default mobile style shows threads with some tag?

--------------- Added 10 Jul 2017 at 17:25 ---------------

In case someone can use this, to remove ads from default mobile style from tag results, it is search, so you need to edit template search_resultlist.

From there I removed navbar and footer templates, which contain ads for me. For you it may be different, depending where you placed ads.

Also, as I removed offending tag, I needed to recreate it.

There's still problem, in case Google searches for non existing tag which offends their rules, there's error message that tag isn't specified, this message uses some other template (if someone knows which one, would be helpful).
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:02.

Layout Options | Width: Wide Color: