Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
Acmlm's Board - I3 Archive - Programming - Shitty PM system | New poll | | |
Add to favorites | Next newer thread | Next older thread |
User | Post | ||
Stifu Since: 11-18-05 From: Your mom's bed Last post: 6432 days Last view: 6430 days |
| ||
Unless I'm mistaken, the PM system in v1.A2 sucks... If both members delete the same PM on both sides, the PM is STILL kept in the database, am I wrong ?
I'd like to make it so the PM is totally wiped from the database if both users have deleted it from their box... Anyone can help ? I'm kind of confused about how things work at the moment.
It seems like the code that actually deletes PM for real got commented out... But that way, it would look like the PM would get deleted even if only one of the two users deletes it, which is also wrong. I don't get the "PM_DELETE" part really, dunno how that works... Anyone can help ? Thanks. PS: Looks like there's a board bug here... I had to add < |
|||
Xeon The master of the universe... Since: 03-09-06 From: Omaha, NE Last post: 6739 days Last view: 6739 days |
| ||
We should make an AcmlmBoard Programming Shit Talk thread, just because of all the negative things that are to be said about AcmlmBoard's programming. | |||
Stifu Since: 11-18-05 From: Your mom's bed Last post: 6432 days Last view: 6430 days |
| ||
That wasn't the point at all... | |||
Parasyte + Red Paragoomba Since: 01-05-06 Last post: 6752 days Last view: 6752 days |
| ||
You can try something silly like this:
If any of the following code relies on the original $tofrom variable, this will not work. It also will not work if the database structure is any different since the code was commented. There is little I can do or say about that unless I take the time to actually look through the sources. (edited by Parasyte + on 03-19-06 08:36 AM) (edited by Parasyte + on 03-19-06 04:46 PM) |
|||
Stifu Since: 11-18-05 From: Your mom's bed Last post: 6432 days Last view: 6430 days |
| ||
Yay it works !
Thanks a lot. |
|||
Parasyte + Red Paragoomba Since: 01-05-06 Last post: 6752 days Last view: 6752 days |
| ||
Come to think of it, it may be better to dump mysql_num_rows in favour of this:
if (@mysql_result(@mysql_query("SELECT COUNT(*) FROM pmsgs WHERE folder$tofromsel[$tofrom]=".PM_DELETED." AND folder".$tofromsel[$tofrom ^ 1]."=".PM_DELETED." AND id=$id"), 0, 0)) { (edited by Parasyte + on 03-19-06 04:46 PM) |
|||
Stifu Since: 11-18-05 From: Your mom's bed Last post: 6432 days Last view: 6430 days |
| ||
Mysql_num_rows ? Where was that ?
Anyway, I guess you mean I should just replace that 'if' with that new one... Alright. Thanks. Edit: Actually, now that I'm sober, I notice that the 'if' you just posted is exactly the same one as before... Please enlighten me, I'm confused. |
|||
Parasyte + Red Paragoomba Since: 01-05-06 Last post: 6752 days Last view: 6752 days |
| ||
It it the same ... now. After I already updated it. Compare it to the one you are using. | |||
Stifu Since: 11-18-05 From: Your mom's bed Last post: 6432 days Last view: 6430 days |
| ||
I thought about that afterward...
Anyway, thanks again ! |
Add to favorites | Next newer thread | Next older thread |
Acmlm's Board - I3 Archive - Programming - Shitty PM system | | |