Module: Recent Messages

Posted by Maurice Makaay 
Anonymous User
Re: Module: Recent Messages
August 01, 2009 02:52PM
It is easy and necessary to ask questions but more difficult to provide adequat and complete answers.

I've tried to add the following code into recent_messages.php, but it seems to be not sufficient:

[code="php"]
// add feed url
if(isset($PHORUM['use_rss']) && $PHORUM['use_rss']){
// one for the page-links
$PHORUM["DATA"]["URL"]["FEED"] = phorum_get_url( PHORUM_FEED_URL, $PHORUM["forum_id"], $thread, "type=".$PHORUM["default_feed"] );

// and again for the header-links
$PHORUM['DATA']['FEEDS'] = array(array(
'TITLE' => $PHORUM['DATA']['FEED'],
'URL' => $GLOBALS["PHORUM"]["DATA"]["URL"]["FEED"]
));
}
[/code]
Re: Module: Recent Messages
August 01, 2009 03:00PM
It's not easy to ask questions. It might be a language barrier thing. Either your or my English is not sufficient for optimal communication. I suspect that yours isn't. You first talk about jumpmenu, but your question is about RSS feeds?

Anyhow, I am not going to fix this for you. You coding style seems to embody copying and pasting bits of code, but code is not Lego (tm). I'm too busy on several other Phorum projects to do the coding for you right now. I might add RSS to a future version of the module, but it won't be on top of my todo list.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Anonymous User
Re: Module: Recent Messages
August 01, 2009 03:58PM
Quote

It might be a language barrier thing.

You're completly right. What i try to do is to fix languages sections under associated tabs. Which implies separate feeds organized by individual folders, that's all. Recent messages under feed formats would be a plus for this particular configuration. But i see there is no help to expect from the phorum support. Sorry.
Re: Module: Recent Messages
August 01, 2009 04:11PM
If you paid attention, that you would have seen that we are helpful. What we are not, is request-anything-and-we-will-code-for-you-machines. There's a difference. We can and do guide people that can code. We can aid people in using and configuring Phorum. We also do take notice of feature requests and a lot of them are picked up at some point.

But okay, to live up to your expectations, I will stop replying to your messages now. Good luck. Not sorry.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Anonymous User
Re: Module: Recent Messages
August 01, 2009 04:27PM
So, i have resolved the problem in abandoning the tab configuration, because one can obtain the same feature in adding a look-liked-tab menu just above the forums: no needs to be a bruce willis of coding.

Furthermore, it removes the difficulty linked to the tab configuration regarding to the change of templates associated to each folders, because there is not anymore tab-folders, but only folders.

Now, regarding the feeds associated to recent messages, the ones of an appropriate general folder is the solution.

All my phorums questions are now entirely resolved. Thanks a lot for the advices.
Re: Module: Recent Messages
August 02, 2009 11:11AM
I intend to build a very sizable forum with many folders and forums. It would be very helpful if the user could select a specific folder (vs. all folders) and could receive its recent messages. Would it be a great effort to only show folders (vs. non selectable folders and selectable forums) in the first drop-down menu? Thank you for your consideration!
Re: Module: Recent Messages
August 02, 2009 02:43PM
Yes, it would. The queries for receiveing recent messages are not written for folders, so it would require an implementation for that. This would probably be the most hard part of implementing such feature, since it is quite hard to speed optimize something like that.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Recent Messages
August 03, 2009 02:05PM
Quote
ab1
Sorry for troubling the dinner, but a recent messages module without a RSS feed option, it is like a pizza without salad, with or without secret sauce.

There is no logical order to the recent messages module. Not one that pertains to RSS anyway. It is an organized view of all forums. That is not easily duplicated in RSS. What you suggest is Pizza with curry. Big WTF!

Brian - Personal Blog
Re: Module: Recent Messages
August 12, 2009 08:48AM
Phorum v 5.2.11. Just installed the Recent Messages Mod. The listings including 'by date' appear to be reversed i.e. the oldest posts appear at the top of the list. If I click on the 'Older Messages' link the newer messages are returned. Where is the sort order obtained from? Maybe I can work it out from there but I can't locate a reference in the files.
Re: Module: Recent Messages
August 12, 2009 09:22AM
Strange. The listing is returned from the phorum_db_get_recent_messages() function in include/db/mysql.php. That function sorts the messages by descending timestamp.


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

Click here to login