The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Send email to support staff
Here's the deal, I have it set so when a new ticket is created it sends a notification to all support staff based on usergroup perms, the problem is it won't send and as far as I know it isn't pulling data to send the email.
Here is the code: PHP Code:
Anyway, I have been trying a few things to get this working, any help would be much appreciated. |
#2
|
||||
|
||||
How about something like this
PHP Code:
|
#3
|
|||
|
|||
Tried what you had above, had to change $usergroup['issupport'] to $usergroup['pl9_support'] but emails still not going out to staff. Here is what I am wondering, the sprintf, why use that? Seems as though its not telling it what to do or am I wrong?
Any other suggestions? |
#4
|
||||
|
||||
Why not do some debugging...?
|
#5
|
|||
|
|||
EDIT: Checked up on sprintf and low and behold I had emails waiting that were telling me support tickets exist. So that tells me it is delaying on sending out emails. Is that how it is supposed to work? I have never used sprintf so not sure how it should work.
--------------- Added [DATE]1265698069[/DATE] at [TIME]1265698069[/TIME] --------------- Adrian, thanks a bunch, it works now that I see there is a delay in sending which I do like. Now the next issue is that I am having to use $usergroup['pl9_support'] == 16 which means that the setting has to be set to only support staff with no other options, I did it this way on purpose, but how do I go about pulling pl9_support without having to see if the value is set to 16? If I drop == 16 then it will send notifications to everyone. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|