Customizing SMF > Tips and Tricks

Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds

<< < (2/102) > >>

Oldiesmann:
Currently there is no XML/RSS feed for unread posts. Sorry.

inthe80s:
I just tried this for the most recent posts by board, but I'm not getting any results.  When I tried the example above using this board, it only gives one post.  Though when I tried it on my system (without specifying a board number) it did appear to work correctly.

I actually want the most recently updated topics, not the posts themselves.  I guess I could do that by ignoring duplicate topics.  That is I actually got a response from the server for the appropriate board.

[Unknown]:
Find, News.php:


--- Code: --- WHERE m.ID_MSG >= " . ($modSettings['maxMsgID'] - 4 * $_GET['limit']) . "
--- End code ---

Replace:


--- Code: --- WHERE m.ID_MSG >= " . ($modSettings['maxMsgID'] - 40 * $_GET['limit']) . "
--- End code ---

How do I modify files?

-[Unknown]

inthe80s:

--- Quote from: [Unknown] on February 11, 2005, 06:23:33 PM ---Find, News.php:


--- Code: --- WHERE m.ID_MSG >= " . ($modSettings['maxMsgID'] - 4 * $_GET['limit']) . "
--- End code ---

Replace:


--- Code: --- WHERE m.ID_MSG >= " . ($modSettings['maxMsgID'] - 40 * $_GET['limit']) . "
--- End code ---

[[:How do I modify files?]]

-[Unknown]

--- End quote ---

that won't do it.  I was just looking the line of code over, and it appears to work by subtracting from the message id.  I upped it to 400 and then used the limit, and that seemed to get around it.


I looked over the source for the news.php file, and it doesn't really have the kind of functionality I want.  I'll play with it at some point, and maybe write a new function for returning the most recently updated threads instead of just the most recently updated posts.

Robinski:
is there a Way of requesting the RSS as a logged in user?

cause we have one board that is visible to all (where no one can post)
and the rest is only for authorised users

It would be nice to have somthing like
user=username
pass=password

to get info from all boards

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version