I have tested it on RC4 the release from 1th may....and it work on it...
I will update the mod tonight (I hope) - with a very cool feature made by Me, pSouper and another friend of mine... That let you browse in news in the frontend - very simpek but hard to get to work...
Whoohoo! Let us know when its finished. I was going to starting using that mod more frequently. But I'll wait to touch it until the newer release comes out.
I've got a suggestion or two however if you are interested. Depending upon how you eventually wish this mod to be used.
#1 How about an expire function? That is, let the news item run for x many days, then get automatically deleted.
#2 Instead of forcing the use of the 3 seperate replacement tags, how about 1 replacement tag formatted similar to the {RELATED} tag where you can either specify the category of the news, how many items or how many items from the past x many days. Calling it by title is a bit misleading, as if this were latest news, wouldn't you want to have the item from within the article return the latest news in a category, not the latest news with a given title?
Just some ideas. If you need some help, let me know. I was about to add a replacement tag to the news.func.inc.php and news.functions.inc.php, but am going to hold off until you guys are finished with the new version.
I think I have mod news installed correctly. I added a table "phpwcms_news" and made the edits to phpwcms.php, content.func.inc.php and news_mod.php. But have a problem connection to MySQL!
I added a article and when I try and load that page I get this error
Warning: mysql_query(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/content/k/e/l/kelleylaw/html/include/inc_module/mod_news/inc_lib/news.functions.inc.php on line 11
Warning: mysql_query(): A link to the server could not be established in /home/content/k/e/l/kelleylaw/html/include/inc_module/mod_news/inc_lib/Warning: mysql_query(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/content/k/e/l/kelleylaw/html/include/inc_module/mod_news/inc_lib/news.functions.inc.php on line 11
Warning: mysql_query(): A link to the server could not be established in /home/content/k/e/l/kelleylaw/html/include/inc_module/mod_news/inc_lib/news.functions.inc.php on line 11
Error in query:SELECT * FROM phpwcms_news ORDER BY news_id on line 11
Error in query:SELECT * FROM phpwcms_news ORDER BY news_id
I change news.functions.inc.php to what Keules and Jerome stated and still get the same error.