• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Minor Thing

Henyman

Secret Goat Fetish
Political User
#1
i just noticed the thread called:

somehow i "locked" my desktop icons in place

and saw on on the bit at the top as a new post, but, the text is wrong even though the mouseover + actual thread title are correct? is says:

Somehow I "locked&qu
 

Attachments

Electronic Punk

willalwaysbewithyou
Staff member
Political User
#5
Here is the function that does it

Code:
unset($recentforumposts);
$recentforumget = 5; // Number of posts to get
$recentforumlength = 25; // Length of title to display before cutting off
$forumexclude = "28,29"; // Add forum id's to exclude from get (eg private ones) sepetate by a comma

$getposts = query("SELECT threadid,title FROM thread WHERE (visible <> 0)".iif($forumexclude," AND (forumid NOT IN ($forumexclude))")." AND (open <> '10') ORDER BY lastpost DESC LIMIT $recentforumget");

while ($post = fetch_array($getposts)) {
$post[short_title] = iif(strlen($post[title]) > $recentforumlength,substr($post[title],0,$recentforumlength)."...",$post[title]);
$post[full_title] = $post[title];
$recentforumposts .= "<a href=\"http://forum.osnn.net/showthread.php?goto=newpost&amp;t=$post[threadid]\" title=\"$post[full_title]\" target=\"_top\">$post[short_title]</a><br />\n";
}
 

Members online

No members online now.

Latest posts

Latest profile posts

Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,017
Latest member
bettyicrewsi