Hello all.
I was wondering if you guys might be able to help me out with the Profile Book plugin. I am trying to modify it so that only the sender of a message can delete that message. I am sure this is possible but I have been unable to implement it so far. I have gotten the "Delete" link to dissapear from the recipient's page. I have also gotten the "Delete" link to appear when the sender is logged in and viewing the recipeint's page, but upon clicking the javascript confirm button it does nothing. The page doesn't even refresh. Is the key to this in the if statement for the action variable 'if ($isME || $iAmModerator) { switch ($action) . . . '?
If anybody can help me figure this out, I would greatly appreciate it. I don't know much about PHP, but I have found that I can read it and have some understanding of what is going on.
If you would like to see my current cp.profilebook.php I could post that.
Additionally, I am also trying to find a way to quote the original message when sending a reply (return favor) to a message. If anyone has any input on that, I would be very thankful.
Thanks in advance!
Post edited by: redleader36, at: 2009/01/09 17:12