Module: Recent Messages

Posted by Maurice Makaay 
Re: Module: Recent Messages
July 01, 2008 02:18AM
That time is formatted using the standard formatting in the language file. Take a look at include/lang/<yourlanguage>.php for the used time formats (long_date_time and short_date_time). This is what I use in my Dutch language file for 24 hour (a.k.a. military time) support:

$PHORUM['long_date_time'] = '%d %B %Y %H:%M';
$PHORUM['short_date_time'] = '%d/%m/%Y %H:%M';


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Recent Messages
July 01, 2008 11:02AM
It didn't work with $PHORUM['short_date_time'] = '%d/%m/%Y %H:%M';

I put $PHORUM['short_time'] = '%d/%m/%Y %H:%M';

And it is OK but why ?
Re: Module: Recent Messages
July 01, 2008 01:20PM
Oh, that is because short_time is not part of the standard definitions in the language file. I though that you were looking at one of the default date formats here. My bad. That one is only defined for the module. Check the language file in mods/recent_messages/lang/yourlanguage.php


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Recent Messages
July 02, 2008 03:37AM
hi maurice,

is there a way to display the "mark all forums read" link from your markllforumsread-module in the recent posts page? as far as i understood there must be $PHORUM["DATA"]["MARKALLFORUMSREAD_LINK"] set, but it doesn't exist in addon.php.

thanx!
Re: Module: Recent Messages
July 02, 2008 03:46AM
That module sets up data for the index page only. There's no easy way of getting it to work for other pages too.

Could be a future extension of the module. In the first versions of the module, the forums listing that was provided to the index hook function was used to mark all forums read. A later version switched to selecting all forums from the database and marking those read, so also hidden forums and deeper level forums would be marked read. Based on that new logic, there's no reason why this module couldn't run on other pages than the index. But it's substantial change nonetheless, not a quicky.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Recent Messages
July 07, 2008 03:18AM
I use the cookies
When an user goes to my Phorum page, it is "Log In" but if he goes to my page "recent messages" it is "Log Out",
Re: Module: Recent Messages
July 07, 2008 03:37AM
Sorry, you will have to rephrase that.
I am afraid that I do not understand your question.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Recent Messages
September 24, 2008 09:03AM
Here's come the french version of this module.
You can verify the translation on my forums :
[www.notre-planete.info]

mmakaay: removed the translation file.
It is now part of the module package.


--------------------------------
Christophe, [www.notre-planete.info]



Edited 1 time(s). Last edit at 07/22/2009 10:47AM by Maurice Makaay.
Re: Module: Recent Messages
October 01, 2008 03:18PM
Can I use this addon to add a small column to my sites homepage with recent changes to the forum? The homepage is not part of the forum.

Here is an example
Re: Module: Recent Messages
October 01, 2008 05:31PM
No, this module has a totally different goal. It provides an interface for a user to find recent messages / threads, grouped in various ways. It is not for adding such a sidebar thing. That would require a different module really. Or you could possibly build some RSS reading PHP script in your page template and point that one at the Phorum RSS feed.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.

Click here to login