The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Notification on New Database Row
Hi,
I have a form set up to make a request. After a user makes a request, it then shows up on a table and our Mod views it. However, how can I make a Notification appear on the notification list when there is a new request, aka a new row in the table? I am using the Group Membership Requests modification, and all it has is 1 phrase and the rest is 1 plugin, which is using the hook notifications_list. Here is the only plugin. PHP Code:
I want to modify it to give a notification when a new row is added to my table. If anyone can guide me, please and Thank You! |
#2
|
|||
|
|||
Well, here's a thread where we talked about adding something to the notifications menu: www.vbulletin.org/forum/showthread.php?t=286095 . It's basically the same thing that 's done in the plugin you posted (but of course yours is more complicated because it actually checks something instead of using a constant). If you can figure out the code to get the number of notifications you want, you should be able to follow that example to display them in the menu.
|
#3
|
|||
|
|||
Hmm.
Well, basically, if the status of the row is '1', I want it to show a notification. So like, SELECT * FROM mytable WHERE status='1' Gonna see if I can incorporate it in that plugin, thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|