Minor Thing

Discussion in 'Site Problems & Feedback' started by Henyman, Apr 17, 2004.

  1. Henyman

    Henyman Secret Goat Fetish Political User

    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
     

    Attached Files:

    • 1.JPG
      1.JPG
      File size:
      154.1 KB
      Views:
      68
  2. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,589
    Location:
    Copenhagen, Denmark
    it happens.
     
  3. Henyman

    Henyman Secret Goat Fetish Political User

    yeah i presumed it was a random error that happened for the hell of it :p
     
  4. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,589
    Location:
    Copenhagen, Denmark
    its would happen if & was there too as it is converted to &
     
  5. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,589
    Location:
    Copenhagen, Denmark
    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";
    }
     
  6. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,589
    Location:
    Copenhagen, Denmark
    Guess no one knows, so it will stay as it is :)