Is it possible to show an ad (a horizontal skyscraper) only if, for example, 10 or more posts are within a certain thread? I have the space already setup in the showthread templates, but need a conditional to only show the ads if there are enough posts to guarantee the thread is long enough.
Contitional based on total number of posts in a thread
Collapse
X
-
Tags: None
-
-
Check post# 2 here...
Edit this template: Admin CP -> Styles & Templates -> Style Manager -> « » -> Postbit Templates -> postbit or postbit_legacy (depending on which layout you are using) Add this code to the very bottom of the template: <if condition="$post[postcount] == 1"> $spacer_open <divLats...Comment
-
Originally posted by LatsCheck post# 2 here...
http://www.vbulletin.com/forum/showthread.php?t=123281
Oops - - I made a mistake in the first post. I wrote "horizontal skyscraper," but I meant "Vertical skyscraper."
The post you are referring to puts ads in between posts. I need an ad to show on the SIDE of the posts IF the # of posts (and hence the length of the screen) is higher than a certain number.
Even better would be if the # of posts ON THAT PAGE is higher than a certain number. I hope this makes sense.
Consider a site with a 120x600 ad on the left site. If there is one post, it looks funny as the ad is MUCH longer than the posts. If there are 10 posts on that page, it looks OK.Comment
-
-
-
That conditional that Jake used addresses the total number of posts in the thread. I really need the total number of posts displayed on a certain page.
TTT = to the top.Comment
-
Originally posted by LatsTry something like this...Code:<if condition="($post[postcount]-1) % $GLOBALS[perpage] == 0"> <if condition="($GLOBALS[totalposts] - $post[postcount]) > 10">skyscraper here <else />no room </if> </if>
But i haven't understand anything. If you've got time, can you explain your code step by step ?
Thank youComment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment