Unread Inboxs

Started on the old forum in August 2010 · view the original in the archive · old links redirect here

#view

5 replies · 508 views · started 16 years ago · 1 min read

4 participants
Lee Junior · 17 posts #1

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

woody Developer · 176 posts #3

do you have the getunreadpm() function?

does it work properly?

v1 inbox table is slightly different from v2 as i recall

Lee Junior · 17 posts #4

nooo havent got that lol

centi Developer · 159 posts #6

Unread PM

grrrrrrrrrrrrrrrrrrrrr ere!

$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&pmid=$item[1]&sid=$sid\">$item[0]</a> - $umsg Unread<br/>";
}

😳 .................................... http://photomag.lk/ .................................... 🤨

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close