Notifications
Clear all

Add Classifications to RSS?

2 Posts
2 Users
0 Reactions
1,449 Views
(@garnet)
Posts: 8
Active Member
Topic starter
 

URL to your eFiction: www.sujufanfics.com
Version of eFiction: 3.5.3.
Have you bridged eFiction, if so with what?: No
Version of PHP: 5.3.17
Version of MySQL: 5.0.96-community
Have you searched for your problem: Yes
If so, what terms did you try: Rss
State the nature of your problem: This is not actually a problem but a question. Is it possible to add an specific classification to de RSS? In my site I have the classification "Pareja" (Couple) and I want to add the name of the couple before the story title like I did on the main page in the "most recen"· block.

For example

[Couple] Title by Author [Rating]
Story summary

Thanks!~


 
Posted : 09/04/2013 3:28 am
(@lyndsie)
Posts: 1263
Member Moderator
 

Are you capable of editing PHP? You'd have to edit RSS.php. It uses _STORYQUERY, though, so you'd have to make your own to replace it.

OBLIGATORY DISCLAIMER: Don't touch the actual _STORYQUERY in the /includes folder. Bad bad bad.

Here is _STORYQUERY


define ("_STORYQUERY",  "SELECT stories.*, "._PENNAMEFIELD." as penname, UNIX_TIMESTAMP(stories.date) as date, UNIX_TIMESTAMP(stories.updated) as updated FROM ("._AUTHORTABLE.", ".TABLEPREFIX."fanfiction_stories as stories) WHERE "._UIDFIELD." = stories.uid AND stories.validated > 0 ");

You'd probably have to do a join to get the classification names there too.


 
Posted : 06/06/2013 2:52 am
Share: