PHP Classes

worK/

Recommend this page to a friend!

      News Slider  >  All threads  >  worK/  >  (Un) Subscribe thread alerts  
Subject:worK/
Summary:need help
Messages:10
Author:Usayd
Date:2005-07-02 10:28:18
Update:2006-04-16 08:28:32
 

  1. worK/   Reply   Report abuse  
Picture of Usayd Usayd - 2005-07-02 10:28:18
i cant get this class to work please check it out here and tell me whats wrong:

yse-uk.com/newslider/demo_doc.php

  2. Re: worK/   Reply   Report abuse  
Picture of Karlan Talkington Karlan Talkington - 2005-08-04 17:26:58 - In reply to message 1 from Usayd
I've not been able to get this work either...
I think it may have something to do with teh javascript as I get these errors on the page:

Error: 'slideshow' is undefined
Error: 'mwatch' is undefined

I created the folders requested and dropped the files in to see if I could get this to work so I could implement it. It obviously works (www.tiptraders.com) but not without some massaging.

Can the author lend a hand please??

  3. Re: worK/   Reply   Report abuse  
Picture of Karlan Talkington Karlan Talkington - 2005-08-04 18:39:54 - In reply to message 1 from Usayd
Talked to author of script.. he said its likely paths.

Sure enough I copied the javascript functions into the news_class1.php
so it would feed directly to the demo page instead of calling the slideshow.js file and it semi worked (meaning the images didn't show but the links worked)


  4. Re: worK/   Reply   Report abuse  
Picture of Usayd Usayd - 2005-08-04 19:23:49 - In reply to message 3 from Karlan Talkington
please tell me if you get it properly working (its kinda useless otherwise)!

  5. Re: worK/   Reply   Report abuse  
Picture of Martin Samler Martin Samler - 2006-03-17 19:15:06 - In reply to message 4 from Usayd
Sorry, I never saw this thread (thought I would be alerted to posts by e-mail...).

You must put files exactly as stated in folders below the file calling the class:

truetype fonts in folder /fonts
classes in folder /classes
slideshow.js in folder /scripts
news images in folder /news

Also, be sure to set file attributes in /news-folder to 777.

I just downloaded and tested on a brand-new server installation - works like a charm!

  6. Re: worK/   Reply   Report abuse  
Picture of Usayd Usayd - 2006-03-17 19:44:21 - In reply to message 5 from Martin Samler
I had it set up like that in the first place, tried it on my other server too:

usayd.com/newslider/demo_doc.php

same problem, no images are shown. Are there any server requirements that you haven't specified? I really can't see where i've gone wrong.

  7. Re: worK/   Reply   Report abuse  
Picture of Martin Samler Martin Samler - 2006-04-15 19:44:17 - In reply to message 6 from Usayd
Only difference seems to be directory level.

Could you move all files and directories up one level to the root, and let me know if that solves the problem.

There are no specific requierements to the environment other than fopen() must be enabled.

  8. Re: worK/   Reply   Report abuse  
Picture of Martin Samler Martin Samler - 2006-04-16 08:17:37 - In reply to message 7 from Martin Samler
No, that is not it - I just tested it in

tipstraders.com/beta/demo_doc.php

But you MUST give group execute access to the 'news' folder!

  9. Re: worK/   Reply   Report abuse  
Picture of Martin Samler Martin Samler - 2006-04-16 08:22:45 - In reply to message 7 from Martin Samler
No, thats not it. Just tested it in

tipstraders.com/beta/demo_doc.php

But you must allow group execute access to the 'news' folder!

When I run http://usayd.com/newslider/news/mwatch0.php I get a
"No such file or directory in /home/usayd/public_html/newslider/news/mwatch0.php on line 5".
Please post the text contents of this file.


  10. Re: worK/   Reply   Report abuse  
Picture of Martin Samler Martin Samler - 2006-04-16 08:28:32 - In reply to message 9 from Martin Samler
It should read something like

<?php
if ($_REQUEST['n_referer']=='class1'){
header("Location: ".$_COOKIE['mwatch0']);
} else {
include("x:/classes/news_png.class1.php");
$_REQUEST['n_referer']='mwatch';
NewsLine ('http://www.marketwatch.com/rss/topstories/','mwatch',0,660,
'times.ttf',9,'000000','0000CC','804040','FFFFFF',
'FFFFE5',300,5);
include("x:/classes/news_png.class2.php");
}
?>