Home > Desain Web, Proyek Pengembangan > Enabling Auto Feeding at Planet’s Article Block

Enabling Auto Feeding at Planet’s Article Block

Xoops Planet is one of must-have modules for our Xoops website, at least for my site :D. It feeds articles from other sites and store them to local database.

This module is old enough (released at 2006) and seems unmaintained. But, it just works on mine (Xoops-2.4.4).

There is an unresolved issue when we place its article block in site index page or other module index page. Article list on the block doesn’t update itself when index page’s visited. I guess It’s module updating problem. In my experience, feeding must be triggered by entering Planet module index. Visitors must click an feeding article (that may not the latest article from feeder) to make Planet feeds latest articles.

Although it has a cron updating mechanism, it doesn’t work as well. And I don’t know how to enabling that feature.
One trick to resolve auto updating is calling update function on block template (article block). So, every time users visit our site that contain Planet block, It automatically feeds articles, stores them and updates article list.

Below is a code to be inserted to /templates/blocks/*_block_*.html:

Xoops Planet is one of must-have modules for our Xoops website, at least for my site :D. It feeds articles from other sites and store them to local database.

This module is old enough (released at 2006) and seems unmaintained. But, it just works on mine (Xoops-2.4.4).

There is an unresolved issue when we place its article block in our site (i.e index page). Article list on the block doesn’t update itself when site’s visited. I guess It’s module updating problem. In my experience, feeding must be triggered by entering module index. We must click an feeding article (may be not most recent article from feeder) to make Planet feeds and updates its local storage.

Although it has a cron updating mechanism, it doesn’t work as well. And I don’t know how to enabling that feature.
One trick to resolve auto updating is calling update function on block template (article block). So, every time users visit our site that contain Planet block, It automatically feeds articles, stores them and updates articles list.

Below is a code to be inserted to /templates/blocks/*_block_*.html. You can place it on top of your blocks code.


<img src="<{$xoops_url}>/modules/<{$block.dirname}>/update.php" alt="" width="1px" height="1px" />

 

 

  1. No comments yet.
  1. No trackbacks yet.
*

This blog is kept spam free by WP-SpamFree.

Skip to toolbar