PDA

View Full Version : Question about the ad banner in first post for guests.


inphoenix
09-24-2011, 11:53 PM
I remember seeing a big square banner for guests in the first post of thread. I for a new style installed for me. Now I see that banner ad for guests is missing and this is affecting my revenue. Can someone tell me how do I add that banner back (for guests only) ?

BirdOPrey5
09-25-2011, 01:00 AM
Put the ad code in the template ad_showthread_firstpost_start

Wrap the ad code in this template conditional:


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

Ad code here

</vb:if>



and it will only show to guests.

-[edited post with correct template]-

inphoenix
09-25-2011, 05:43 PM
I tried this but it does not work. Is it possible that a certain template or style does not support this? Also, I am trying to use an adsense code in there (not sure if that's an issue).

BirdOPrey5
09-25-2011, 05:55 PM
It's possible if you have a custom style the author didn't properly program the ad location into the template.

If that is so you either need to manually add it back in or just put the code directly in the postbit (or postbit_legacy) template...


<vb:if condition="$show['guest'] AND $post['isfirstshown']">

Ad code here

</vb:if>

inphoenix
09-25-2011, 06:10 PM
I am very new to this, so bear with me. When I edit postbit_legacy, I see a bunch of code. Where exactly do I add this new code?

I do see this code in there :

-- <vb:if condition="$post['isfirstshown']">
-- {vb:raw ad_location.ad_showthread_firstpost_start}
-- {vb:raw ad_location.thread_first_post_content}

(I added the -- infront in this post)

BirdOPrey5
09-25-2011, 06:33 PM
I am very new to this, so bear with me. When I edit postbit_legacy, I see a bunch of code. Where exactly do I add this new code?


I do see this code in there :

<vb:if condition="$post['isfirstshown']">
{vb:raw ad_location.ad_showthread_firstpost_start}
{vb:raw ad_location.thread_first_post_content}

Then it should be working... Can you just put some text in the ad_location.ad_showthread_firstpost_start template like:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


and see if that shows up?

inphoenix
09-25-2011, 06:53 PM
Then it should be working... Can you just put some text in the ad_location.ad_showthread_firstpost_start template like:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


and see if that shows up?

No. It does not !!

BirdOPrey5
09-25-2011, 06:54 PM
How many styles you have installed?

inphoenix
09-25-2011, 07:07 PM
Just one in addition to default but now both of them show the same thing. User does not have option to change them.

Also, I was trying to install the mobile style and that does not work either. Thankfully, the forum is still functional. I can PM you details if you want to take a look.

Your help is greatly appreciated.

BirdOPrey5
09-25-2011, 08:06 PM
I gave you the wrong template back in my first post, the correct one is actually: ad_showthread_firstpost_start.

That's why it wasn't showing up. :o

inphoenix
09-25-2011, 08:23 PM
Yay!! It works. You rock !!