The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
I already know how to stick adsense after 1st post, however that's not what I want.
For example: If there only ONE POST in a thread - adsense will NOT show under 1st post, but when there's a 2nd post.. the adsense then will appear under 1st post. So basically, no 2nd post = no adsense. I'm not sure but does it has anything with the <else> code? Here's my coding sampling: Code:
<if condition="in_array($post['postcount'], array(1,9,10,15,20))">
<div style="padding:6px 0px 0px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" align="center">
ADSENSE CODES........
</td>
</tr>
</table>
</div>
</if>
![]() -Nhat |
|
#2
|
|||
|
|||
|
<vb:if condition="$post[postcount]==2" /></vb:if>
|
|
#3
|
||||
|
||||
|
I believe that's for vB 4, how about vB 3.8?
Where exactly would I stick the code? Should it look something like this? Code:
<if condition="$post[postcount]==2" "in_array($post['postcount'], array(1,9,10,15,20))">
<div style="padding:6px 0px 0px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" align="center">
ADSENSE CODES........
</td>
</tr>
</table>
</div>
</if>
Tried the code above without success
|
|
#4
|
|||
|
|||
|
Try posting in 3.8 than this is 4.0...........
|
|
#5
|
|||
|
|||
|
Moved to vB3 forums.
|
|
#6
|
||||
|
||||
|
Any expert?
|
|
#7
|
||||
|
||||
|
I don't know what you're trying to do with the array in your if statement, it should merely be:
Code:
<if condition="$post[postcount]==2">
<div style="padding:6px 0px 0px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" align="center">
ADSENSE CODES........
</td>
</tr>
</table>
</div>
</if>
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|