Version: 1.5.0, by thincom2000
Developer Last Online: Sep 2022
Category: Add-On Releases -
Version: 3.6.x
Rating:
Released: 03-25-2007
Last Update: 07-26-2007
Installs: 14
Uses Plugins
Code Changes Additional Files
No support by the author.
CES Pre-Process Hooks
Version: 1.5.0
*** NEWS ***
7/27/2007 - v1.5.0 released
6/4/2007 - v1.4.0 released
4/2/2007 - v1.3.0 released
3/30/2007 - v1.2.0 released
3/26/2007 - v1.1.0 released
3/25/2007 - v1.0.0 released
Known Issues:
- none
What It Does:
This will contain useful additional hooks that Jelsoft should definitely add for the next release.
Products to Install: 1 Plugins Included: 0 Files to Upload: 1 Files to Edit: 6- New Templates: 0 Template Edits: 0
Hooks Included:
If you make suggestions I will look into other locations. Please note: You do not have to install all the hooks and edit all 6 files. Only install the ones you need as you need them or other hacks require them.
SHOWTHREAD PRE-PROCESS
This hook will provide an extra location for pre-processing data from the showthread query. Coders can now JOIN data that would multiply other fields in the query, without worrying about duplicating posts. Note: While this is useful, forums that display large numbers of posts per page may notice an increase in load times.
FORUMDISPLAY PRE-PROCESS
This hook will provide an extra location for pre-processing data from the forumdisplay threads query. Coders can JOIN without fear of multiplying thread results.
FORUMHOME_FORUMUSERS_QUERY
This hook allows the modification of the query that fetches active user info on forum home.
FORUMHOME_FORUMUSERS_PROCESS
This hook allows the usage of the modified query results on forum home.
NAVBITS_START
This hook allows initialization of variables, etc. before modifying navbits in the navbits or navbits_complete hooks.
VERIFY_ID_START
This hook allows a modification to bypass various id checks when more complex verification is necessary (e.g. fetching thread info by title rather than id).
VERIFY_ID
This hook allows for complex verification in the default case. Verification should happen here, and the variable $verify_id_return be set to true if successful.
MEMBER_MEMBERGROUPS
Allows processing of the membergroup array before generating the membergroup bits on a user's profile.
INLINEMOD_ACTION_SWITCH_START
Allows modification and pre-processing of $_REQUEST vars before entering the $_POST switch.
*** Changelog *** As of Version 1.5.0:
- added MEMBER_MEMBERGROUPS
- added INLINEMOD_ACTION_SWITCH_START
- changed NAVBITS_START location
As of Version 1.4.0:
- added NAVBITS_START
- added VERIFY_ID_START
- added VERIFY_ID
As of Version 1.3.0:
- added FORUMHOME_FORUMUSERS_QUERY
- added FORUMHOME_FORUMUSERS_PROCESS
- disambiguated final showthread.php edit
As of Version 1.2.0:
- much simpler file edit code
- fixed bug where only the first post would show when
SHOWTHREAD_PREPROCESS is disabled
- added FORUMDISPLAY_PREPROCESS
As of Version 1.1.0:
- added product with settings for turning pre-process loops on & off
- updated file edits
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I finally made another update to this hack. Three more hooks are included in this build, 3 hooks that I was extremely disappointed weren't in vBulletin 3.6.6. The edits for the new hooks are simple (just find & add).
Maybe a stupid question but do i have to edit 6 core files or does the product take care of this?
If i have to edit the files manually, where do i add the lines in the files?
Bit confused.
Yeah, I actually didn't clarify that in the readme until this most recent version, when some people complained that other hacks required this to be installed and it took a while to make all the file edits. Meanwhile, the hack that used these hooks only really needed 1 or 2 to work.
Strange. Here they are, from my dev copy of the readme. I actually plan to release an update in the next few days, since I have decided to add/drop support for some hooks.
Code:
************* INLINEMOD ACTION SWITCH START ****************
Installing these hooks do not add any new loops to inlinemod.php,
so settings have not been included to disable these hooks.
Thanks to vBulletin 3.7, security was increased on inlinemod, so
we can be a little more at ease about this hook. Still, exercise
caution about the variables you modify here.
In inlinemod.php, find:
------------------------------
switch ($_POST['do'])
------------------------------
Add above:
------------------------------
($hook = vBulletinHook::fetch_hook('inlinemod_action_switch_start')) ? eval($hook) : false;
------------------------------