Description: This Hack Adds a Quick Web Search to your AdminCP. Right now it supports Google, Yahoo, Ask Jeeves, and MSN. You may disable any of those in vBulletin Options under Admin Control Panel Options.
I am sure someone knows how to make a query that works, but I have too little time right now to try things out on a fresh install.
Basicly, if you want this right now and don't want to wait for someone to update the product .xml with install/uninstall query & settings turn on debug code and go to the vbulletion options > admincp options > and click on 'add a new setting', and fill it in like the below screenshot.
Then import the .xml from this .zip which is ready for the switch 1/0
Hmm ... what should I know?
Don't really understand what you were talking about queries, sorry.
This Hack does not seem to need any install/uninstall codes?
Also, I think that a setting to turn this featurs On/Off is redundant - one could just activate/deactivate the product?
Hmm ... what should I know?
Don't really understand what you were talking about queries, sorry.
This Hack does not seem to need any install/uninstall codes?
Also, I think that a setting to turn this featurs On/Off is redundant - one could just activate/deactivate the product?
Then we'll leave the on/off option out.
But to teach derek and others, what would those queries be?
Which queries, for the setting?
None at all - Product Management does take care of it
One would only have to wrap the Code in
PHP Code:
if ($vbulletin->options['use_web_search'])
{
// Code here
}
But as said, that just seems to be redundant
Yes, whatever you think if it is redundant or not is not the point here. I am just trying to understand how the product.xml will look if we would want a vbulletin options setting for the group admincp - the code you gave won't make a magic option appear out of thin air in the admin option group. How does it get there? the product.xml only has means like this:
but that is just telling it what to use.. it still won't generate the option, why ? .. because you dont tell it what the title or description would be for example.. or where it stores a value, what value, etc..
For that, a query has to be run, like shown on the screenshot you can enter that manually with running in debug, add setting .. but the product can have this in the <code> part for install & uninstall code. That's the query I am trying to understand how to figure that out.
Adding the setting in the admincp through debug and then going to the product > export > .. won't make that appear in the .xml
Floris, the product XML you posted here contains everything to make the setting appear.
All settings are stored in table setting, column value - each setting is identified by its Varname.
Title and Description are just Phrases, and those are in the Product XML as well.
So I don't really understand what you are talking about queries?
Also, please don't get me wrong on the redundant stuff.
I didn't want to argue, I just wanted to point this out, as others might not think of the possibility to just disable the product.
Floris, the product XML you posted here contains everything to make the setting appear.
All settings are stored in table setting, column value - each setting is identified by its Varname.
Title and Description are just Phrases, and those are in the Product XML as well.
So I don't really understand what you are talking about queries?
Also, please don't get me wrong on the redundant stuff.
I didn't want to argue, I just wanted to point this out, as others might not think of the possibility to just disable the product.