« WoW it's Wednesday | Main | Picture Friday »
February 9, 2006
Only Seven Days
You better get shopping!
The rest of this entry is about coding, so the non [MT] tech people may not want to read this. I changed my RSS feeds just a bit from Ben's comment addon. I emailed the others who use MT, but to make this public record I'm posting it here.
I am using an IF statement to only show the number of comments in the RSS feed. MT code does not appear to natively support IF statements so I had to get a plugin from here:
http://www.staggernation.com/mtplugins/Compare/
Go there, download the plugin code 'compare.pl' and put it in your plugin directory for MT. Next just use the following in the three feed templates:
<MTIfGreater a="[MTEntryCommentCount]" b="0" numeric="1"> (<$MTEntryCommentCount$>)</MTIfGreater>
Save and rebuild...
Sorry for the slack entry..It's late and I'm tired.
Posted by mhader at February 9, 2006 11:20 PM
Comments
Arrgh... It's not working.
Posted by: Jonathan at February 10, 2006 3:15 PM
Looks nice. I'll probably make the same change soon. The syntax of the if command is pretty strange if you ask me.
Posted by: Ben at February 10, 2006 6:01 PM
I'm not sure why it isn't working. Did you get the compare.pl into the plugin directory? I noticed earlier today that your feeds were no longer showing any comment numbers.
I agree that the IF statement is quite odd.
Posted by: michael at February 10, 2006 7:26 PM
I put the compare.pl plugin in the proper directory, copied/pasted the code into place, even checked folder and file attributes... Nothing. Monkeyed some more, still nothing. All it managed to do was eliminate it altogether. So, I put it back.
Posted by: Jonathan at February 11, 2006 10:20 AM