The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
This work might be useless, and it might be difficult to understand it - but I wanted to give it a shot at least
![]() We all know that is is difficult (and in most cases not possible) to modify queries through Plugins. IMHO this is a major problem for many hacks, and thus they will rely on file edits. Therefore, my idea was to create a Query Class to be able to manipulate queries. I did that ... but the class isn't fully implemented yet, nor optimized or anything. Consider it proof-of-concept code or a tech-demo. I took forumdisplay.php as an example and replaced all queries with this class. As there are many changes the instructions would become quite long and complicated, therefore I just created a unified diff file you can apply to an unmodified vBulletin 3.5.0 Beta 1 forumdisplay.php "Installation instructions" Upload class_query.php to folder includes. Execute Code:
patch<forumdisplay.patch Then upload the patched forumdisplay.php In order to use the new Hooks, you must add the following entries to hooktype forumdisplay in file includes/xml/hooks_vbulletin.xml: Code:
<hook>query_forumread_update</hook> <hook>query_forumusers</hook> <hook>query_announcements</hook> <hook>query_threadscount</hook> <hook>query_stickies</hook> <hook>query_getthreadids</hook> <hook>query_threads</hook> ![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|