Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
CES Pre-Process Hooks Details »
CES Pre-Process Hooks
Mod Version: 1.5.0, by thincom2000 (Coder) thincom2000 is offline
Developer Last Online: Oct 2019 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.x Rating: (0 vote - 0 average) Installs: 12
Released: 25 Mar 2007 Last Update: 27 Jul 2007 Downloads: 144
Supported Uses Plugins Code Changes Additional Files  

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

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 26 Mar 2007, 05:54
thincom2000 thincom2000 is offline
 
Join Date: Jun 2006
Real name: Ted
I just thought that large boards or boards with long showthread pages (50+ posts per page) may want to disable certain hooks depending on certain conditions.

I will update this hack later in the day with a product that will contain options to disable certain hook locations, and updated file edits for these options. Hold off before downloading.
Reply With Quote
  #3  
Old 26 Mar 2007, 07:30
Atakan KOC's Avatar
Atakan KOC Atakan KOC is offline
 
Join Date: Feb 2006
Real name: Atakan KOÇ
Thanks....
__________________
vBulletin 5 : http://www.atabb.com/
Reply With Quote
  #4  
Old 26 Mar 2007, 17:10
CaGo CaGo is offline
 
Join Date: Jul 2006
thanks thincom
Reply With Quote
  #5  
Old 26 Mar 2007, 21:36
kaptanblack's Avatar
kaptanblack kaptanblack is offline
 
Join Date: Mar 2007
Thanks....
Reply With Quote
  #6  
Old 01 Apr 2007, 10:48
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
I'm having a hard time understanding what this does exactly? I found this link from your other querrie mod. It requires this one to be installed first. So could you please explain in stupid people talk what exactly this does and how it benefits a forum when installed. Thank you very much.
Reply With Quote
  #7  
Old 01 Apr 2007, 10:59
ilydgn ilydgn is offline
 
Join Date: Apr 2006
thanks
Reply With Quote
  #8  
Old 01 Apr 2007, 19:31
thincom2000 thincom2000 is offline
 
Join Date: Jun 2006
Real name: Ted
Originally Posted by rjmjr69 View Post
I'm having a hard time understanding what this does exactly? I found this link from your other querrie mod. It requires this one to be installed first. So could you please explain in stupid people talk what exactly this does and how it benefits a forum when installed. Thank you very much.
It basically just adds more hook locations for plugins to use (more to come - as you see I recently found two helpful spots in index.php). The mod requires it because one or more of its plugins use these hooks. This mod on its own doesn't really do anything else, except let you disable those hooks individually instead of having to disable the entire plugin/hook system.
Reply With Quote
  #9  
Old 04 Apr 2007, 01:06
butty butty is offline
 
Join Date: Nov 2001
when editing showthread.php mate this bit

Next find:
-----------------------------
$postarray["$post[postid]"] = $post;
-----------------------------

Add above:
-----------------------------
if ($vbulletin->options['showthread_preprocess_on'])
{
$prosts =& $post;

($hook = vBulletinHook::fetch_hook('showthread_preprocess')) ? eval($hook) : false;
}

there is 2 instances of $postarray["$post[postid]"] = $post; when i search which one is it?
Reply With Quote
  #10  
Old 04 Apr 2007, 02:14
thincom2000 thincom2000 is offline
 
Join Date: Jun 2006
Real name: Ted
Sorry, it's the second one. The first will probably give you errors.

I updated the readme in the zip file to reflect this, as well as added two more hooks.

Last edited by thincom2000; 04 Apr 2007 at 02:37.
Reply With Quote
  #11  
Old 04 Jun 2007, 06:18
thincom2000 thincom2000 is offline
 
Join Date: Jun 2006
Real name: Ted
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).

They are:
NAVBITS_START
VERIFY_ID_START
VERIFY_ID
Reply With Quote
  #12  
Old 28 Jul 2007, 13:39
993ti 993ti is offline
 
Join Date: Dec 2005
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.
__________________
Twenteracingscene - Dutch car club (VB), Aibo forum (VB)
Streetcars (VB),
Reply With Quote
  #13  
Old 28 Jul 2007, 16:36
993ti 993ti is offline
 
Join Date: Dec 2005
I should stop drinking too much coffee and read better....
Found it
__________________
Twenteracingscene - Dutch car club (VB), Aibo forum (VB)
Streetcars (VB),
Reply With Quote
  #14  
Old 28 Jul 2007, 18:25
thincom2000 thincom2000 is offline
 
Join Date: Jun 2006
Real name: Ted
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.
Reply With Quote
  #15  
Old 22 Feb 2008, 19:35
thincom2000 thincom2000 is offline
 
Join Date: Jun 2006
Real name: Ted
I'm going to start posting these hooks in the Hook Request thread over at vb.com now that I found it.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 15:59.

Layout Options | Width: Wide Color: