View Full Version : $spacer_close problem
Xplorer4x4
12-17-2005, 08:05 AM
I am working on a slight varation of an adsence display hack. However the only problem here is it isn't processing $spacer_close.
<if condition="$post[postcount] == 1">
$spacer_open
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt2" width="17%" nowrap>
$vbphrase[google_ads_hint]
</td>
<td class="alt2" width="83%">
<center>
YOUR AD HERE
</center>
</td></tr></table>
</div>
$spacer_close
</if>
This should be a pretty easy fix shouldn;t it?
Xplorer4x4
12-18-2005, 11:11 AM
bump. :)
Hello,
Put the "if condition" after the spacer close. Currently it will only close if the post count is 1 because you have it wrapped in the condition.
So it should look like this:
$spacer_open
<if condition="$post[postcount] == 1">
Which template are you using for this code?
Xplorer4x4
12-19-2005, 12:58 AM
Hello,
Put the "if condition" after the spacer close. Currently it will only close if the post count is 1 because you have it wrapped in the condition.
So it should look like this:
$spacer_open
<if condition="$post[postcount] == 1">
I moved $spacer_CLOSE and $spacer_open out of the if condition and that did not fix it. Besides the spacers worked perfectly fine inside the if condition using this:
<if condition="$post[postcount] == 1">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="left">Sponsored Links</td>
</tr>
<tr>
<td class="alt1" align="center">
<adsense code here>
</td>
</tr>
</table>
</div>
$spacer_close
</if>
So I was pretty sure that isn;t the problem.
I cant help without knowing which template.
Xplorer4x4
12-19-2005, 02:50 AM
My fault, postbit_legacy.
Note that the second template there was the old version, I am just looking for a nicer version.
Again this is the version I am atempting to use. I notice the AJAX edit works fine in the first post but stops working on any posts after that.
<if condition="$post[postcount] == 1">
$spacer_open
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt2" width="17%" nowrap>
$vbphrase[google_ads_hint]
</td>
<td class="alt2" width="83%">
<center>
YOUR AD HERE
</center>
</td></tr></table>
</div>
$spacer_close
</if>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.