Re: How to make index.php RDF button stick to the category in the URL? |
Mon, 22 October 2007 18:48 |
|
The logic is quite simple:
{IF ...} opens a new conditional block
{ELSE} allows you to have a fallback case
The tricky part is the "END" bit.
Normally you can end the expression using {END}, but if you don't have an else you need to use {ENDIF}. The {ENDI} and {ENDIFI} are special terminators you need to use in the place of {END} and {ENDIF} when your conditional expression is within another conditional expression.
|
|
|
|
|
How to make index.php RDF button stick to the category in the URL? |
Tue, 09 October 2007 12:08 |
|
I guess in index.tmpl this is the line I want to change - I just don't know how
{IF: $FUD_OPT_2 & 1048576}[ <a href="rdf.php?mode=m&l=1&basic=1"><img src="{THEME_IMAGE_ROOT}/rss.gif" title="{MSG: thread_syndicate}" /></a> ]{ENDIFI}
I want the rdf URL to contain a cat=?? param (from $_GET['cat'] - obv sanitised).
As it stands, the RDF link is the same regardless of whatever category/subcategory you are browsing - and it makes no sense (to me) to provide a feed for the whole forum. Why not make the feed button provide the feed for whatever category you are actually looking at?
Thanks,
PG
|
|