Firefox PHP

Last post listing on index page

Posted by Brian Moon 
Re: Last post listing on index page
August 09, 2005 06:28PM
Another formatting suggestion:
$forum["last_post"] = "<a href='$url'>".substr($message[subject],0,30)."...</a><br/>{$PHORUM['DATA']['LANG']['by']} $message[author]<br />" . $forum["last_post"];
Re: Last post listing on index page
August 12, 2005 11:55AM
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?
Re: Last post listing on index page
August 16, 2005 11:21AM
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
Re: Last post listing on index page
October 12, 2005 01:43PM
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.
Re: Last post listing on index page
April 27, 2006 03:31PM
This works great with 5.1.11, in case anyone is interested.

Thanks Brian!

Steel Rat
[infinite-realities.com]
Re: Last post listing on index page
August 01, 2006 05:11AM
Hello,

How to I enable this mod? I copied the .php file to the mods directory. But it did not appear in the Admin's modules list.

Thanks.
Re: Last post listing on index page
August 01, 2006 05:16AM
the whole directory from the archive needs to be put in the mods-folder (including the lastpost directory itself!).


Thomas Seifert
Re: Last post listing on index page
August 28, 2006 05:07AM
I would like to hide Announcements and Stickys since, as you said,
the forum_id is 0 and the links won't work.
Has anybody done this, is there a proper function already?
Re: Last post listing on index page
August 28, 2006 05:19AM
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:)
Re: Last post listing on index page
December 05, 2006 06:46AM
hi
is it possible to get this to appear in the last post column of list.php as well?
thanks
Sorry, only registered users may post in this forum.

Click here to login