 |
 |
 |
 |
 |
| Author |
Message |
fg
Joined: 25 Dec 2005 Posts: 14
|
|
Displaying News on different domain problem |
|
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 |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
Use remote_headlines.php.
I never used it so you have to find out yourself how it is working.
But I guess putting something like this on the page should work:
 |  | <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 |
|
 |
fg
Joined: 25 Dec 2005 Posts: 14
|
|
|
|
ok thanks man, i'll try this out 
|
|
| Sun Feb 26, 2006 9:50 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
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
last update: 07-22-08: 8:30 pm |
|
| Wed May 17, 2006 2:30 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
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
last update: 07-22-08: 8:30 pm |
|
| Fri May 26, 2006 1:10 am |
|
 |
|
|
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
|
|
 |
 |
 |
|