The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help installing ad under first post
I want to add a text ad under the first post of every page on my site. Where in the template do I paste the code?
TIA |
#2
|
||||
|
||||
What about putting it in your postbit(_legacy) template at the bottom with a condition around it so it only shows in the first post?
|
#3
|
|||
|
|||
That sounds good to me but how would I write the code for the condition? Thanks for your response Lynne
|
#4
|
||||
|
||||
Did you try looking in the postbit to figure it out? The condition is actually already written for you and used in there:
HTML Code:
<vb:if condition="$post['isfirstshown']">stuff</vb:if> |
#5
|
||||
|
||||
couldn't they just use one of the ad locations as well?
|
#6
|
|||
|
|||
No I didn't Lynne. Sorry Thank you for your help though, I would have never figured that out
--------------- Added [DATE]1282494126[/DATE] at [TIME]1282494126[/TIME] --------------- I am getting this message. adding child to non-existent node! This is what the code looks like after I paste it in. <vb:if condition="$post['isfirstshown']"><script type="text/javascript"><!-- google_ad_client = "pub-2629802984303117"; /* 728x15, created 8/22/10 */ google_ad_slot = "3512815801"; google_ad_width = 728; google_ad_height = 15; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></vb:if> |
#7
|
||||
|
||||
The only time I see that error is if there is a condition that isn't closed. Make sure all your <if> have </if>
|
#8
|
|||
|
|||
Hi Lynne, you were right about the error. I added another </if> when I shouldn't have but I want the ad underneath the 1st post box, not under the actual post inside the box.
|
#9
|
||||
|
||||
Then put divs around it and style the divs how you want them?
Where in the template are you adding the code? If you look at html for the posts, they all start/end with <li> - you did that, right? |
#10
|
||||
|
||||
I used to use ad_showthread_firstpost , but it didn't show in Manage Ads so you had to edit the template directly. However, it inexplicably stopped working in 406.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|