ChitikaFAQ.com is an independent website and is not owned, operated or maintained by Chitika.

Chitika eMiniMalls in a vBulletin thread

November 24th, 2005

In vBulletin go in to you Admin Control Panel then Styles and Templates then Style Manager then double click on Postbit Templates then either Postbit or Posbit_Legacy, depending on which one you are using (Legacy is the one with the avatar and user data horizontal to the post)

To place a Chitika eMiniMalls after the 1st Post, on only the first page use this code.

Add this to the very bottom of the template.


<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”>
CHITIKA EMINIMALLS CODE HERE
</td>
</tr>
</table>

</div>
$spacer_close

</if>

Replace CHITIKA EMINIMALLS CODE HERE with your Chitika code.

You can have more than 1 of the above codes, if you wish it to post a Chitika eMiniMalls after first and last posts, you could create two. Just have one after the other.

If Conditions (These can replace the first line in the above code to make it do different things):

After the 1st post on the first page only

<if condition="$post[postcount] == 1">

After the 1st post on every page

<if condition="$post[postcount] % $vboptions[maxposts] == 1">

After the first post, but only for guests

<if condition="$post[postcount] == 1 AND !$bbuserinfo[userid]">

After the first post, but only if the thread has at least 2 replies

<if condition="$post[postcount] == 1 AND $GLOBALS[threadinfo][replycount] >= 2">

After the first post, but only in specific forums (where X,Y,Z is a comma list of forumids)

<if condition="$post[postcount] == 1 AND in_array($GLOBALS[forumid], array(X,Y,Z))">

After every X posts (replace X with a number)

<if condition="$post[postcount] % X == 0">

After the last post on every page

<if condition="$post['islastshown']">

Between the last and second to last post on every page (need to move the above code to the very top of the template instead of the bottom, then use the same condition as above)

<if condition="$post[postcount] % X == 0">

These codes can be mixed and matched

For example, to place one after the last post on each page, but only if there have been 2 posts in the thread already use the following code


<if condition="$post['islastshown'] AND $GLOBALS[threadinfo][replycount] >= 2">

Thanks to Jake Bunce of vBulletin

Entry Filed under: Optimizing Chitika Ads

Leave a Comment

You must be logged in to post a comment.

Trackback this post  |  Subscribe to the comments via RSS Feed


Get Chitika eMiniMalls

Calendar

August 2008
M T W T F S S
« Jun    
 123
45678910
11121314151617
18192021222324
25262728293031

Most Recent Posts