Help
Suggest features for the ArrowChat software
User avatar
Cherry
Customer
 
Posts: 4
Joined: 29 Jul 2012, 11:32

 

by Cherry 31 Jul 2012, 17:05

Hey,

On my forum, I run a minigame where my users can pick a card, and they can win certain things in our game servers. It's entirely custom produced, and I'd love to notify everyone when someone wins the Jackpot.

Basically, I need a way to have a notification send to everyone, perhaps using * as wildcard in the to_id field of arrowchat_notifications table. It'd also be great to be able to do things such as "!=1", where it'd send a notification to everyone other than to_id 1. I still want to use a singular author_id, but being able to have more customisation with the notification target would be nice.

I would manually do a query for every one of my users, but when I have 4k users, that isn't really feasible.

Thanks for reading.
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 31 Jul 2012, 18:57

You could certainly do this in one query by having a select within an insert.

BTW, running 4k queries shouldn't be a huge issue as long as it's not happening a lot.
User avatar
Staff Bot
ArrowChat Team
 
Posts: 8996
Joined: 07 Nov 2012, 13:41

 

by Staff Bot 16 Dec 2014, 00:26

[b]This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.[/b]