vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Unauthorised google ads - WTF? (https://vborg.vbsupport.ru/showthread.php?t=237014)

Hammertime 02-27-2010 09:06 AM

Unauthorised google ads - WTF?
 
I've just noticed Google ads appearing in my forum posts and I didn't put them there.

If i'm logged in as Admin they don't appear, view the thread as guest and there they are.

Is this something in v4 that i'm unaware of or could it be a plugin that I have installed that is embedding these ads?

I'll not be impressed if it's the latter.:mad:

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

I've disabled all plugins and products but still have same problem.

ChopSuey 02-27-2010 01:03 PM

Have you checked your ads?

AdminCP > Ads > Manage ads? Delete them.

Hammertime 02-27-2010 01:35 PM

Quote:

Originally Posted by ChopSuey (Post 1992822)
Have you checked your ads?

AdminCP > Ads > Manage ads? Delete them.

Yeah, there's nothing there at all.

Lynne 02-27-2010 01:41 PM

Create a new style with no parent:
  • Styles & Templates > Style Manager > Add New Style
  • Parent Style: No Parent Style
  • Title: Default vBulletin
  • Allow User Selection: Yes
  • Save
Then browse the site using that totally default vbulletin style - do you still have the same problem?

If it is still happening - Try disabling your modifications/plugins and see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

PHP Code:

define('DISABLE_HOOKS'true); 


Hammertime 02-27-2010 01:49 PM

Thanks Lynne will try now.

The ad only appears on the last post btw.

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

Quote:

Originally Posted by Lynne (Post 1992848)
Create a new style with no parent:
  • Styles & Templates > Style Manager > Add New Style
  • Parent Style: No Parent Style
  • Title: Default vBulletin
  • Allow User Selection: Yes
  • Save
Then browse the site using that totally default vbulletin style - do you still have the same problem?

Problem disappears when I do the above.

Does this mean it is something embedded in the style I was using?

ChopSuey 02-27-2010 01:56 PM

Its in your templates where does it show up ? showthread? Edit the showthread template.

Hammertime 02-27-2010 02:08 PM

Yeah inside the last post of a thread.

Had a look in SHOWTHREAD but I can't see the wood for the trees and don't know what i'm looking for.

When I check out my page source I can see this:

Code:

<div id="ad_thread_last_post_content"><script type="text/javascript"><!--
google_ad_client = "pub-3466134045923773";
/* 300x250, created 10/20/09 */
google_ad_slot = "6024783282";
google_ad_width = 300;
google_ad_height = 250;
//-->

</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
                                               
                                <div class="content hasad">
                                        <div id="post_message_9">
                                                <blockquote class="postcontent restore ">
                                                        Test post 4.
                                                </blockquote>
                                        </div>

                                       
                                </div>


Lynne 02-27-2010 02:14 PM

It's not gonna be in showthread. It would be in whichever postbit template you are using or in the ad template. Did you look to see which ad templates have been modified? Like ad_thread_last_post_content perhaps?

Hammertime 02-27-2010 02:19 PM

Quote:

Originally Posted by Lynne (Post 1992875)
It's not gonna be in showthread. It would be in whichever postbit template you are using or in the ad template. Did you look to see which ad templates have been modified? Like ad_thread_last_post_content perhaps?

Pinpoint accuracy Lynne.

In ad_thread_last_post_content...

Code:

<div id="ad_thread_last_post_content"><vb:if condition="is_member_of($bbuserinfo, 1)"><script type="text/javascript"><!--
google_ad_client = "pub-3466134045923773";
/* 300x250, created 10/20/09 */
google_ad_slot = "6024783282";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><vb:if condition="$adsshown[] = 3"></vb:if></vb:if></div>

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

Are theme creators allowed to do this here? Especially without declaring it?

Thanks Lynne.

iamacyborg 02-27-2010 02:59 PM

I would have thought not, especially if the ad revenue is going back to their accounts rather than yours. If that is the case, send Google an email, and they'll deal with it.


All times are GMT. The time now is 05:25 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.01275 seconds
  • Memory Usage 1,742KB
  • 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
  • (1)bbcode_php_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