PDA

View Full Version : Showing Advertisement on All Pages except showthread


David Karol
02-24-2013, 08:47 PM
I put an advertisement in my showthread template, so I don't want vBulletin's 'built-in' footer advertisement to show there too. I have the following code for the built-in advertisement (Above Footer placement), however the code inside the if statement is still showing on showthread pages.

<if condition="THIS_SCRIPT != 'showthread'">

<vb:literal>
<div align='center'>
<!-- AllPages_Leaderboard_Footer_728x90 -->
***GOOGLE CODE HERE***
</div>
</vb:literal>

</if>

Does anyone know what I'm doing wrong? Internally, could there be a vb:literal around everything in that text box?

Here's a link (http://soundforums.net/installs/6557-conference-calls-into-sound-system.html) to one of our showthread pages. Note that there may be empty space in the bottom footer ad, due to how Google is serving them.

Thanks,
David

Lynne
02-24-2013, 11:08 PM
This is actually in your page source:
<div id="ad_global_above_footer"><if condition="THIS_SCRIPT != 'showthread'">
<div align='center'>
You cannot use conditions in the Advertising Manager, only in templates. So, you will need to not use the Advertising Manager for that particular ad and instead enter your code directly into the ad_global_above_footer template.

David Karol
02-24-2013, 11:36 PM
Lynne,

That worked great, thanks!

David Karol
02-25-2013, 03:27 AM
I noticed a slight variation between logged in and logged out users, in all browsers I tested. When logged in, there's no space left for the ad, but the space exists when logged out.

I have line breaks inserted in my code, otherwise when logged in, The ad will appear on top of the "previous, next" thread links.

Is there something wrong with my code? Is there somewhere else my code should be inserted?

Logged Out:
https://vborg.vbsupport.ru/attachment.php?attachmentid=143919&stc=1&d=1361766212

Logged In:
https://vborg.vbsupport.ru/attachment.php?attachmentid=143920&stc=1&d=1361766212

Code:

<vb:if condition="$show['next_prev_links']">


<vb:literal>
<div align='center'>
<!-- Forum_Thread_Leaderboard_Footer_728x90 -->
*** ADSENSE CODE HERE ***
</div>
<br><br><br><br><br><br><br>
</vb:literal>


<!-- next / previous links -->
<div class="navlinks">



Thanks,
David

Lynne
02-25-2013, 06:57 PM
I would need a test username/password in order to take a look at what is going on for logged in users.

I would not use this:
<br><br><br><br><br><br><br>

1. It is <br />, not <br>
2. The proper thing to do is use CSS to put some padding on the bottom.