Hmm .... a Query class!
That's what would be needed. Example PHP Code:
|
Quote:
|
Quote:
|
I have an addition to this tutorial:
[high]vbulletin_plugins.xml[/high] If you need to tell your users to add a lot of plugins, this will become tedious as much copy/pasting is required. A simpler way would be to use the .xml import. It works just like the importing of templates and phrases, by adding the contained code as a Plugin. The correct format for a plugin.xml file is like so (thanks to Live Wire): Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <plugin active="1"> - The 'active' attribute determines the default value of 'Plugin is Active' in the Plugin Manager. <title></title> - Self explanatory, it is the 'Title' field in the Manager. <hookname></hookname> - The 'Hook Location' you would select. <phpcode><![CDATA[ ]]></phpcode> - Anything added in the space between these is added to the 'Plugin PHP Code' part. // end my contribution (if this is being merged into the first post, nothing below this is to be included) And just for all you lazy people out there, here is an empty set, ready for copypasting into a blank xml file (only the <?xml and <plugins> tags need to be there already): Code:
<plugin active="1"> |
Quote:
|
Quote:
PHP Code:
The above is just a stupid example for you to understand better. Obviously we won't be using a echo in our hacks. |
Quote:
|
Guys (and girls) please don't use threads in the How-To's forum to say thank you or discuss things. Only post How-To's and additions to them so we can get clean instructions on how to solve problems.
|
Something that might come in handy for those developing Plugins:
In class_hook.php FIND PHP Code:
PHP Code:
|
I'm trying to get a handle on these hooks. What if you want to write custom code and just hook it into opening a new pm, or starting a new thread. How would that work?
Also is there a difference between a Plug-In and a Hook or are they the same thing? |
All times are GMT. The time now is 09:09 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|