The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
How would I got about having adsense on every first post on the right side like this? http://howardforums.com/showthread.php?t=1184175
|
#2
|
|||
|
|||
![]()
In postbit_legacy or postbit template
Find HTML Code:
<div id="post_message_$post[postid]">
HTML Code:
<div style="float: right;> ADSENSE CODE HERE </div> |
#3
|
||||
|
||||
![]()
So this will only have the ad on the first post right?
|
#4
|
|||
|
|||
![]()
nope but this will (and only for guests)
HTML Code:
<if condition="($post[postcount]==1) and ($show['guest'])"> <div style="float: right;> ADSENSE CODE HERE </div></if> |
#5
|
||||
|
||||
![]()
Thanks for the help but that didn't work
Quote:
I do this <div id="post_message_$post[postid]">$post[message]</div> <if condition="($post[postcount]==1) and ($show['guest'])"> <div style="float: right;> ADSENSE CODE HERE </div></if> And the code is at the bottom and it distorts the page... http://www.ryanmcbain.com/forums/showthread.php?p=20680 Hmmm am I doing something wrong? That's not working for me either |
#6
|
|||
|
|||
![]()
you've not followed what I have said correctly...
replace what you posted with HTML Code:
<div id="post_message_$post[postid]"> <if condition="($post[postcount]==1) and ($show['guest'])"> <div style="float: right;> ADSENSE CODE HERE </div></if>$post[message]</div> |
#7
|
||||
|
||||
![]() Quote:
|
#8
|
|||
|
|||
![]()
remove "and ($show['guest'])" if you want to show to everyone!
you need to log into google adsense to get the code for a different advert layout. |
#9
|
||||
|
||||
![]()
Thanks, but I'm putting different ad layouts in there and they still give me the same one....
|
#10
|
|||
|
|||
![]()
must be doing something wrong, what code are you using?
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|