FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » How to make index.php RDF button stick to the category in the URL?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
How to make index.php RDF button stick to the category in the URL? [message #39197] Tue, 09 October 2007 16:08 Go to next message
pgregg is currently offline  pgregg   United Kingdom
Messages: 14
Registered: July 2006
Karma: 0
Junior Member
I guess in index.tmpl this is the line I want to change - I just don't know how Sad

{IF: $FUD_OPT_2 & 1048576}[ <a href="rdf.php?mode=m&amp;l=1&amp;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
Re: How to make index.php RDF button stick to the category in the URL? [message #39358 is a reply to message #39197] Fri, 19 October 2007 00:04 Go to previous messageGo to next message
Ilia is currently offline  Ilia   
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
In index.tmpl you can add cat={VAR: cat_id} to the URL



FUDforum Core Developer
Re: How to make index.php RDF button stick to the category in the URL? [message #39382 is a reply to message #39358] Fri, 19 October 2007 10:23 Go to previous messageGo to next message
pgregg is currently offline  pgregg   United Kingdom
Messages: 14
Registered: July 2006
Karma: 0
Junior Member
Thanks Ilia - Looks good - now I just have to hack the rdf code to include posts from subcategories. Smile
Re: How to make index.php RDF button stick to the category in the URL? [message #39405 is a reply to message #39382] Sun, 21 October 2007 18:09 Go to previous messageGo to next message
pgregg is currently offline  pgregg   United Kingdom
Messages: 14
Registered: July 2006
Karma: 0
Junior Member
Aside: Is the {IF: ENDIF|ENDI|END|ENDIFI template language documented anywhere? I can't find anything in the normal documentation.
Re: How to make index.php RDF button stick to the category in the URL? [message #39446 is a reply to message #39405] Mon, 22 October 2007 22:48 Go to previous message
Ilia is currently offline  Ilia   
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
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.


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: inserting new link
Next Topic: Mask usernames?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 22:41:18 GMT 2024

Total time taken to generate the page: 0.02402 seconds