Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8001 Posts in 1848 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: News feeds (rss)  (Read 374 times)
0 Members and 1 Guest are viewing this topic.
Alvy
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: August 26, 2003, 11:28:00 PM »

What would be the steps to set up news feeds to other sites?
So the another site can dynamically display the next 5 days events in their site?

I was looking at the CSV plugin.. but it didn't seem to do that natively. so I figure there must be a few step involved.
And I guess using SSI included aren't the answer if I don't have access to the other's servers???

Any ideas? thanks

Alvy

[This message has been edited by Alvy (edited August 26, 2003).]

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 212

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: August 27, 2003, 01:28:00 PM »

** So the another site can dynamically display the next 5 days events in their site? **

The other site can display the SSI (or any other) template in an iframe on their site or if they have access to a programming language (Perl, PHP, etc.), it is a fairly easy matter of retrieving pages from a distant site and including that content into their own.

Dan O.

------------------

Logged
Alvy
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: August 28, 2003, 03:50:00 PM »

I thought, because you cannot have url in the include, ie.
<!--#exec cgi="http://www.theorangepeel.net/cgi-bin/opcal/calendar.pl?template=ssi.html"-->
you could not call the script from outside your website. Right?
So I know the other website that would be calling your script could set up some kind of program to interprate or parse the data, but isn't there an easier way for them to include my data?
I want to allow another website to display upcoming events, but they won't want to write a program to display it.
I am having a friend of mine with way more script experience than I help me write some code so that I can just offer a javascript to other site that will grab ny data. I will let you'all know how it goes.

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 212

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: August 28, 2003, 08:11:00 PM »

** you could not call the script from outside your website. Right? **

Right, not directly via an SSI tag like you posted.

But that is no reason some kind of script (Perl, php, etc.) shouldn't be able to capture that output and then include it into a local web page (via SSI, PHP, etc.).

** isn't there an easier way for them to include my data? **

Yes, using an HTML iframe tag like I replied originally. The iframe is recognized by IE 3.0+, Netscape 6.0+ and the current versions of Opera browser.

** but they won't want to write a program to display it. I am having a friend of mine help me write some code so that I can just offer a javascript to other site that will grab ny data.  **

If the other sites don't want to use the (simple) iframe tag and they have SSI and Perl or PHP available to them, why don't you ask your friend with way more script experience to write a Perl or PHP script that the other sites can use? Using PHP it should only be 3 lines of PHP code!

Dan O.


[This message has been edited by DanO (edited August 29, 2003).]

Logged
Alvy
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #4 on: August 28, 2003, 09:19:00 PM »

I guess it is due to my lack  of knowledge, I am getting things all wonky. I guess it would be easiest to  use the iframe tags,, just thought it would alienate the netscape crowd, but I guess that is only the 3.x and 4.x versions.

I will give it a shot..
thanks for your help.

------------------

Logged
Dave Anderson
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #5 on: September 23, 2003, 09:09:00 PM »

I looked into being able to use an include file to display the next 5 events on my index.php page. At the time, I could not get it to work and no one seemed to be able to help.

Is there some type of a mod that makes this possible now?

Still a newbie at it.

Dave

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 212

Please don't PM me. Post in the open forum.


WWW
« Reply #6 on: September 24, 2003, 01:18:00 PM »

** Is there some type of a mod that makes this possible now? **

There is no mod required. You just retrieve the CalendarScript output using PHP the way you would retrieve any other file and include that output into your PHP script. You'd just need to specify the appropriate query string for the calendar URL for the display you want to include.

Look into PHP's http://www.php.net/file  function as it is the easiest to use in my experience. You can see an example of such an SSI query string in the previous forum message "SSI head ache!".

Dan O.


[This message has been edited by DanO (edited September 24, 2003).]

Logged
C0113c70r
Guest
« Reply #7 on: October 20, 2003, 11:38:00 PM »

Just a suggestion... Slip over to cgi-resources.com and do a search for terms "News Ripper". You'll discover a couple of neat and easily configurable rippers that you could use to insert the content without the use of SSIs.

-- C0113c70r

Logged
Pages: [1]   Go Up
Print
Jump to: