Quote:
Today at 12:41 AM MetroSports82 said this in Post #13
i hate to be bumping old hacks like this. i've just applied this, and it works well, (thanks Logician ), but for some reason, i'm getting pm notifications when ever any user posts a poll. any ideas why? is there any fix for this by any chance? Also, when I do recieve the PM, it does not update, and comes up as being read as an old PM, thanks for any support, this has come in very useful.
|
This is because technically threads with polls are moderated before poll is posted. You can fix it like this:
In the hack code you applied to newthread.php, replace line:
PHP Code:
if ($visible!=1)
AS
PHP Code:
if ($visible!=1 AND $postpoll==0)
This will make sure hack will ignore threads with polls. However remember that if you apply this, you may have posts that stay as moderated but you get no notifications. (If user choose to send a poll, but didn't when poll screen loaded)
as for fixing message read find:
PHP Code:
$DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title,message,dateline,showsignature,iconid,messageread,folderid) VALUES (NULL,$commish_member,$commish_member,$commish_member,'".addslashes(htmlspecialchars($title1))."','".addslashes($message1)."',".time().",'$signature','$iconid',1,0)");
and replace it as:
PHP Code:
$DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title,message,dateline,showsignature,iconid,messageread,folderid) VALUES (NULL,$commish_member,$commish_member,$commish_member,'".addslashes(htmlspecialchars($title1))."','".addslashes($message1)."',".time().",'$signature','$iconid',0,0)");