Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Displaying News on different domain problem

 
Reply to topic    Forum Index » Help View previous topic
View next topic
Displaying News on different domain problem
Author Message
fg



Joined: 25 Dec 2005
Posts: 14

Post Displaying News on different domain problem Reply with quote
Hello



I am trying to display news on a different domain then on which the script is installed



i used



<?PHP

$category ="1,2,3,4";

$number = "7";

$template = "Headlines";

include("http://domain.com/cutnews/show_news.php");

?>



now it is displaying, but $category, $number does'nt seem to have effect on it. It just shows all the news from every category, and does'nt limit with only 7 news items



any chance you can help ? or better way to do this ?



thanks
Sun Feb 26, 2006 3:04 am View user's profile Send private message
Guest








Please login to hide the ads.

FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
Use remote_headlines.php.



I never used it so you have to find out yourself how it is working. Wink



But I guess putting something like this on the page should work:

Code:
<script language="javascript" src="http://mysite.com/path/to/cutenews/remote_headlines.php?number=NUMBER_OF_NEWS&category=CAT_ID"></script>

Sun Feb 26, 2006 8:26 pm View user's profile Send private message
fg



Joined: 25 Dec 2005
Posts: 14

Post Reply with quote
ok thanks man, i'll try this out Smile
Sun Feb 26, 2006 9:50 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1943
Location: US

Post Reply with quote
oh that's greattttttttt. that looks almost identical to the remote_headlines.php from cutenews.. i hope it works just as well. do you think there would be a way to include short and full story's too? headlines is cool though haha.. i didn't even notice remote_headlines.php was already in the zip! i was looking for that.

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Wed May 17, 2006 2:30 pm View user's profile Send private message Visit poster's website AIM Address
scottdallas



Joined: 04 May 2006
Posts: 1943
Location: US

Post Reply with quote
actually.. i used the old cutenews 1.4 remote_headlines.zip hack and it still worked amazingly with cutenews.ru so i just left it that way. is there a way i could include {short-story} or {full-story} remotely? that would kick butt

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Fri May 26, 2006 1:10 am View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:    
Reply to topic    Forum Index » Help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.