The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how to get a list of notifications
expounding on Markfl's answer given in the following getting the total number of notifications and this thread Adding a notification.how would I get a dynamic array of all the notifications or of each of the notification types in vbulletin so that I can create a dynamic list of notifications?
Also If there is any documentation about the various userinfo ,activity and notification types and the functions that are used to instantiate them that would be really helpful. Thanks a ton in advance. |
#2
|
|||
|
|||
If you check the "user" table, you will see columns such as "vmunreadcount", "friendreqcount", etc. I think you can access those variables in the $vbulletin->userinfo array to then process them to your needs.
|
#3
|
|||
|
|||
Thanks for the answer....how would I do this exactly?
|
#4
|
||||
|
||||
In my reply in the other thread, I think I gave you all of the notification types intrinsic to vB 4. You would then have to look at your "user" table to see if any of your installed products have added any of their own, such as "DragonByte Tech: Advanced Post Thanks / Like (Pro)" does.
Then once you have determined all of the notification types on your site, you would add them all up to get the total. |
#5
|
|||
|
|||
I dont need the total any more ...the message you sent hlped me figure that out ... I need to make a dynamic list from each of those so I can make a notifications list
--------------- Added [DATE]1451311925[/DATE] at [TIME]1451311925[/TIME] --------------- I need to find out how to use those functions you mentioned to make a dynamic list |
#6
|
||||
|
||||
Well, in your PHP code, you could do something like:
PHP Code:
|
#7
|
|||
|
|||
Quote:
I understand that PHP Code:
and then display that in a foreach loop which accounts for a dynamic list of notifications, just like the facebook notifications dropdown. I hope this makes more sense. Thanks again for the reply |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|