Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2014, 11:33 AM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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 ..
Reply With Quote
  #2  
Old 01-20-2014, 11:58 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If the user subscribes to their thread, they can get a a email about it, either instantly, daily, or weekly.
Reply With Quote
  #3  
Old 01-20-2014, 12:42 PM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
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
Reply With Quote
  #4  
Old 01-20-2014, 12:47 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahhh ok I got ya now, no I don't believe I have seen a mod like that recently.
Reply With Quote
  #5  
Old 01-20-2014, 12:54 PM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
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
Reply With Quote
  #6  
Old 01-20-2014, 02:57 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 01-20-2014, 03:55 PM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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 !
Reply With Quote
  #8  
Old 01-21-2014, 09:47 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 01-21-2014, 11:28 AM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:08 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.12087 seconds
  • Memory Usage 2,252KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete