The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Question about the ad banner in first post for guests.
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) ?
|
#2
|
||||
|
||||
Put the ad code in the template ad_showthread_firstpost_start
Wrap the ad code in this template conditional: Code:
<vb:if condition="$show['guest']"> Ad code here </vb:if> -[edited post with correct template]- |
#3
|
|||
|
|||
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).
|
#4
|
||||
|
||||
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... Code:
<vb:if condition="$show['guest'] AND $post['isfirstshown']"> Ad code here </vb:if> |
#5
|
|||
|
|||
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) |
#6
|
||||
|
||||
Quote:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx and see if that shows up? |
#7
|
|||
|
|||
No. It does not !!
|
#8
|
||||
|
||||
How many styles you have installed?
|
#9
|
|||
|
|||
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. |
#10
|
||||
|
||||
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. |
Благодарность от: | ||
inphoenix |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|