Last post listing on index page
Posted by Brian Moon
August 09, 2005 06:28PM |
Registered: 21 years ago Posts: 146 |
August 12, 2005 11:55AM |
Registered: 21 years ago Posts: 146 |
After I use this module "LastForumPost" for some days now, I introduced my first message of type "Announcement". Then I saw that LastForumPost does not list this Announcement in the list of forums.
I wonder if /phorum/include/db/mysql.php:phorum_db_get_recent_messages() should be updated or if noone even wants to see Announcements as last posts, too.
If the message type "Sticky" is used, LastForumPost aka phorum_db_get_recent_messages() works fine. But where is the difference? I wonder if it is the "closed" field in the SQL table "phorum_messages". An announcement seems to be a closed one-time message. But why should it be suppressed from this module resp. the Phorum function phorum_db_get_recent_messages() then?
Any hints?
I wonder if /phorum/include/db/mysql.php:phorum_db_get_recent_messages() should be updated or if noone even wants to see Announcements as last posts, too.
If the message type "Sticky" is used, LastForumPost aka phorum_db_get_recent_messages() works fine. But where is the difference? I wonder if it is the "closed" field in the SQL table "phorum_messages". An announcement seems to be a closed one-time message. But why should it be suppressed from this module resp. the Phorum function phorum_db_get_recent_messages() then?
Any hints?
Re: Last post listing on index page August 16, 2005 11:21AM |
Registered: 18 years ago Posts: 264 |
Correct me if I'm wrong Brian, but the way I understand it is Announcments are set to a forum_id of 0 so aren't actually in the forum where you see it. So the script has no means of validating it currently with out some extensive modification to take into account all messages with a forum_id of 0 (zero) also. Hope that helps some.
http://www.krang.org
http://www.krang.org
Re: Last post listing on index page October 12, 2005 01:43PM |
Registered: 17 years ago Posts: 8 |
Am I getting it right that this fine mod is already included in Phorum 5.0.19 although it is listed in the module list of Phorum Developer's Wiki?
Sorry, now I can see the additional hint for the last post (not only the date but the title).
You can delete my post, it's annoying.
Edited 1 time(s). Last edit at 10/12/2005 01:58PM by Data.
Sorry, now I can see the additional hint for the last post (not only the date but the title).
You can delete my post, it's annoying.
Edited 1 time(s). Last edit at 10/12/2005 01:58PM by Data.
Re: Last post listing on index page April 27, 2006 03:31PM |
Registered: 17 years ago Posts: 179 |
This works great with 5.1.11, in case anyone is interested.
Thanks Brian!
Steel Rat
[infinite-realities.com]
Thanks Brian!
Steel Rat
[infinite-realities.com]
Re: Last post listing on index page August 01, 2006 05:11AM |
Registered: 16 years ago Posts: 15 |
Re: Last post listing on index page August 01, 2006 05:16AM |
Admin Registered: 20 years ago Posts: 9,240 |
Re: Last post listing on index page August 28, 2006 05:07AM |
Registered: 18 years ago Posts: 99 |
Re: Last post listing on index page August 28, 2006 05:19AM |
Registered: 18 years ago Posts: 99 |
Oh, just had the "aha"-effect.
I opened my site in FF being logged in and saw the announcements,
then I opened a IE window and they were missing.
i was shocked at first, but the realized i wasn't logged in;)
so can only admins see the stickys or can any logged in member?!
if any registered member can, then i would still like to
hide the stickys:)
I opened my site in FF being logged in and saw the announcements,
then I opened a IE window and they were missing.
i was shocked at first, but the realized i wasn't logged in;)
so can only admins see the stickys or can any logged in member?!
if any registered member can, then i would still like to
hide the stickys:)
Re: Last post listing on index page December 05, 2006 06:46AM |
Registered: 16 years ago Posts: 17 |
Sorry, only registered users may post in this forum.