PDA

View Full Version : Is there Variable for new posts unread


omardealo
01-20-2014, 11:33 AM
Hello ,
My question , i want send alert to user Even he know is there new posts in his threads he not read it .
so , is there Variable for that can i use it .. like :

$bbuserinfo[pmunread]
$bbuserinfo[vmunreadcount]
$bbuserinfo[friendreqcount]
$bbuserinfo[socgroupinvitecount]

THNX ..

ozzy47
01-20-2014, 11:58 AM
If the user subscribes to their thread, they can get a a email about it, either instantly, daily, or weekly.

omardealo
01-20-2014, 12:42 PM
If the user subscribes to their thread, they can get a a email about it, either instantly, daily, or weekly.

YEAH , i know about subscribes ... i don't want use email message
i want alert user by Notification like "there is 5 new post in your thread Etc."
if not there a Variable , what's query can i used it for select new post for thread's user he not read it yet .

thnx so much , I hope that my request will be clear now

ozzy47
01-20-2014, 12:47 PM
Ahhh ok I got ya now, no I don't believe I have seen a mod like that recently.

omardealo
01-20-2014, 12:54 PM
Ahhh ok I got ya now, no I don't believe I have seen a mod like that recently.

well , in fact i don't want mod .. i will make a mod so i want just this variable or query
anyway , thnx for you time

kh99
01-20-2014, 02:57 PM
Do you want posts since the last time he logged in? Then I think you could query for threads where thread.lastpost > user.lastactivity . If you wanted to know if the user actually read the posts or not (even if he was logged in since it was posted) then it gets more complicated, and I don't know how to do that off the top of my head.

omardealo
01-20-2014, 03:55 PM
Do you want posts since the last time he logged in? Then I think you could query for threads where thread.lastpost > user.lastactivity . If you wanted to know if the user actually read the posts or not (even if he was logged in since it was posted) then it gets more complicated, and I don't know how to do that off the top of my head.

okay , me too i cannot build this Idea in my head
that's not i want .. i don't want to alert users to all new posts in forum , only new posts in user's threads when user he is a poster.
Focused with me , now i write this thread i will Receive a notification tell me (kh99 write a post in your thread .... read it)
and want too, you will Receive a notification tell you (omardealo quote your post on this thread .... read it)
Regardless of his last visit, I want to show the alarm until he delete it or to see it .
that's it .. !

I'm thinking to select all posts in user's threads , Except that by him and that read it ..
posts that by him , ok i know how i know it
but how i know user read this post or not ? can i use the table (postlog) or there is another way ...

Thank you !

kh99
01-21-2014, 09:47 AM
Like Ozzy said above, you might be able to use thread subscriptions. If each user sets their default to subscribe to threads they create or reply to, and you also use this mod: https://vborg.vbsupport.ru/showthread.php?t=250461, then I think you might get what you described. This also gives users the ability to unsubscribe from threads that they don't want notifications for any more.

omardealo
01-21-2014, 11:28 AM
Like Ozzy said above, you might be able to use thread subscriptions. If each user sets their default to subscribe to threads they create or reply to, and you also use this mod: https://vborg.vbsupport.ru/showthread.php?t=250461, then I think you might get what you described. This also gives users the ability to unsubscribe from threads that they don't want notifications for any more.

okay , i understand what you mean
but as you said "If each user sets their default" i don't want (if) or let this to user ... like PM notifications , no way here to if user want or not want this notifications , right
anyway , I'll think again and look for a way, surely there is a way to achieve what I hoped for !
thnx brother