Quote:
Originally Posted by tbworld
You need to explain where you are executing that code? If it is a plugin provide the complete plugin code and the related hook. 
|
i make plugin for alert users about new posts in them threads
so , i need to know is user open this alert of post or not , to Delete it ..
hook : global_start
code :
Code:
$vbulletin->input->clean_gpc('r', 'postid', TYPE_UINT);
$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . " alert_post WHERE ".intval($vbulletin->GPC['postid'])." in (postid) and userid = ".$vbulletin->userinfo['userid']." ");
Note :
this code work good when user open post whit Default links [vb/showthread.php?
p=22] but with vbseo links [vb/t18/#post22] sometimes work ,sometimes not work ...
And in
session table don't add number of postid , just add threadid [showthread.php?
t=5] on filed
location .
so i need any way to know if this user open this postid or not .