Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
vB4 Hook Locations
Eric
Join Date: May 2006
Posts: 792

Kentucky
by Eric Eric is offline 26 Nov 2009
Rating: (1 vote - 5.00 average)

These locations are as of vBulletin 4 Beta 4 vBulletin 4.0.2, and will be updated as necessary.



Template Hooks

This list was generated by the following command using /install/vbulletin-style.xml:

For new style hooks:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

To find any old:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



PHP/File Hooks

This list was generated by the following command while in the vB 4 root upload folder:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It is output in the format of: ./{filename}:fetch_hook({hook})

The list is attached, as it is way too long to post here.
Attached Files
File Type: txt hooks.txt (61.0 KB, 537 views)

Last edited by Eric; 28 May 2011 at 20:55..
Views: 13143
Reply With Quote
Comments
  #2  
Old 26 Nov 2009, 23:47
Zaiaku's Avatar
Zaiaku Zaiaku is offline
 
Join Date: Jul 2007
Just the thing I was looking for. TY
__________________
Live everyday as if it was your last, because one day it just may be.
Reply With Quote
  #3  
Old 27 Nov 2009, 05:53
ragtek's Avatar
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
Originally Posted by SecondV View Post
It is output in the format of: {filename}:{hook}
That's not correct.

The format is
./usernote.php:fetch_hook('usernote_start')
what means

.({filename}:fetch_hook{hook}

so you should maybe delete the .( and fetch_hook


Also what's the benefit from this lists?
How should they make the developer's life easier?*g*
__________________
my addons: http://ragtek.github.com
Reply With Quote
  #4  
Old 27 Nov 2009, 09:38
mrpaint's Avatar
mrpaint mrpaint is offline
 
Join Date: Sep 2004
Real name: Dao Hoang Son
For plugin hooks, why don't just open includes/hooks_vbulletin.xml? I always look for useful hooks from that file and guess the script where that hook should be placed. Or, of course, do a quick file search if no guessing matched
Reply With Quote
  #5  
Old 28 Nov 2009, 02:32
ragtek's Avatar
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
You also see them on the pluginspage(if they are "registered in the hook xml file
__________________
my addons: http://ragtek.github.com
Reply With Quote
  #6  
Old 30 Nov 2009, 19:26
BBR-APBT's Avatar
BBR-APBT BBR-APBT is offline
 
Join Date: Feb 2009
Nice List this has came in handy a few times.
Reply With Quote
  #7  
Old 04 Mar 2010, 06:57
arvid arvid is offline
 
Join Date: May 2003
Real name: Arvid Björkström
Is there any easy way to find out in what order the hooks are executed for a certain page? Sure I can activate debug mode, but that just shows me the hooks that are active and called, not all of them.

(Debug mode is activated by inserting the following in config.php)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #8  
Old 18 May 2010, 13:45
fabioski fabioski is offline
 
Join Date: Dec 2007
Which is the hook location for a plugin that send output for:
ad_showthread_firstpost template?
Reply With Quote
  #9  
Old 07 Jun 2010, 23:28
encryption's Avatar
encryption encryption is offline
 
Join Date: Sep 2005
Does anybody know the hook location for adding a field to the newthread template form?
__________________
www.MJWebhosting.com - (Vbulletin Forum Hosting, free migrations and free vb upgrades)
www.MercuryServer.com - (Our vBulletin forum Managed & hosted by MJWebhosting)
Reply With Quote
  #10  
Old 28 Aug 2012, 19:07
ChiNa ChiNa is offline
 
Join Date: Jul 2012
Real name: CM
Thanks you so much, this is so far my favorit... Need this for creating..
__________________
I am having a little break from vB Developing. I am trying to finish my PHP and MYSQL courses for now. I will answer all my PM's if anyone needed help for my products, but only when I can be online on vB.org. Its great to see new and old developers keeping vB.org alive! Thank you all for your support!CM
Reply With Quote
  #11  
Old 12 Nov 2012, 19:55
tommythejoat's Avatar
tommythejoat tommythejoat is offline
 
Join Date: Apr 2008
Real name: Tom McIntyre
I have tried every reasonable hook for an automatic login of an externally authenticated user and they all either crash the system or fall into a login_redirect loop.

Global_complete worked under 3.8 but I have not been able to get this to work at all under V4+.

The desired behavior is that when someone navigates to the site (by any means) their authentication cooky is seen and then validated to be still active by the foreign authentication server and then they are logged in without needing to click on any buttons or links.

I have been working on this for over 6 months now off and on.

---------------------------------------------------------------------------------------

And finally this afternoon, I noticed that bbsessionshash was now bb_sessionhash. Did I edit the prefix when I installed v4 or did vB contribute the underscore.

Last edited by tommythejoat; 12 Nov 2012 at 20:27. Reason: It is fixed now.
Reply With Quote
  #12  
Old 12 Nov 2012, 20:47
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
The session cookie (and others) changed to gain the underscore in vB 4.0.1 or 4.0.2, I dont recall which. Interestingly, it gets removed again in vB5,
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #13  
Old 16 Feb 2013, 22:05
hugh_ hugh_ is offline
 
Join Date: Mar 2005
Thought this might be worth updating...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article 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 13:55.

Layout Options | Width: Wide Color: