![]() |
Add custom MySQL query in Admin CP drop-down
I wanted a fast way to access the subscribed list for my forum newsletter, for which I had added a custom variable. The technique below could be used for any MySQL query that you may want to add to the predefined "Automatic Query" drop down list in the Admin CP.
Open /admincp/queries.php Find Code:
'210' => $vbphrase['subscribe_choice_none'], Code:
'209' => 'List users subscribed to newsletter', Code:
case 210: Code:
case 209: You will need to edit the above for your own variable and table names, of course. Also do a FIND to ensure that the CASE is not already in use. |
Nice! :)
I use that to insert a query to empty the chatbox. Thanks :) |
Nice!
Thanks! |
Reserved! Thanks!
|
Installed! I wish the VB guys would make this a feature. Thanks for the info. :D
|
Very nice. Used it for my Master Member List which includes custom profile fields. Thanks.
|
All times are GMT. The time now is 02:31 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|