PDA

View Full Version : Pausing RSS Scroller



GRODT
09-20-2007, 01:13 PM
1) Script Title: pausing RSS scroller

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/rsspausescroller/

3) Describe problem: "I gave up trying to fetch feed" http://servicesareus.com/default.htm

I've searched previous posts; but the resolutions aren't working for me.

lastrss.php, rsspausescroller.js, scrollbridge.php and the cache directory are here in the same subdirectory (rss/lastrss):

http://servicesareus.com/rss/lastrss/rsspausescroller.js
http://servicesareus.com/rss/lastrss/scrollerbridge.php
http://servicesareus.com/rss/lastrss/lastrss.php

I'm using plesk 8.1.1 for hosting with PHP V5.2.0 enabled

<Scrollbridge.php>
// Define your list of RSS URLs- "RSS_id"=> "URL to RSS feed"
$rsslist=array(
"ServicesAreUs.com" => "http://www.servicesareus.com/rss/hbb-rss.xml",
// include lastRSS
include "lastrss.php";

rsspausescroller.js
//URL to "scrollerbridge.php" on your server:
var bridgepath="scrollerbridge.php"

demo.htm
<script type="text/javascript" src="rss/lastrss/rsspausescroller.js">
since my default.htm page is at the root (servicesareus.com/default.htm)

there are no files in my cache directory. I did see something to the effect of CHMOD to 777 in another post but I wasn't sure what that meant.

I'm also unable to view my cache directory via a browser (403 forbidden) so I know I need to set a permission on the server but I'm not sure which.

I feel like I only have a small change to make here (I hope). I'm only viewing via I.E. 7


Thank you,

Will Moore

ddadmin
09-20-2007, 06:55 PM
A couple of problems I see on your page:

1) Make sure the references to the external files for this script are all correct. For example:

http://servicesareus.com/rss/lastrss/rsspausescroller.js (I can't check, since it's password protected)

I say this because it appears you've changed the default location of some files for this script. rsspausescroller.js by default exists above the /lastrss directory for example.

2) The cache directory should be chmodded 777 so it's read/writable. You can do this via ftp.

GRODT
09-21-2007, 03:42 PM
I added R, W to the cache directory permissions.

Is changing the cache direcory permissions to R,W the same as"chmodded 777"?

I removed the authentication (not sure how that happen, oh yeah, I was messing with the security settings and forgot to undo my changes)

By now anyone can tell I'm a novas (not for long).


I moved rsspausescroller.js to the "rss" directory. and modified:
var bridgepath="lastrss/scrollerbridge.php"

I get a "file download-security warning(do you want to open or save this file)" window it wants me to download the script instead of moving to scrollerbridge.php for instructions on what to return. (I guess somewhere I'm telling it to do that; I just can't figure out where).
http://servicesareus.com/rss/lastrss...usescroller.js

I'm permission illiterate... In the cache folder I set up ftp_subaccounts,IUSR_servicesareus, and servicesareus with R,W.


I'm still getting the "I give up..." message.


Thanks,
Will Moore

GRODT
09-21-2007, 04:44 PM
Ahhh man, I had it working for a second. I moved rsspausescroller.js to the root of Servicesareus.com (http://servicesareus.com/rsspausscroller.js) and it worked.

....then I started to screw around with the css settings and now it cannot fetch the feed again...:-(

and I now get an "invalid argument" {error on page, line 71, bla bla bla}... Argggg!


I see files RssCache (Unmatched) files but I get a 404 when I try to view in the browser.???

GRODT
09-21-2007, 05:30 PM
This is crazy, I refreshed my browser and the feed started scrolling; I refreshed it a second time and it did not again. I hadn't made any server changes, only refresh.


the rsscache file on the server is a binary file that I cannot open or view.

Works fine in Firefox.

Conflict with other script on the page maybe, if so how do I tell? Process of elimiation (I hope not).



Thanks again,
Will Moore

ddadmin
09-22-2007, 06:05 AM
I just tested your page in Firefox as well, and it seems to be working properly. There are no other scripts on your page that could conflict with this one as far as I can see.


Is changing the cache direcory permissions to R,W the same as"chmodded 777"?

Actually, no. 777 is R,W,X.

One script you may want to consider using in place of this one is gAjax RSS Scroller (http://www.dynamicdrive.com/dynamicindex18/gajaxpausescroller.htm). The RSS feeds are hosted for you, so you don't have to worry about any of this.

GRODT
09-22-2007, 03:00 PM
Thanks,


Actually, no. 777 is R,W,X.

A script you may want to consider using in place of this one is gAjax RSS Scroller (http://www.dynamicdrive.com/dynamicindex18/gajaxpausescroller.htm). The RSS feeds are hosted for you, so you don't have to worry about any of this.


I've worked so hard on this one:o . I will try the gAjax script on my Travel Website:rolleyes: .


Thanks again,
Will Moore