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 :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
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 12:08 Go to next message
pgregg is currently offline  pgregg   United Kingdom
Messages: 14
Registered: July 2006
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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] Thu, 18 October 2007 20: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
remove from buddy list
ignore all messages by this user
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 06:23 Go to previous messageGo to next message
pgregg is currently offline  pgregg   United Kingdom
Messages: 14
Registered: July 2006
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 14:09 Go to previous messageGo to next message
pgregg is currently offline  pgregg   United Kingdom
Messages: 14
Registered: July 2006
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 18:48 Go to previous message
Ilia is currently offline  Ilia   
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: inserting new link
Next Topic: Mask usernames?
Goto Forum:
  

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

Current Time: Mon Oct 03 06:59:31 EDT 2022

Total time taken to generate the page: 0.00684 seconds