Unread PM From You Got Errors

Started on the old forum in July 2009 · view the original in the archive · old links redirect here

11 replies · 718 views · started 17 years ago · 1 min read

5 participants
l0rdrayven Developer · 83 posts #1

guys please kindly post the right code to add in core.php regarding getunreadpm($uid,$you) I use the code by rukiya here it is...

/////////////////////Get unread number of pms form you

function getunreadpm($uid,$you) { $nopm = mysql_fetch_array(mysql_query("SELECT COUNT (id) FROM ibwf_private WHERE touid='".$uid."' AND byuid='".$you."'AND unread='1'")); return $nopm[0]; }

The problem is when i add that to core.php error occurs and it says

unable to redeclaire getunreadpm() already exist in line etc,etc..

What code to be exactly i have to add in my existing getunreadpm file in core.php to enable this function works in members profile..

echo "Unread PMs: ".getunreadpm($who)." , ".getunreadpm($who,$uid)." from you ";

Not i rip persons off i will also do your arse !

kiLLeR-eyEd_14 Senior · 382 posts #2

l0rdrayven wrote: guys please kindly post the right code to add in core.php regarding getunreadpm($uid,$you) I use the code by rukiya here it is...

/////////////////////Get unread number of pms form you

function getunreadpm($uid,$you) { $nopm = mysql_fetch_array(mysql_query("SELECT COUNT (id) FROM ibwf_private WHERE touid='".$uid."' AND byuid='".$you."'AND unread='1'")); return $nopm[0]; }

The problem is when i add that to core.php error occurs and it says

unable to redeclaire getunreadpm() already exist in line etc,etc..

What code to be exactly i have to add in my existing getunreadpm file in core.php to enable this function works in members profile..

echo "Unread PMs: ".getunreadpm($who)." , ".getunreadpm($who,$uid)." from you ";

check the getunreadpm function in your core.php..Maybe it's already existing there and you duplicated it..

l0rdrayven Developer · 83 posts #3

yah it is my friend then how can i add this function? Do i have to edit the getunreadpm function and how? Pls mates tell me the exact code.

Not i rip persons off i will also do your arse !

Vayne Developer · 106 posts #4

this part tags aren't closed as they opened

<b><small>Unread PMs:</small></b>

that isnt valid WML!

<b><small>Unread PMs:</b></small>

Nous Ne Dansos Pas, Nous Sommes Le Danse.!

kiLLeR-eyEd_14 Senior · 382 posts #5

Vayne wrote: this part tags aren't closed as they opened

<b><small>Unread PMs:</small></b>

that isnt valid WML!

<b><small>Unread PMs:</b></small>

i think, there's no problem with that in wml..whether the first one to be closed is the bold tag then after is small..Important is to close them..That's it..

l0rdrayven Developer · 83 posts #6

This the valid one in my script

Unread PMs:

And this is the invalid one

Unread PMs

Not i rip persons off i will also do your arse !

Vayne Developer · 106 posts #7

l0rdrayven wrote: This the valid one in my script

Unread PMs:

And this is the invalid one

Unread PMs

you are sure?

Nous Ne Dansos Pas, Nous Sommes Le Danse.!

capofret Developer · 225 posts #8

l0rdrayven wrote: guys please kindly post the right code to add in core.php regarding getunreadpm($uid,$you) I use the code by rukiya here it is...

/////////////////////Get unread number of pms form you

function getunreadpm($uid,$you) { $nopm = mysql_fetch_array(mysql_query("SELECT COUNT (id) FROM ibwf_private WHERE touid='".$uid."' AND byuid='".$you."'AND unread='1'")); return $nopm[0]; }

The problem is when i add that to core.php error occurs and it says

unable to redeclaire getunreadpm() already exist in line etc,etc..

What code to be exactly i have to add in my existing getunreadpm file in core.php to enable this function works in members profile..

echo "Unread PMs: ".getunreadpm($who)." , ".getunreadpm($who,$uid)." from you ";

try this:

function getunreadpm($uid){

$nopm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$uid."' AND unread='1'"));

return $nopm[0];

LDSWAPWORLD site closed. im busy with other things in life like facebook , send me PM so i can add you 🙂 www.pinoySG.com

don't ask for help if you're not even helping yourself! i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.

External image (may be gone)

l0rdrayven Developer · 83 posts #9

capofret wrote: try this:

function getunreadpm($uid){

$nopm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$uid."' AND unread='1'"));

return $nopm[0];

Thats the code already in my core.php then how to add the function byuid = .'"$you.'". In that line?

Not i rip persons off i will also do your arse !

capofret Developer · 225 posts #10

l0rdrayven wrote: Thats the code already in my core.php then how to add the function byuid = .'"$you.'". In that line?

function getunreadpm($uid,$byuid) { $nopm = mysql_fetch_array(mysql_query("SELECT COUNT (*) FROM ibwf_private WHERE touid='".$uid."' AND byuid='".$byuid."'AND unread='1'")); return $nopm[0]; }

LDSWAPWORLD site closed. im busy with other things in life like facebook , send me PM so i can add you 🙂 www.pinoySG.com

don't ask for help if you're not even helping yourself! i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.

External image (may be gone)

l0rdrayven Developer · 83 posts #11

it cause error in my inbox.anyway thanks for the help.i already got the right code.Theres no need to edit or add code in core.php

Not i rip persons off i will also do your arse !

metulj Super moderator Principal · 1,726 posts #12

kiLLeR-eyEd_14 wrote:

Vayne wrote: this part tags aren't closed as they opened

<b><small>Unread PMs:</small></b>

that isnt valid WML!

<b><small>Unread PMs:</b></small>

i think, there's no problem with that in wml..whether the first one to be closed is the bold tag then after is small..Important is to close them..That's it..

@kiLLeR-eyEd_14very wrong ! only HTML would alowe such nonsense...(but it wont be valid code!) meanwhile WML and also XHTML not...

<tag1><tag2><tag3>THIS IS VERY WRONG AND CAN AND WILL CAUSE PROBLEMS!</tag1></tag2></TAG3>
<tag1><tag2><tag3>THIS IS CORRECT AND VALID BY W3C</tag3></tag2></tag1>

🤨

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

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