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

Reply
 
Thread Tools Display Modes
  #11  
Old 08-12-2006, 09:41 PM
ski diva ski diva is offline
 
Join Date: Jun 2006
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, whaddya know, it worked! You guys must shake your head over newbies like me! Don't know what I'd do without you. Thanks so so much!

Now I have one more question -- one more knot in this tangled web. Now that I've eliminated the adsense ad after the first postbit, what if I wanted to replace it with a banner that was targeted to this specific forum and this forum alone?
Reply With Quote
  #12  
Old 08-12-2006, 09:45 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find:
Code:
$spacer_close
 </if>
Replace with:
Code:
$spacer_close
<else />
<img src="path/to/your/image.gif" />
 </if>
Reply With Quote
  #13  
Old 08-12-2006, 09:55 PM
ski diva ski diva is offline
 
Join Date: Jun 2006
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found it at the very end of the code, so I hope that's right.

Again, thanks so so much!
Reply With Quote
  #14  
Old 08-12-2006, 10:01 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, that's where it goes. No problem.
Reply With Quote
  #15  
Old 08-13-2006, 11:58 PM
ski diva ski diva is offline
 
Join Date: Jun 2006
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just when I thought all was well.... I added that code to the end, and ended up with no adsense ads after the first postbit on any of my other forums, PLUS an empty space for an ad after each post in a thread. So I took it out. Now I'm not getting adsense at all on my other forums (though I am getting the space for it after the first post in a thread, and I'm no longer getting the empty space after each post), and there's no targeted ad (or even adsense) to on my "Ask The Expert" forum at all. (God, I hope this is clear!). I have no idea what could possibly have gone wrong. Help, please!

Here's my code:
Code:
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->
<if condition="$post[postcount] % $vboptions[maxposts] == 1">
<if condition="$forum[forumid] != 26">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="left">Sponsored Links</td>
</tr>
<tr>
<td class="alt1" align="center">
<script type="text/javascript"><!--
<script type="text/javascript"><!--
google_ad_client = "NUMBER HERE";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "F4F4FF";
google_color_link = "4B548B";
google_color_text = "000000";
google_color_url = "4B548B";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
</table>


</div>
$spacer_close
 </if>
</if>
Reply With Quote
  #16  
Old 08-14-2006, 12:02 AM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->
<if condition="$post[postcount] % $vboptions[maxposts] == 1">
<if condition="$thread[forumid] != 26">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="left">Sponsored Links</td>
</tr>
<tr>
<td class="alt1" align="center">
<script type="text/javascript"><!--
<script type="text/javascript"><!--
google_ad_client = "NUMBER HERE";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "F4F4FF";
google_color_link = "4B548B";
google_color_text = "000000";
google_color_url = "4B548B";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
</table>


</div>
$spacer_close
 </if>
</if>
Reply With Quote
  #17  
Old 08-14-2006, 12:21 AM
ski diva ski diva is offline
 
Join Date: Jun 2006
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for not wrapping the code, all. I'll make sure to do it next time.

Nope, that didn't work, either.
Reply With Quote
  #18  
Old 08-14-2006, 12:27 AM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you mind trying something?

Can you add, right at the end of your postbit template

Code:
<if condition="($post[postcount] % $vboptions[maxposts] == 1) && ($thread[forumid] != 26)">Conditional Checker</if>
and provide the link to your site then I can see what is going on.

Thanks
Reply With Quote
  #19  
Old 08-14-2006, 12:49 AM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, well that works, so the conditionals are right. The next bit is the easy bit, getting the banners to show in the right forum only.

delete the code from the previous post, and overwrite the code in post #16 with
Code:
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->
<if condition="$post[postcount] % $vboptions[maxposts] == 1">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="left">Sponsored Links</td>
</tr>
<tr>
<td class="alt1" align="center">

<!-- not forum 26 so show google -->
<if condition="$thread[forumid] != 26">
<!-- not forum 26 so show google -->

<script type="text/javascript"><!--
<script type="text/javascript"><!--
google_ad_client = "NUMBER HERE";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "F4F4FF";
google_color_link = "4B548B";
google_color_text = "000000";
google_color_url = "4B548B";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<!-- this is forum 26 so show other banner -->
<else />
<!-- this is forum 26 so show other banner -->

Your other banner here

<!-- / forum checker -->
</if>
<!-- / forum checker -->

</td>
</tr>
</table>


</div>
$spacer_close

</if>
I've put quite a few comments in there too so that it is easy to know what is what.

For now it will show Your other banner here in the ask the expert forum, which you can replace the text with the appropraite banner code for use there.
Reply With Quote
  #20  
Old 08-14-2006, 12:56 AM
ski diva ski diva is offline
 
Join Date: Jun 2006
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, we're making some progress. I do get 'Your Other Banner Here" where in the "Ask The Expert" forum, but still no adsense in the other forums.
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 12:09 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.04328 seconds
  • Memory Usage 2,253KB
  • Queries Executed 11 (?)
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
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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
  • (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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete