mariovaldez.net

MV.net forums
It is currently 14 Jul 2016, 00:43

All times are UTC - 7 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Great addon
PostPosted: 07 Apr 2003, 17:19 

Joined: 07 Apr 2003, 17:15
Posts: 2
Just installed you cm addon for phprojekt 4.0. Thanks for such a great addon, and effortless install.

I have just one question, so far. How do I change the news feeds that appear on the start page. I seem to remember reading somewhere about editing display.php, but that looks like just adding potential news feeds rather than dealing with the layout on the start page.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: 07 Apr 2003, 17:30 

Joined: 07 Apr 2003, 17:15
Posts: 2
Well on closer inspection I noticed the commenting in the displa.php and figured out how to manage the appearance of news feeds on the start page.

One more question, the list of feeds appears twice. If I want a news feed to appear do I have to uncomment both.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: 14 Apr 2003, 07:01 
User avatar

Joined: 06 Mar 2003, 03:21
Posts: 447
Location: Monterrey, NL, Mexico
maui1:

> the list of feeds appears twice.
> If I want a news feed to appear
> do I have to uncomment both

Yes. In display.php, each newsfeed requires a call to the function fcm_storerdf and fcm_display_rdfbox (with a call to fcm_readrdf). The function fcm_storerdf do the actual fetching. Its parameters are: URL, Uniquename and Time before refresh. The Uniquename is just a name you want to use for that newsfeed.

The parameters of fcm_display_rdfbox are: title and the output of fcm_readrdf. The parameters of fcm_readrdf are: Uniquename and the max number of entries to show.

If you are prefetching the newsfeeds with cron (in unix) or the task scheduler (in windows), then you need to edit also the dlsynd.php script file. In this dlsynd.php file you really need only the calls to fcm_storerdf.

In the next version of the CMS module, you will be able to define the newsfeeds with a form, so you won't need to edit the script files.

Good luck,

Mario A. Valdez-Ramírez.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 7 hours


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group