Cant get it to work with "equal to" and "greater than".
foxhound |
|
---|---|
I added the following IF statement to my forums.post.tpl so it displays an add after the second forum post:
<!-- IF {FORUMS_POSTS_ROW_NUM} == 2 --> bla bla bla <!-- ENDIF --> But, it looks pretty bad cause right now there could be 2 adds and a signature on top of eachoter (I also have an add placed at the bottom of forums.post.tpl). So, I was hoping its possible to change the IF statement so it adds a block to the second post, but only when the total post count in the page is greater than 2. I tried many different setups of this but I cant figure out how to do it. I thought this would work but it doesnt: <!-- IF {FORUMS_POSTS_ROW_NUM} == 2 AND {FORUMS_POSTS_ROW_POSTCOUNT} > 2 --> bla bla bla <!-- ENDIF --> I searched both the Global Tag List as well as the TPL Tags Repository but have no idea what other statements I should use. The only one which works is the "{FORUMS_POSTS_ROW_NUM} == xx" as I use that multiple times. Anyone here who can help me with this? <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
|
Dieser Beitrag wurde von foxhound (am 1. Dezember 2010, 17:59, vor 14 Jahre) bearbeitet |