vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Is there Variable for new posts unread (https://vborg.vbsupport.ru/showthread.php?t=307256)

omardealo 01-20-2014 11:33 AM

Is there Variable for new posts unread
 
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 :

PHP Code:

$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

Quote:

Originally Posted by ozzy47 (Post 2475512)
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

Quote:

Originally Posted by ozzy47 (Post 2475529)
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

Quote:

Originally Posted by kh99 (Post 2475551)
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

Quote:

Originally Posted by kh99 (Post 2475761)
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


All times are GMT. The time now is 05:26 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01045 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete