The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]()
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? |
#12
|
||||
|
||||
![]()
Find:
Code:
$spacer_close </if> Code:
$spacer_close <else /> <img src="path/to/your/image.gif" /> </if> |
#13
|
|||
|
|||
![]()
Found it at the very end of the code, so I hope that's right.
Again, thanks so so much! |
#14
|
||||
|
||||
![]()
Yep, that's where it goes. No problem.
|
#15
|
|||
|
|||
![]()
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> |
#16
|
|||
|
|||
![]() 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> |
#17
|
|||
|
|||
![]()
Sorry for not wrapping the code, all. I'll make sure to do it next time.
Nope, that didn't work, either. |
#18
|
|||
|
|||
![]()
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> Thanks |
#19
|
|||
|
|||
![]()
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> 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. |
#20
|
|||
|
|||
![]()
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.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|