Modules: News 1.4, updated version

Posted by: hervetOn 2005/8/17 18:33:35 11699 reads

Changelog
> I have added the code recommanded in Xoops 2.0.13.1 for security reasons
> Some templates were corrected to be a little more (but not completly) w3c compliants
> It was possible to download files joined to an article for wich you did not have the necessary permissions
> It was possible to edit articles from other authors
> The news counter is not updated anymore when its author is reading the article or when you are in the Admin's group or a module's admin
> You could have a broken image when the "recent news block" was used (thanks to jegelstaff)
> A typo was corrected in the block used to moderate news ("letf" instead of "left")
> News that was not approved were not deleted when you was deleting its topic
> I have added rel="nofollow" to the link to email the article to a friend
> There was a bug in the "prune manager" when you was selecting to use only expired articles (thanks to alain01)
> The number of meta keywords automatically created by the News module is now limited to 20 keywords (thanks to tl for the remark)
If you want to change this limit, edit the file /xoops/modules/news/include/functions.php and find this line :
$tmp=array_slice($tmp,0,20); // If you want to change the limit of keywords, change this number from 20 to what you want
> You can import your articles from AMS 2.41.
To do it, launchhttp://www.example.com/modules/news/admin/amsimport.php
You must be a module's administrator to launch this script.
The script imports topics, articles, files, links, ratings, comments and notifications from Ams WITHOUT removing *anything* from it.
The only thing you have to do is to recreate the permissions.
WARNING, Once you have imported your articles from Ams, if you delete a news in the News module and if this article have some attached
files, they will be also deleted in Ams !
You can launch this script as many times as you want but this will create as many news and topics as you launch the script
The imported article is always the last version in Ams


Bye,
Hervé