Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-08-2009, 02:58 PM
ddo36 ddo36 is offline
 
Join Date: May 2009
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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>
Reply With Quote
  #2  
Old 06-08-2009, 03:39 PM
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Location: Florida
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
Reply With Quote
  #3  
Old 06-09-2009, 04:13 AM
ddo36 ddo36 is offline
 
Join Date: May 2009
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 06-09-2009, 04:18 AM
ddo36 ddo36 is offline
 
Join Date: May 2009
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

see attached pics..
Attached Images
File Type: jpg guest.JPG (65.0 KB, 0 views)
File Type: jpg member.JPG (92.6 KB, 0 views)
Reply With Quote
  #5  
Old 06-09-2009, 09:07 AM
Scotteh Scotteh is offline
 
Join Date: May 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<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.
Reply With Quote
  #6  
Old 06-09-2009, 01:04 PM
ddo36 ddo36 is offline
 
Join Date: May 2009
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
  #7  
Old 06-09-2009, 02:15 PM
Scotteh Scotteh is offline
 
Join Date: May 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 06-09-2009, 02:56 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Take a look at your page source and see what is there.
Reply With Quote
  #9  
Old 06-10-2009, 01:04 PM
ddo36 ddo36 is offline
 
Join Date: May 2009
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 06-11-2009, 01:16 PM
ddo36 ddo36 is offline
 
Join Date: May 2009
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 05:18 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.05095 seconds
  • Memory Usage 2,276KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete