Module: Recent Messages
Posted by Maurice Makaay
|
Re: Module: Recent Messages October 22, 2008 02:33PM |
Registered: 19 years ago Posts: 1,301 |
Short answer: Yes, with some template/php changes.
Long answer:
First, edit the ./mods/recent_messages/recent_messages.php file to run the "list" hook:
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Long answer:
First, edit the ./mods/recent_messages/recent_messages.php file to run the "list" hook:
// ----------------------------------------------------------------------
// Setup template data.
// ----------------------------------------------------------------------
// run list mods
if (isset($PHORUM["hooks"]["list"]))
$messages = phorum_hook("list",$messages);
Next, edit the ./mods/recent_messages/templates/emerald/render_message_row.tpl file to display the icons:
<h4><a {IF subjectclass}class="{subjectclass}"{/IF}
href="{MESSAGE->URL->READ}">{MESSAGE->subject}</a>{IF MESSAGE->mod_cai->icons}
{LOOP MESSAGE->mod_cai->icons}<img src="{MESSAGE->mod_cai->icons->url}" class="icon1616" title="{MESSAGE->mod_cai->icons->title}" alt="{MESSAGE->mod_cai->icons->title}" /> {/LOOP MESSAGE->mod_cai->icons}
{/IF}
{IF MESSAGE->mod_cai->show_clip}
{IF MESSAGE->meta->attachments}<img src="{URL->TEMPLATE}/images/attach.png" class="icon1616" title="{LANG->Attachments}" alt="{LANG->Attachments}" /> {/IF}
{/IF}</h4>
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
|
Re: Module: Recent Messages October 22, 2008 04:29PM |
Admin Registered: 22 years ago Posts: 8,532 |
With all that code, wouldn't it be an idea to put that template data that has to be added in a module template? E.g. in the file mods/custom_attachment_icons/templates/templates/emerald/icons.tpl
Then you can put the template code in the list.tpl template by using {INCLUDE "custom_attachment_icons::icons"}, which prevents adding a lot of extra template code. Users that want a more specific mapping could still fall back to the full template code.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Then you can put the template code in the list.tpl template by using {INCLUDE "custom_attachment_icons::icons"}, which prevents adding a lot of extra template code. Users that want a more specific mapping could still fall back to the full template code.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: Recent Messages October 22, 2008 05:05PM |
Registered: 19 years ago Posts: 1,301 |
It would indeed be a good idea and I'm glad you brought it to my attention. I'm not all that familiar with combining mods and templates. Always something new to learn!
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
|
Re: Module: Recent Messages October 22, 2008 05:05PM |
Registered: 21 years ago Posts: 609 |
Quote
Azumandias
Short answer: Yes, with some template/php changes.
Long answer:
First, edit the ./mods/recent_messages/recent_messages.php file to run the "list" hook:
// ---------------------------------------------------------------------- // Setup template data. // ---------------------------------------------------------------------- // run list mods if (isset($PHORUM["hooks"]["list"])) $messages = phorum_hook("list",$messages);Next, edit the ./mods/recent_messages/templates/emerald/render_message_row.tpl file to display the icons:
<h4><a {IF subjectclass}class="{subjectclass}"{/IF} href="{MESSAGE->URL->READ}">{MESSAGE->subject}</a>{IF MESSAGE->mod_cai->icons} {LOOP MESSAGE->mod_cai->icons}<img src="{MESSAGE->mod_cai->icons->url}" class="icon1616" title="{MESSAGE->mod_cai->icons->title}" alt="{MESSAGE->mod_cai->icons->title}" /> {/LOOP MESSAGE->mod_cai->icons} {/IF} {IF MESSAGE->mod_cai->show_clip} {IF MESSAGE->meta->attachments}<img src="{URL->TEMPLATE}/images/attach.png" class="icon1616" title="{LANG->Attachments}" alt="{LANG->Attachments}" /> {/IF} {/IF}</h4>
Thank you so much! That worked!
Reason I wanted in there too because it allow the moderators to review all the new posts recently posted since our last visit and check all ones with photo or video etc to make sure they aren't in voliation of the forum rules quickly without having to go in each forum and investage each time.
We still sure would like an icon for URL link in posts too if that is possible ...
Bill
|
Re: Module: Recent Messages November 08, 2008 05:11AM |
Admin Registered: 22 years ago Posts: 8,532 |
I uploaded version 2.0.14 of the module.
Changelog:
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.
Jumpmenu module version 1.0.7 or higher is required for this feature to work.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Changelog:
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.
Jumpmenu module version 1.0.7 or higher is required for this feature to work.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
An Idea for the Recent Messages Mod November 17, 2008 03:57PM |
Registered: 21 years ago Posts: 45 |
Hi, I was just looking at the recent messages mod and install on my site. I think this is a great tool for users and admin's alike. I like that I can keep tabs of ongoing conversations and new posts/replies.
My idea is to possibly have a self updating page option. I know this can be done in javascript but, figured maybe a cleaner page reload would nice. I would like to see this done for the following settings (50 posts, New Messages, Any Forum, By Date). Imagine, this self updating on the page without a full page reload. Just an idea.. but, I think it would be neat. Maybe even show stats/users and make this be a 'Forum Watcher' Mod where you could keep tabs on phorum's posts, users levels.. while still keeping it simple (not bloated). Just simple.. and clean.
Am I nuts or does anyone else get my vision?
My idea is to possibly have a self updating page option. I know this can be done in javascript but, figured maybe a cleaner page reload would nice. I would like to see this done for the following settings (50 posts, New Messages, Any Forum, By Date). Imagine, this self updating on the page without a full page reload. Just an idea.. but, I think it would be neat. Maybe even show stats/users and make this be a 'Forum Watcher' Mod where you could keep tabs on phorum's posts, users levels.. while still keeping it simple (not bloated). Just simple.. and clean.
Am I nuts or does anyone else get my vision?
|
Re: An Idea for the Recent Messages Mod November 17, 2008 04:35PM |
Admin Registered: 22 years ago Posts: 8,532 |
Sure, that is on my personal wish list too for that module. It has been implemented for other systems too. And twitter is a good example of how this could work too.
While it's not in the recent messages module, you might want to take a look at RSS watcher scripts. I have seen some that can do periodic checks and update the screen based on the RSS feed changes. Maybe that would be useful for you.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
While it's not in the recent messages module, you might want to take a look at RSS watcher scripts. I have seen some that can do periodic checks and update the screen based on the RSS feed changes. Maybe that would be useful for you.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: Recent Messages November 19, 2008 02:30PM |
Registered: 21 years ago Posts: 45 |
|
Time is offset in Recent Messages December 15, 2008 08:22AM |
Registered: 17 years ago Posts: 10 |
I have the Automatic Time Zones mod installed, which shows the time of messages according to the reader's local time. However, the Recent Messages mod is not following this, and the times listed under recent messages are three hours too early. For example, I posted a message this morning at 07:57 AM EST, and in the read view it shows the correct time. But in the recent messages list it shows as 04:57. What have I missed?
|
Re: Time is offset in Recent Messages December 15, 2008 09:52AM |
Registered: 19 years ago Posts: 1,301 |
This was a failing of the Automatic Time Zones module. The Recent Messages module saves the user's selected view/filters before displaying the message list and this overrode the ATZ time zone setting. I have uploaded v5.2.1.02 of the ATZ module which should address this failing.
Thanks for reporting this.
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Thanks for reporting this.
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Sorry, only registered users may post in this forum.



