Advertisement:

SSI.php questions about latest posts

Aloittaja JCphotog, helmikuu 13, 2006, 10:44:57 IP

« edellinen - seuraava »

JCphotog

Hi.  I'm very excited about the SSI.php function of this forum.  I would like to post the recent posts to a specific board on a related site.  I see the Recent Posts Function: <?php ssi_recentPosts(); ?> will probably get me half way there, but is there some what to limit the recent posts to that of a specific board?

bryan_49ers


kegobeer

Please look at ssi_examples.php and SSI.php.  Also, read the SSI FAQs and search the forum for ssi_recentPosts.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

Kindred

to answer your question more specifically, yes... ssi_RecentPosts can be limited to specific boards by the function call...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

crewzer

Hey guys-

We respect you are experts at this stuff but we novices "trying" to learn.
We also respect the fact that you do this for free - and hugely appreciate that!

I have searched and searched and searched the forum for specifics on how to use these functions and found limited answers.

I have found posts that limit what is displayed by eliminating boards but is there a way to use this function to just show one board or one topic?

Doing this by specifying each board to NOT show means that every time a board is added, one has to edit this function.

Thanks...

Kindred

Sorry, the function, as designed only limits the boards by exclusion, not inclusion.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

JCphotog

As an alternative to SSI.php, try RSS.  Read this topic for details.

Lainaus käyttäjältä: OldiesmannRecent Posts (displays the most recent posts that you can see)
"Sub-action": recent
Default: Shows 5 most recent posts
Available options:
limit=x - display the "x" most recent posts (if number is less than 5, it will display 5. If number is larger than 255, it will display 255).
board=y - display only the recent posts from board "y"
Example: http://www.simplemachines.org/community/index.php?action=.xml;sa=recent;board=72;limit=10

Advertisement: