Firefox PHP

Last post listing on index page

Posted by Brian Moon 
Re: Last post listing on index page
December 05, 2006 06:52AM
also, am i mistaken or does this data only appear if you are logged in?
Re: Last post listing on index page
December 08, 2006 06:29AM
gonna try to get a reply to this at some point hopefully..does anyone know how to hack this in order to get it to display the user's REAL NAME rather than their username?

thanks!
Re: Last post listing on index page
December 08, 2006 04:29PM
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
ok cool now how does one do that?
Re: Last post listing on index page
December 11, 2006 06:57AM
is there any how to on using this function?

also, does anyone else get the error where this mod doesn't show if the user isn't logged in? if i'm not logged in, i only get the word 'by', no post title and author. but if i'm logged in, it appears.
Re: Last post listing on index page
December 11, 2006 07:00AM
which function?

about this error, maybe your forums are only readable for registered users???


Thomas Seifert
Re: Last post listing on index page
December 11, 2006 07:10AM
aha! that makes sense, thanks for pointing that out

the function to which i refer is phorum_user_get() function

sorry i got mixed up as to the threads i'm replying to!

thanks much for yr reply
Re: Last post listing on index page
February 08, 2007 02:25PM
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
Re: Last post listing on index page
February 08, 2007 07:08PM
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"];
this worked nicely for me, however,
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
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:

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.

Click here to login