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
  #2  
Old 03-26-2007, 04:54 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 03-26-2007, 06:30 AM
Atakan KOC's Avatar
Atakan KOC Atakan KOC is offline
 
Join Date: Feb 2006
Location: Istanbul
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks....
Reply With Quote
  #4  
Old 03-26-2007, 04:10 PM
CaGo CaGo is offline
 
Join Date: Jul 2006
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks thincom
Reply With Quote
  #5  
Old 03-26-2007, 08:36 PM
kaptanblack's Avatar
kaptanblack kaptanblack is offline
 
Join Date: Mar 2007
Location: Turkey
Posts: 397
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks....
Reply With Quote
  #6  
Old 04-01-2007, 09:48 AM
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Location: Southie
Posts: 876
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 04-01-2007, 09:59 AM
ilydgn ilydgn is offline
 
Join Date: Apr 2006
Location: Germany
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks :up:
Reply With Quote
  #8  
Old 04-01-2007, 06:31 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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-04-2007, 12:06 AM
butty butty is offline
 
Join Date: Nov 2001
Location: manchester, uk
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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-04-2007, 01:14 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 07:17 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07414 seconds
  • Memory Usage 2,292KB
  • Queries Executed 25 (?)
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_quote
  • (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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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