I am actually to place 2 kind of images in my main.tpl for category use. One is a static arrow, the second is the same arrow but gif animated. I am trying to indicate categories where new link were posted.
BUT, whatever i am trying with the <IF {CATHASNEW}> Statement i alreway have a ">" before the animated gif. I guess something is misscoded in the CATHASNEW function but i was unable to find where. (I guess it is in the conditionnals.php file but this is way hard for me to manage this function )
This is a result of the content of {CATHASNEW} ending in a >, which it has to since it's an html tag. Using it in a conditional will just require a new template variable.
If you wish/can, add this to classes/category.php next to cathasnew()
Comments on <IF > Bug.
Beginner
Usergroup: Customer
Joined: Jun 20, 2005
Location: Europa
Total Topics: 1
Total Comments: 2
I am actually to place 2 kind of images in my main.tpl for category use.
One is a static arrow, the second is the same arrow but gif animated.
I am trying to indicate categories where new link were posted.
BUT, whatever i am trying with the <IF {CATHASNEW}> Statement i alreway have a ">" before the animated gif.
I guess something is misscoded in the CATHASNEW function but i was unable to find where. (I guess it is in the conditionnals.php file but this is way hard for me to manage this function )
Does anyone has also this error?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
This is a result of the content of {CATHASNEW} ending in a >, which it has to since it's an html tag. Using it in a conditional will just require a new template variable.
If you wish/can, add this to classes/category.php next to cathasnew()
and then use {CATHASNEWBOOL} in the conditional.
Beginner
Usergroup: Customer
Joined: Jun 20, 2005
Location: Europa
Total Topics: 1
Total Comments: 2
Thanks a lot for your fast answer.
Will this function be included in next release of WLINKS or will i have to rewrite each time the category.php file?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I added it into my local copy of 3.2 at the time I posted it, so yes, it will be there in the future.