Module: Recent Messages
Posted by Maurice Makaay
All files from this thread
File Name | File Size | Posted by | Date | ||
---|---|---|---|---|---|
recent_messages-2.1.2.zip | 36.7 KB | open | download | Maurice Makaay | 08/31/2016 | Read message |
Module: Recent Messages November 22, 2007 08:25AM |
Admin Registered: 20 years ago Posts: 8,532 |
This module implements an addon page, which displays the most recent
messages / topics to the user. The user can:
* choose between showing new messages, new topics or updated topcis;
* choose how many messages / topics should be shown per page;
* show older messages using a paging mechanism;
* select a specific forum to show new messages for;
* show messages grouped by date, forums or folders.
For running this mod, you need Phorum 5.2.8 or later. It will not
work for earlier versions of Phorum.
messages / topics to the user. The user can:
* choose between showing new messages, new topics or updated topcis;
* choose how many messages / topics should be shown per page;
* show older messages using a paging mechanism;
* select a specific forum to show new messages for;
* show messages grouped by date, forums or folders.
For running this mod, you need Phorum 5.2.8 or later. It will not
work for earlier versions of Phorum.
Changelog: ---------- 2016-08-31 v2.1.2 by Oliver Riesen-Mallmann <oliver@riesen.org> - Made XHTML 1.0 Transitional compliant. 2011-04-20 v2.1.1 - Fixed newflags for the "Updated topics" view (they were never shown). Thanks to phorum.org user "noe" for notifying about the problem. 2011-04-06 v2.1.0 - Added support for some ajax features. In 5.2, this can be used to do some ajax loading of messages within the recent messages page or within other parts of the Phorum site.. - In 5.3, the new features will allow for loading recent messages lists from other websites, making it really easy to put a list of recent messages / threads on any website. - Switched to using the newflags API for adding newflags to messages. 2011-01-17 v2.0.18 - Improved the support for the Readable Dates module. Thanks to phorum.org user "noe" for pointing out date grouping issues that occurred for messages that were posted after the time limit as configured in the Readable Dates module. - Added new German language files by Oliver Riesen. - Added a Russian translation by phorum.org user "sailord". 2011-01-13 v2.0.17 - Made "Group by date" the default for users that enter the recent messages page for the first time. - Added support for the User Avatar module, by letting the module setup the template variable {MESSAGES->MOD_USER_AVATAR}, which can be used in the module templates. Notice: you need User Avatar 3.1.0 for this, which will not be available for Phorum 5.2 - Added protection against setting the show_amount to negative values, which would result in database error messages. 2010-04-22 v2.0.16 - Modified the breadcrumbs path for this module a bit, to make it more clear. - Updated the Emerald template to do more of the styling using CSS and added a few minor changes to improve the layout. - Implemented a new feature to make it possible to let the "Group by date" feature use readable dates. 2009-07-22 v2.0.15 - Added Czech translation by Phorum.org user timqui. - Added French translation by notre-planete.info. - Added German translation files by Oliver Riesen. - Added Spanish translation by Phorum.org user Diego. - Added a module template that is compatible with Phorum's "classic" template. Thanks to Phorum.org user treble. 2008-11-08 v2.0.14 - Added support for adding an extra item to the popupmenu of the Jumpmenu module. This feature can be enabled and disabled through the module's settings screen. 2008-02-03 v2.0.13 - Added support for using the Readable Dates module as the date formatter. A settings screen was added for the module, which can be used to enable or disable the Readable Dates support. 2008-01-25 v2.0.12 - Fixed a problem where "Group by forum" would only show the forum name that belonged to the very first message in the overview. Thanks to phorum.org user "mshell" for reporting the problem. - Fixed a small code typo (with no functional consequences), reported by Steve Healy. This typo could trigger some PHP warnings, depending on the PHP configuration. - The HTML title is now set to "Recent Messages" as well when the user is browsing the recent messages. Thanks to Phorum user "hcgtv" for the suggestion. 2008-01-23 v2.0.11 - Included language strings for "OlderMessages" and "NewerMessages" in the package, because they are no longer available as standard language strings in Phorum 5.2. For forums that use a clean 5.2 only language file, this resulted in the "Older messages" and "Newer messages" links being invisible in the interface. Thanks to CBiLL for noticing. 2008-01-08 v2.0.10 - Some small updates to the emerald module template to make it match the Phorum list page template a bit more (using the same class and heading tag for the subjects, so only new messages will show up in bold). 2008-01-03 v2.0.9 - The icons in front of the topics are supposed to link to some useful location (like the message, the last message in a thread or to the first new message in a thread). This did not work when grouping messages by their forum or folder. This release fixes this problem. Thanks to Thomas for noticing. - Added updated German translation files by Berti. 2008-01-02 v2.0.8 - A problem sneaked into the pull down menu. If you are using multiple folders, then the pull down menu items might be incorrectly ordered. This release fixes that problem. - A standard Phorum function is now used for building the pull down forum menu. If you see empty folders appear in the list, then you will need to upgrade to Phorum 5.2.5 or up. This problem has been fixed in the core code. 2008-01-01 v2.0.7 - Fixed a compatibility problem in case the Phorum pages are served as content type application/xhtml_xml
Maurice Makaay Phorum Development Team my blog linkedin profile secret sauce Edited 26 time(s). Last edit at 08/31/2016 09:40AM by Oliver Riesen-Mallmann.
Re: Module: Recent Messages January 03, 2008 05:01PM |
Registered: 16 years ago Posts: 122 |
Wow,
Seems like when I need something, you're posting a new version of it.
Added it to 5.2.5, Emerald template, index_new.tpl:
Thanks.
--
Bert Garcia - When all you have is a keyboard
Seems like when I need something, you're posting a new version of it.
Added it to 5.2.5, Emerald template, index_new.tpl:
<!-- BEGIN TEMPLATE index_new.tpl --> <div class="nav"> <a class="icon icon-list" href="{URL->RECENT_MESSAGES}"> {LANG->mod_recent_messages->RecentMessages} </a> </div>
Thanks.
--
Bert Garcia - When all you have is a keyboard
Re: Module: Recent Messages January 04, 2008 07:53PM |
Registered: 19 years ago Posts: 46 |
Hello Maurice,
sorry i have found another mistake :-(
Look at these attached pictures:
removed by mmakaay
I have spit a thread and mergend this splitted threads again.
The date of these postings is correctly, but not the sorting in recent messages.
I corrected a few in the german languagefile and make german_du.php also.
Thanks
Berti
mmakaay: removed two images from this message, to clean up the file listing at the top of the page a bit.
Edit mmakaay: The new translation files are now included in the package, so I deleted them from this message.
I speek swabian and german very well - not english :-(
My Phorum on [clever-forum.de]
My testfforum with version 5.2.x is on [test.clever-forum.de] (user: Phorum password: Clever)
Edited 7 time(s). Last edit at 07/22/2009 11:59AM by Maurice Makaay.
sorry i have found another mistake :-(
Look at these attached pictures:
removed by mmakaay
I have spit a thread and mergend this splitted threads again.
The date of these postings is correctly, but not the sorting in recent messages.
I corrected a few in the german languagefile and make german_du.php also.
Thanks
Berti
mmakaay: removed two images from this message, to clean up the file listing at the top of the page a bit.
Edit mmakaay: The new translation files are now included in the package, so I deleted them from this message.
I speek swabian and german very well - not english :-(
Edited 7 time(s). Last edit at 07/22/2009 11:59AM by Maurice Makaay.
Re: Module: Recent Messages January 05, 2008 05:27AM |
Admin Registered: 20 years ago Posts: 8,532 |
Quote
Berti
That's another problen with the file.php. I have both linked by the pictures in the other posting. Edit my posting and look at the sorcecode.
I fixed that already in your posting. The problem is not file.php. The problem is that you copied the URL for the first image and updated the filename in the URL. But the filename is not what determines which file is downloaded. The file id in the URL does. You can change the end part of the URL to anything you like. It will only change the name as which the file is downloaded.
About the date problem: the recent messages function from the database layer orders the messages by their message_id. This works well in most cases. But in your case, where you did some merging, things go wrong. The moderation code creates new messages in the target thread, which causes them to have new message_ids. This is not something to fix in the recent message module. It would either need different queries in the db layer or a different method for merging threads. No quick and easy fix. I'll create a ticket for this issue.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Recent Messages January 05, 2008 05:43AM |
Registered: 19 years ago Posts: 46 |
Hello Maurice,
Thanks for your Looking.
I have an idea:
Is it possible to order and show allways the postings with the modyfydate?
If someome edits his posting from 2 years ago it will shown in recent messages.
Thanks
Berti
I speek swabian and german very well - not english :-(
My Phorum on [clever-forum.de]
My testfforum with version 5.2.x is on [test.clever-forum.de] (user: Phorum password: Clever)
Thanks for your Looking.
I have an idea:
Is it possible to order and show allways the postings with the modyfydate?
If someome edits his posting from 2 years ago it will shown in recent messages.
Thanks
Berti
I speek swabian and german very well - not english :-(
Re: Module: Recent Messages January 05, 2008 06:08AM |
Admin Registered: 20 years ago Posts: 8,532 |
That would be something like "recently edit or posted messages". Anything is possible, but the recent messages queries are really a fine tuned set of queries and indexes. So it's not something to add quickly. If it were added, then probably for 5.3 and not for 5.2, since the recent messages code is easy to break (as in: losing performance on large forums) and we don't want to break a stable version over this.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Recent Messages January 05, 2008 06:49AM |
Registered: 19 years ago Posts: 46 |
Hello Maurice,
i unterstand you.
Thanks
Berti
I speek swabian and german very well - not english :-(
My Phorum on [clever-forum.de]
My testfforum with version 5.2.x is on [test.clever-forum.de] (user: Phorum password: Clever)
i unterstand you.
Thanks
Berti
I speek swabian and german very well - not english :-(
Re: Module: Recent Messages January 09, 2008 05:50AM |
Registered: 18 years ago Posts: 47 |
Quote
hcgtv
Added it to 5.2.5, Emerald template, index_new.tpl:
i personally think the code should be in emerald/header.tpl:
{! Code for anonymous users } {ELSE} <span class="welcome">{LANG->Welcome}!</span> <a class="icon icon-key-go" href="{URL->LOGINOUT}">{LANG->LogIn}</a> <a class="icon icon-user-add" href="{URL->REGISTERPROFILE}">{LANG->Register}</a> {/IF} <a class="icon icon-list" href="{URL->RECENT_MESSAGES}"> {LANG->mod_recent_messages->RecentMessages} </a> </div> <!-- end of div id=user-info -->
for emerald, that places the link in the user info section - top right on all pages. Maurice - it may be worth some kind of suggestion like this in the README?
Re: Module: Recent Messages January 09, 2008 07:45AM |
Admin Registered: 20 years ago Posts: 8,532 |
Added to the README:
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
For example, if you want the link to appear in the upper right corner of the page, then you can add the marked code from below to the file templates/emerald/header.tpl: ...... ...... {! Code for anonymous users } {ELSE} <span class="welcome">{LANG->Welcome}!</span> <a class="icon icon-key-go" href="{URL->LOGINOUT}">{LANG->LogIn}</a> <a class="icon icon-user-add" ...... {/IF} _____________________________________________________________ | | <a class="icon icon-list" href="{URL->RECENT_MESSAGES}"> {LANG->mod_recent_messages->RecentMessages} </a> |_____________________________________________________________| </div> <!-- end of div id=user-info --> ...... ......
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Recent Messages January 22, 2008 01:32PM |
Registered: 18 years ago Posts: 47 |
feature -
forums that are not visible are not listed in the pull down forum menu for this module when message list filtering - that is as you would expect.
however this mod will list messages in forums that are not visible if the "from any forum" filter is applied.
i'm not raising this as a security issue, just pointing out a slight inconsistency in the "user experience"
forums that are not visible are not listed in the pull down forum menu for this module when message list filtering - that is as you would expect.
however this mod will list messages in forums that are not visible if the "from any forum" filter is applied.
i'm not raising this as a security issue, just pointing out a slight inconsistency in the "user experience"
Sorry, only registered users may post in this forum.