Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 template conditional not working on postbit_classic
rkrusty26 Offline
Junior Member
**
Posts: 14
Joined: Aug 2013
Post: #1
template conditional not working on postbit_classic
hello!!

i am using template conditional for my forum http://studentsuvidha.com/forum

but problem is that when i am using this condition(written below) on template postbit then it is working fine but whenever i am trying to use this on postbit_classic or postbit_attachments then this condition is not working. actually i want to show ads within attachment box of first post of any thread.

<if $postcounter == 1 then>
...ad HTML here...
</if>
12-23-2014 05:41 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: template conditional not working on postbit_classic
If it works in postbit, it'll work in postbit_classic

For attachments, replace $postcounter with $GLOBALS['postcounter']

My Blog
12-24-2014 09:44 AM
Find all posts by this user Quote this message in a reply
rkrusty26 Offline
Junior Member
**
Posts: 14
Joined: Aug 2013
Post: #3
RE: template conditional not working on postbit_classic
thanks zingaburga. $GLOBALS['postcounter']  working for attachment box. but condition not working for postbit_classic really, but working for postbit.

but i think all condition will be work on postbit and my work will be complete. i want to ask that as condition not working on postbit_classic so i am gonna miss something if i want to complete my work with postbit template only.??  if yes then only i will try to find a way to fix this.

and you are really helpful person

thanks for your response.

have a good day.

sorry for my bad english
(This post was last modified: 12-24-2014 10:00 PM by rkrusty26.)
12-24-2014 09:56 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: