vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   ADS not showing @ ad_showthread_firstpost_start (https://vborg.vbsupport.ru/showthread.php?t=215662)

ddo36 06-08-2009 02:58 PM

ADS not showing @ ad_showthread_firstpost_start
 
how come the ads by google doesnt show on the first post?
the ads are created a few days back already. they're not new.
on the early days, ads are showing, but know, it's not showing anymore. no matter what ads i place. why?

This is the code i placed at "ad_showthread_firstpost_start "

Code:

<if condition="$bbuserinfo['usergroupid'] == 1">
<div style="float:right; width:300px; height:250px; margin-left:10px">

<script type="text/javascript"><!--
google_ad_client = "pub-3468565034734280";
/* 300x250, created 5/29/09 */
google_ad_slot = "4032835295";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</div>
</if>


EagleNick 06-08-2009 03:39 PM

Have you messed with the postbit or postbit_legacy templates and removed the code necessary to show the ads?

Make sure this is in those templates:
Code:

$ad_location[ad_showthread_firstpost_start]

ddo36 06-09-2009 04:13 AM

nope,i didnt mess with those templates.. its still there.

if i'm logged out. i can see that there's a space inside the 1st post, the imaginary square (since its a square ads by adsense) is there. but the ads cant be seen.

if i logged in, the space will be gone, and the post will go back to its normal look.

so we know that putting a table inside ad_showthread_firstpost_start will work.

but as i said, the ads dont show.

ddo36 06-09-2009 04:18 AM

1 Attachment(s)
see attached pics..

Scotteh 06-09-2009 09:07 AM

<if condition="$bbuserinfo['usergroupid'] == 1">

means they only show for usergroup with the ID of 1

That usergroup is Unregistered / Not Logged In.

So only guests will see the ads as you added the IF statement to only show them the ad's :P


Code:

<div style="float:right; width:300px; height:250px; margin-left:10px">

<script type="text/javascript"><!--
google_ad_client = "pub-3468565034734280";
/* 300x250, created 5/29/09 */
google_ad_slot = "4032835295";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</div>

should work as theres no usergroup specified.

ddo36 06-09-2009 01:04 PM

yup i know scotteh. :) that's what i want. only guests will see the ads on the 1st post...

but when i'm a guest, i cant see the ads. :(
(you can see at the attached picture the situation.:()

Scotteh 06-09-2009 02:15 PM

Oh right, google adsense requires a few days to sort out (72 hours i think AFTER you generate the HTML code) so may still be within that time range?

Lynne 06-09-2009 02:56 PM

Take a look at your page source and see what is there.

ddo36 06-10-2009 01:04 PM

Quote:

Oh right, google adsense requires a few days to sort out (72 hours i think AFTER you generate the HTML code) so may still be within that time range?
nope, not on that range. the ads worked before. it was just lately that the ads disappeared. :(

Quote:

Take a look at your page source and see what is there.
what will i look for at the page source?
i cant select the empty space.(or highlight)

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

Code:

<if condition="is_member_of($bbuserinfo, 1)">
i removed the if condition and my ads work, IF im logged in.
My members can see the ads. but if i'm or we're not logged in, (or in other words, we are guests)
the problem remains. we cant see the ads.

i didnt touch any postbit template. i have another forum, and the same code works, either as a guest or member.

help pls.

ddo36 06-11-2009 01:16 PM

i think i know already know what is causing the ads to not show up.

I have two notices, one is for the guests, and one is for the registered users.
and both of these notices have google ads.

if i'm logged out, of course the notice for the guest (with google ads) WILL show, and the ads inside the first post and on my footer WILL NOT show.

this goes for the registered users as well.

if im logged in, the notice for the guest (with google ads) WILL show, and the other ads WILL NOT show.

does anyone know how to fix this? so that even if there's a notice(with ADS), the other ads will also show..

i hope y'all got my problem.

thanks for the replies by the way. appreciated it. :)


All times are GMT. The time now is 01:13 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.01090 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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