Unread Inboxs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Unread Inboxs

    how do i get this code workin for wapdesire v2?

    echo "Total Unread PMs: ".getunreadpm($who)."
    ";

    ive tried changin it to:

    $main.="Total Unread PMs: ".getunreadpm($who)."
    ";

    it wont work

    #2
    I cunt believe i cnt even remember d script Amazing!

    Comment


      #3
      do you have the getunreadpm() function?

      does it work properly?

      v1 inbox table is slightly different from v2 as i recall

      Comment


        #4
        nooo havent got that lol

        Comment


          #5
          If u didnt ave dat u'd get an fatal undefined function error. :-/

          Comment


            #6
            Unread PM

            grrrrrrrrrrrrrrrrrrrrr ere!

            Code:
            $umsg = getunreadpm(getuid_sid($sid));
            $item = mysql_fetch_array(mysql_query("SELECT
            
            
                        a.name, b.id FROM ibwf_users a
            
            
                        INNER JOIN ibwf_private b ON a.id = b.byuid
            
            
                        WHERE b.touid='".$uid."' AND b.unread='1'
            
            
                        ORDER BY b.timesent
            
            
                        LIMIT 1"));
            
            
            
            
            
              if($umsg>0)
            
            
            {
            echo "<img src=\"../images/star.gif\" alt=\".\"/> Last PM by : <a href=\"inbox.php?action=readpm&amp;pmid=$item[1]&amp;sid=$sid\">$item[0]</a> - $umsg Unread<br/>";
            }


            ....................................
            http://photomag.lk/
            ....................................

            Comment

            Working...
            X