Last post listing on index page
Posted by Brian Moon
Re: Last post listing on index page December 05, 2006 06:52AM |
Registered: 16 years ago Posts: 17 |
Re: Last post listing on index page December 08, 2006 06:29AM |
Registered: 16 years ago Posts: 17 |
December 08, 2006 04:29PM |
Admin Registered: 22 years ago Posts: 4,495 |
You would have to load the user's data and pull the real name from the retreived data.
Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Last post listing on index page December 08, 2006 07:18PM |
Registered: 16 years ago Posts: 17 |
Re: Last post listing on index page December 11, 2006 06:57AM |
Registered: 16 years ago Posts: 17 |
Re: Last post listing on index page December 11, 2006 07:00AM |
Admin Registered: 20 years ago Posts: 9,240 |
Re: Last post listing on index page December 11, 2006 07:10AM |
Registered: 16 years ago Posts: 17 |
February 08, 2007 02:25PM |
Registered: 20 years ago Posts: 687 |
This module works great for Phorum 5.1.16a - many thanks Brian.
/\dam
--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz
/\dam
--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz

Re: Last post listing on index page February 08, 2007 07:08PM |
Registered: 16 years ago Posts: 110 |
this worked nicely for me, however,Quote
portal of curiousity
Edit lastforumpost.php in /mods/lastforumpost/
by changing the line of:
$forum["description"]="<div style='margin-bottom: 5px;'><strong>{$PHORUM['DATA']['LANG']['LastPost']}</strong>: <a href='$url'>$message[subject]</a> {$PHORUM['DATA']['LANG']['by']} $message[author]</div>".$forum["description"];to:
$forum["last_post"]="<a href='$url'>$message[subject]</a> {$PHORUM['DATA']['LANG']['by']} $message[author]<br />".$forum["last_post"];
in the readable dates module, I had to uncheck the option for readable dates on index pages.
otherwise, readable dates overwrites this module...this shouldn't be a problem in 5.2, I presume, since we'll be able to specify module load order which would resolve this issue.
Re: Last post listing on index page February 09, 2007 10:35PM |
Registered: 16 years ago Posts: 25 |
Pardon my PHP-ignorance, but why can't I put an image in the formatting line? i.e. the line that starts "$forum["last_post"]=" I just wanted to put a little carat image after the user name, but I get an error:
I'm not bungling the html, as far as I can tell.
Also, I'd like to put the last post info below the datestamp. Help?
Quote
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/.harpa/lptjkt/mountain-goats.com/forums/mods/lastforumpost/lastforumpost.php on line 13)
I'm not bungling the html, as far as I can tell.
Also, I'd like to put the last post info below the datestamp. Help?
Sorry, only registered users may post in this forum.