Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
CES Pre-Process Hooks Details »»
CES Pre-Process Hooks
Version: 1.5.0, by thincom2000 thincom2000 is offline
Developer Last Online: Sep 2022 Show Printable Version Email this Page

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.

Comments
  #12  
Old 06-04-2007, 05:18 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #13  
Old 07-28-2007, 12:39 PM
993ti 993ti is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 07-28-2007, 03:36 PM
993ti 993ti is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I should stop drinking too much coffee and read better....
Found it
Reply With Quote
  #15  
Old 07-28-2007, 05:25 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #16  
Old 02-22-2008, 06:35 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #17  
Old 03-26-2008, 08:38 PM
fredang85 fredang85 is offline
 
Join Date: Sep 2007
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

INLINEMOD_ACTION_SWITCH_START

In the readme, I don't find instructions for this. Why is that so?
Reply With Quote
  #18  
Old 03-26-2008, 09:22 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
------------------------------
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 02:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04474 seconds
  • Memory Usage 2,272KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete