Welcome, Guest. Please Login or Register.
November 15, 2024, 11:23:38 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  newbie and Rss « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: newbie and Rss  (Read 611 times)
plowking
Noobie
*
Posts: 27


I'm real purdy

newbie and Rss
« on: April 07, 2003, 05:37:28 AM »
Reply with quote

So I'd like to make a place on my front page that automagically updates with the last 3 topics posted. I hear I can do that with RSS. But I'm not sure how. please point me in the right direction. here's what I think I know (but you know what they say about a little knowedge....)

Yabbse can generate the needed data.
the needed data is an xml file.
rss is a kind of xml file.

what I don't know is
How that file gets read into my index file on the front page.
If that file will automatically show if say, the same thread is updated 3 times, the same thread will appear 3 times on the list.
how to turn these features on in SE.
and can I cheat? can I create an xml file of topics I want to pimp? how is that done?

don't assume I know anything! thanks so much for your help!
Logged
Nonya
Beta Tester
Sr. Member
****
Posts: 375


YaBBse Developer Wannabe!

ICQ - 172862020nonya69rs@hotmail.com WWW
Re:newbie and Rss
« Reply #1 on: April 07, 2003, 05:42:00 AM »
Reply with quote

Man i think you might talking about SSI.PHP , its doing what you need about the latest post whos online etc etc etc.

for more info and details please check the PHP Help Board.
Logged

plowking
Noobie
*
Posts: 27


I'm real purdy

Re:newbie and Rss
« Reply #2 on: April 07, 2003, 06:14:26 AM »
Reply with quote

is the SSI file included with YABBSE or is it a seperate Download?
do you mean the php help board here or on the php.net website?
Logged
Nonya
Beta Tester
Sr. Member
****
Posts: 375


YaBBse Developer Wannabe!

ICQ - 172862020nonya69rs@hotmail.com WWW
Re:newbie and Rss
« Reply #3 on: April 07, 2003, 06:19:53 AM »
Reply with quote

Quoteis the SSI file included with YABBSE or is it a seperate Download?

SSI.PHP file already included in the YaBBse package if you already uploaded to your server you'll find it in the root directory ( YaBBse folder ).

Quotedo you mean the php help board here or on the php.net website?

Yes, I mean PHP help board in YaBBse community
« Last Edit: April 07, 2003, 06:20:50 AM by Nonya » Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:newbie and Rss
« Reply #4 on: April 07, 2003, 06:30:20 AM »
Reply with quote

*thinks about the RSS and other XML stuff he added to his secret project.....*

SSI.php should do the job for you.... just read the file and ssi_examples.php.

-[Unknown]
Logged
plowking
Noobie
*
Posts: 27


I'm real purdy

Re:newbie and Rss
« Reply #5 on: April 07, 2003, 06:48:48 AM »
Reply with quote

I took a look...I don't see anything about getting the last posts out of that file, although I really see value in the function there.

To be clear I just want a place that says:

In our forums we have some pretty active topics! recent posts include:

Thread one

Thread two

thread three

I'd love if I could explode the stats function to just give me the number of posts too, but that's minor.

So was I wrong, is there no RSS or XML in YaBB SE yet? And what of Unknown's secret project? and will our heros make it out alive?
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:newbie and Rss
« Reply #6 on: April 07, 2003, 06:50:48 AM »
Reply with quote

Isn't this what you want?

http://www.yabbse.org/community/SSI.php?function=recentTopics

-[Unknown]
Logged
plowking
Noobie
*
Posts: 27


I'm real purdy

Re:newbie and Rss
« Reply #7 on: April 07, 2003, 06:59:51 AM »
Reply with quote

aha! I found it. It was specified in the SSI file, but not shown off in the examples file.

Thanks for your help, as usual, everyone.

Any idea how I could trunicate the subject line so it's not so long? (I'm going to remove the "when" and "by who" if I can figue it out myself, but to shorten the string to the first, say, 35 charicters may take some heavy lifting)
Logged
plowking
Noobie
*
Posts: 27


I'm real purdy

Re:newbie and Rss
« Reply #8 on: April 07, 2003, 07:29:12 AM »
Reply with quote

and now, a new problem. I figured out how to edit out the extranious stuff, and created it as a new function inside SSI.php

So when I include SSI.php in my index file, it comes up with nothing but errors.  My index file is up one directory from the community section, but I did link to the SSI file properly. (it claims it's calling undefined functions every function it calls, so I was commentintg out functions for a few lines, and it would advance to the next one, so I know it's reading the right file.)

Is it becasue the directory is structured as it is? is there more I can do?
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:newbie and Rss
« Reply #9 on: April 07, 2003, 11:52:39 AM »
Reply with quote

try the fresh version, if it runs, it means u made some errors when editing it
if it doesnt, then it's your settings problem
check ssi_examples.php for the example
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
plowking
Noobie
*
Posts: 27


I'm real purdy

Re:newbie and Rss
« Reply #10 on: April 13, 2003, 06:25:30 AM »
Reply with quote

Any ideas how to resolve this:
Fatal error :  Call to undefined function:  clicklog() in /www/p/pcitizen/htdocs/community/SSI.php on line 57


I called SSI as instructed! I swear!

From the index file:
<?php require("./community/SSI.php"); ?>


....Check out these current topics and join the discussion:
<?php recentaj () ?>


(recentaj is the modified recent funtion to take out the HTML formatting and board name...recent() didn't work either.)
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:newbie and Rss
« Reply #11 on: April 13, 2003, 06:27:20 AM »
Reply with quote

Did you set the path in SSI.php?

-[Unknown]
Logged
plowking
Noobie
*
Posts: 27


I'm real purdy

Re:newbie and Rss
« Reply #12 on: April 13, 2003, 07:08:14 AM »
Reply with quote

well, when I open the ssi_examples page, it works fine. but it's down one directory...I'm trying to open these functions on the index page.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:newbie and Rss
« Reply #13 on: April 13, 2003, 07:10:07 AM »
Reply with quote

Quote from: plowking on April 13, 2003, 07:08:14 AM
well, when I open the ssi_examples page, it works fine. but it's down one directory...I'm trying to open these functions on the index page.

You'll have to set the $full_yabbse_path variable in SSI.php.

-[Unknown]
Logged
plowking
Noobie
*
Posts: 27


I'm real purdy

Re:newbie and Rss
« Reply #14 on: April 13, 2003, 07:23:17 AM »
Reply with quote

But I kept SSI.php in the same place...I require it from the directory above, but point to it one level below, in it's right place. is that not allowed?
Logged
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  newbie and Rss « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.075 seconds with 20 queries.