![]() |
MyQueries - Save custom SQL for future use
1 Attachment(s)
My Queries by Rafael Lopez
04/10/2009 (m/d/y) This mod allows you to store custom queries for later use. Simply define the query once, save it, and it'll appear under "Automatic Queries" in the Admin CP - allowing you to run it again in a matter of seconds. ::: CHANGE LOG ::: v1.0 - original release v2.0 - 4/12/09 -----New feature: Variables -----A few bug fixes v2.1 - 4/20/09 -----Saved queries can now be edited. ::: Installation ::: Extract product-my_queries.xml Upload product-my_queries.xml by going to ADMIN CP --> PLUGINS AND PRODUCTS --> MANAGE PRODUCTS --> ADD/IMPORT PRODUCT If you are upgrading then you should set "over-write" to yes. And you're done! https://vborg.vbsupport.ru/external/2009/04/28.png As always with my releases, you are free to modify, distribute, derive work from, and translate this mod. If you liked this mod you might also like my others: Select Postbit [https://vborg.vbsupport.ru/showthread.php?t=203324] Shared Admin Notes [https://vborg.vbsupport.ru/showthread.php?t=203326] Internal Forums Closed Message/Reason [https://vborg.vbsupport.ru/showthread.php?t=207855] Auto-Moderate Evading Banned Members [https://vborg.vbsupport.ru/showthread.php?t=207966] Multi-Quote / Edit Integration [https://vborg.vbsupport.ru/showthread.php?t=210620] |
Nice work, thank you!
Installed |
Quote:
|
can only admins that have can run query permission run these? It looks like a useful mod, thanks for sharing.
|
wooow it's nice work ...i will try now :)
Ops ! PHP Code:
|
For those of us that are not so familiar with some of the backend functions like queries, could you explain what this would do or help us in doing? :)
|
I think this would be great if there was some preset sample queries added to the text file for us to use :) Like one for deleting visitor messages of X user etc :)
________ Fix ps3 |
Quote:
Quote:
Quote:
The query page already has examples. Like you could run a query to make everyone on your forum use the WYSIWYG editor. Or, like the person below you stated, you could run a query to delete ALL visitor messages of a specific user. Things like that. Quote:
WHERE userid = 123 I'll be adding something to add "variables" to saved queries and so when you save a query you define the above as WHERE userid = {userid} and then you add "userid" as a variable, and then when you run the query vBulletin will ask you to fill in the variable "userid" to which you would enter "123". Long answer short: right now this, could, for example reset everyone's invitations to whatever number you wanted. (Obviously this would require the invitation mod). The key is that as it works at the moment, it can run any query which affects ALL users. |
I cant wait for this added functionality, things like deleting all users private messages etc would be awesome too. Great work :)
________ LOW COST VAPORIZER |
what about my problem :)
PHP Code:
|
1 Attachment(s)
When do you get that?
edit: that's when installing it isn't it? edit2: try using the xml in this post |
Quote:
i working in 3.8.2 |
I'm sorry but I don't understand what you said :(
On the original attachment, the install code includes charset information which I don't think should be there. The attachment in #11 does not have it, so I wanted to know if that one would work for you. I am working on 3.8.2 as well. |
Very nice...
Taged for a moment. Will be OK if you put some querries which are not default one (put some new querries). |
Updated with variables feature.
|
|
Very very nice, it works excellent, thank you :)
My wish is to have a way to edit the saved query for automatic use, without going to pma or delete the query first. Regards, Stoebi |
Been waiting for something like this! THANKS! :)
|
Quote:
Do you mean a way to edit the queries you add? |
I believe that is what he was saying. I think that would be useful, too, in case you wanted to change a stored one.
Or perhaps an option to run the current one as-in, or run with changes, which would copy the query to the box below, and allow for modifications that don't get saved. |
Very nice. Thanks a lot.
|
|
Hi :)
Thank you very much :) :) Have a MySQL Error, if i hit Save after editing my content. This is my Content: Title: Update Phrases (vbulletin) Code:
UPDATE phrase This is the error: Code:
Datenbankfehler in vBulletin 3.8.2: |
Ah that's my bad.
Re-download the 2.1 file. Should be fixed now. |
Thank you so much. Works perfectly now. :)
An idea I have. What do you think about an import/export option? Kind Regards, Stoebi |
Changed from taged to installed! :up:
Still it would be OK if someone will write here some querries that are not by default in ACP |
Thanks for the update :)
|
Very nice, thank you.
|
Nice Jod .. Thanx
*Installed soon* |
Can anyone tell me if this works on vB4?
I've been very outside the loop and I don't know if vB3 mods need to be rewritten to work in vB4. (I also don't have a vB4 forum installed, yet) |
All times are GMT. The time now is 03:57 AM. |
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:
|