Pages: [1]   Go Down
  Print  
Author Topic: PM mesage wont remove on site  (Read 225 times)
jdsifw
Newbie
*
Offline Offline

Posts: 28


View Profile
« on: February 12, 2012, 01:58:23 AM »

I got a PM message from a member and now i cant delete it. Always says i have one new message.

Jon
Logged
Upgrade to an SDR 3
csocsoka
Newbie
*
Offline Offline

Posts: 31


View Profile
« Reply #1 on: February 12, 2012, 07:37:43 AM »

Hy.Open the message you have received,and you have an option there that says delete press that link, and it will delete it.Please tell me if it that worked.
Logged
jdsifw
Newbie
*
Offline Offline

Posts: 28


View Profile
« Reply #2 on: February 12, 2012, 08:02:57 AM »

I have inbox /outbox/delete but nothing happens to the message its still there.

Just got told its a script error not sure how to remove it.
Logged
Aligroup
Global Moderator
Hero Member
*****
Offline Offline

Posts: 781



View Profile WWW
« Reply #3 on: February 12, 2012, 12:33:00 PM »

I have inbox /outbox/delete but nothing happens to the message its still there.

Just got told its a script error not sure how to remove it.

loks like some code error in profile.php
Logged

Iam Online almost 15 hours Daily
Goldclix " Advertize Your Site Free Check Here"

ayman20068
Sr. Member
****
Offline Offline

Posts: 265


Offline Thursdays , Fridays


View Profile
« Reply #4 on: February 12, 2012, 04:38:21 PM »

post the code in this file : members/readMsg.php here
Logged

jdsifw
Newbie
*
Offline Offline

Posts: 28


View Profile
« Reply #5 on: February 12, 2012, 11:48:12 PM »

post the code in this file : members/readMsg.php here


$includes[title]="Read Message";

$id = mysql_real_escape_string(intval($_REQUEST['id']));
$sql=$Db1->query("SELECT * FROM messages WHERE ( (username='{$username}' and to_status='1') or (`from`='{$username}' and from_status='1'))  and id='{$id}'");
if($Db1->num_rows() > 0) {
   $temp = $Db1->fetch_array($sql);
   
   if($temp['from'] == $username) $own=false;
   elseif($temp['username'] == $username) $own=true;
   
   if($own == true) $Db1->query("UPDATE messages SET `read`='1' WHERE id='$id'");

   $includes[content]="
   
   <div style=\"float: right;\">
      <a href=\"index.php?view=account&ac=messages&".$url_variables."\">Inbox</a> |
         ".($own == true?"<a href=\"index.php?view=account&ac=composeMsg&reply=$id&".$url_variables."\">Reply</a> | ":
         "<a href=\"index.php?view=account&ac=sentmessages&".$url_variables."\">Outbox</a> | ")."
      <a href=\"index.php?view=account&ac=deleteMsg&id=$id&".$url_variables."\" onclick=\"return confirm('Are you sure?')\">Delete</a>
   </div>
   
   <strong>From: </strong> $temp[from]<br />
   <strong>Date: </strong> ".date('m/d/y', mktime(0,0,$temp[dsub],1,1,1970))."
   
   
   <table class=\"tableStyle3\">
      <tr>
         <td class=\"tableHead\"><img src=\"images/icons/mail.gif\">".stripslashes($temp[title])."</td>
      </tr>
      <tr>
         <td>".nl2br(stripslashes($temp[message]))."</td>
      </tr>
   </table>
   
   
   ";
   
}
else {
   $includes[content]="
   <b>Error!</b><br />
   There was an error loading the requested message!
   ";
}


?>

Hope thats what ya wanted!!
Logged
ayman20068
Sr. Member
****
Offline Offline

Posts: 265


Offline Thursdays , Fridays


View Profile
« Reply #6 on: February 13, 2012, 02:05:09 PM »

the file seems fine , the error would be in the deleteMsg.php file , find this file in members directory and change the code inside it to this code :

Code:
<?

$id = mysql_real_escape_string(intval($_REQUEST['id']));
$sql=$Db1->query("SELECT * FROM messages WHERE ( (username='{$username}' and to_status='1') or (`from`='{$username}' and from_status='1'))  and id='{$id}'");
if($Db1->num_rows() > 0) {
$temp = $Db1->fetch_array($sql);

if($temp['from'] == $username) $own=false;
elseif($temp['username'] == $username) $own=true;

if(($temp['from_status']==0 && $own == true) || ($temp['to_status']==0 && $own == false))
$Db1->query("DELETE FROM messages WHERE id='{$id}'");
else
$Db1->query("UPDATE messages SET ".($own?"to":"from")."_status=0 WHERE id='{$id}'");

}

$Db1->sql_close();
header("Location: index.php?view=account&ac=messages&".$url_variables."");
exit;

?>
Logged

jdsifw
Newbie
*
Offline Offline

Posts: 28


View Profile
« Reply #7 on: February 13, 2012, 02:55:39 PM »




 Found it, But i pasted that code in there. ( by the way it was there already word for word) And still the message wont delete.. it has a Star next to the message does that mean anything? none of my other messages have that gold star.

Jon
« Last Edit: February 13, 2012, 02:59:07 PM by jdsifw » Logged
jdsifw
Newbie
*
Offline Offline

Posts: 28


View Profile
« Reply #8 on: February 18, 2012, 12:19:09 PM »

Well now i have 2 messages that will not Delete . Other people are having same problems. Seems it the ones that are reply's.

That code didnt work at all either.


Jon
Logged
roamer
Newbie
*
Offline Offline

Posts: 2



View Profile WWW
« Reply #9 on: February 21, 2012, 01:29:26 AM »

I had this problem but when I moved to a new host, problem solved. Seems the old host had not updated some software at the servers.
Logged

Edna Davis "Roamer"
skype: EddeeHere
needmorecoffee
Newbie
*
Offline Offline

Posts: 35


View Profile WWW
« Reply #10 on: February 21, 2012, 02:35:44 PM »

Thanks everyone. Had the same issue, and thought it was just my site that had a hicup.
Logged
jdsifw
Newbie
*
Offline Offline

Posts: 28


View Profile
« Reply #11 on: February 23, 2012, 09:45:02 PM »

Thanks everyone. Had the same issue, and thought it was just my site that had a hicup.


No its alot of use having this problem. I think its in the new SDR3 script. have talked to alot of people on this and still no fix!!
Logged
Get a SDR 3 NOW at http://ptcfactory.info

The best and most up to date Aurora script in the market!!
Pages: [1]   Go Up
  Print  
 
Jump to: