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

Reply
 
Thread Tools
Search for and Find Functions and Hooks in Admin CP (vB3, vB4) Details »»
Search for and Find Functions and Hooks in Admin CP (vB3, vB4)
Version: 1.10, by nerbert nerbert is offline
Developer Last Online: Aug 2017 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.1.12 Rating:
Released: 09-30-2012 Last Update: 10-01-2012 Installs: 9
Re-useable Code Additional Files Translations  
No support by the author.

Notice:

If you uploaded the original version of this product you will have to replace function_finder.php. The version you have is a very old one from when I was developing this. Lots of styling and phrase problems and it won't find all the functions. Upload the new version and click the link at the bottom of the File Finder page to rebuild the function list.

Sorry for the mistake!


General:

Before I began making modifications for vBulletin I read through all the files and memorized all the functions and hooks, their names and locations. It was a rather tedious evening but well worth it in the long run. I know most of you aren't as organized and dedicated as I am, so I built you a product for locating functions and hooks, I hope you appreciate it; it took me over an hour to build!


How it works:

The first time you open either the Function Finder or the Hook Finder in the Plugin & Products group the product reads through all the files using regular expressions to locate functions and hooks, When one is found it records the file and line number along with the name and concatenates it into a string which is stored in filelist.php or hooklist.php, which it creates in the includes folder. When you type in a function name, partial or complete, it uses regular expressions to locate the function (or hook) in the created files. You can search functions by function name or file name or both. Wildcard searches can also be done. Similarly you can search for hooks by file name or use the select menu (just like in the New Plugin page) to locate them. Once you click on the link of matches the entire file is displayed in a new window with the appropriate lines marked and the file scrolled into position. If you've changed any of the files, added files or upgraded you can rebuild filelist.php and hooklist.php with the links at the bottom of the pages. The pictures tell it all.


Installation:

I didn't zip the files so all you have to do is upload them directly to the appropriate folders. function_finder.php goes in forum/admincp and cpnav_function_finder.xml goes in forum/includes/xml. Then upload the product file in Products.

Let me know if you have any problems.

Download Now

File Type: xml cpnav_function_finder.xml (482 Bytes, 44 views)
File Type: xml product-function_finder.xml (7.4 KB, 40 views)
File Type: php function_finder.php (15.9 KB, 36 views)

Screenshots

File Type: png ff_funcfinder.png (39.6 KB, 0 views)
File Type: png ff_funcmatches.png (41.6 KB, 0 views)
File Type: png ff_findhook.png (40.3 KB, 0 views)
File Type: png ff_func.png (51.9 KB, 0 views)
File Type: png ff_error.png (46.8 KB, 0 views)
File Type: png ff_hook.png (52.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-02-2012, 10:38 AM
qpurser qpurser is offline
 
Join Date: Jul 2011
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nerbert View Post
Would you test something for me? Try searching for "print_cp_footer" and see if you have any matches. If it's the old junker file it won't find it because a regular expression was not quite right. If you don't find it you will have to rebuild filelist.php with the link at the bottom of the page.
First it didn't find the function but after rebuilding the file list.php I got the following result:
Line 418 includes/adminfunctions.php
Reply With Quote
  #13  
Old 10-02-2012, 11:33 AM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by qpurser View Post
First it didn't find the function but after rebuilding the file list.php I got the following result:
Line 418 includes/adminfunctions.php
That means it was the old junker. That thing had a lot of problems from when I was developing it. I hope all the people who uploaded it check back and get the new file. I'm glad you pointed that out.
Reply With Quote
  #14  
Old 10-02-2012, 03:51 PM
Leica.Robbiani Leica.Robbiani is offline
 
Join Date: Sep 2007
Location: South Germany
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,

seems to work a little bit better than it should. Searching for a function shows the result twice.

Best regards

L.R.
Reply With Quote
  #15  
Old 10-02-2012, 04:59 PM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, two for the price of one and the first one was free! Can't go wrong with that.

What you're seeing are different methods in different classes but sharing the same name. Try "print_editor_form" for example. There are multiple results but in various classes. If you don't understand object oriented programming, welcome aboard -- I barely understand it myself.
Reply With Quote
  #16  
Old 10-02-2012, 05:09 PM
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is so useful when developing a mod, thanks for this! I'll install it ASAP in my test board, tagged!
Reply With Quote
  #17  
Old 10-02-2012, 05:39 PM
Leica.Robbiani Leica.Robbiani is offline
 
Join Date: Sep 2007
Location: South Germany
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,

Quote:
Originally Posted by nerbert View Post
What you're seeing are different methods in different classes but sharing the same name. Try "print_editor_form" for example. There are multiple results but in various classes.
Ok, I tried "print_editor_form". Below "Function Name (click to view)" I see:

"No Matches Found"

When I try "track_blog_visit" I get (see screenshot):

Attachment 141544

Best regards

L.R.
Reply With Quote
  #18  
Old 10-02-2012, 05:56 PM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's strange. What version of vBulletin are you using? Maybe "print_editor_form" is in vB4 and you're using vB3?

Does it do that with every thing you try?
Reply With Quote
  #19  
Old 10-02-2012, 06:12 PM
Leica.Robbiani Leica.Robbiani is offline
 
Join Date: Sep 2007
Location: South Germany
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,

I'm using vB 4.2.0.

The thing in the screenshot I see everytime a function is found.

Best regards

L.R.
Reply With Quote
  #20  
Old 10-02-2012, 06:17 PM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had that happen in an earlier version of function finder and then after changing some things the problem went away and I thought it was fixed. Can you rebuild functionlist.php and before you try anything, record and post the data at the top of the frame? I don't need the path value. I had about 5800 functions as best I can recall.
Reply With Quote
  #21  
Old 10-02-2012, 09:06 PM
Leica.Robbiani Leica.Robbiani is offline
 
Join Date: Sep 2007
Location: South Germany
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,

yeah, well. I'v read your instructions how to rebuild the file functionlist.php, if you mean with filelist.php the same file. Then there is another problem. I don't have any link to rebuild the file.

Quote:
I know most of you aren't as organized and dedicated as I am
Nothing against you, I know you do your best, but please check this out.

Best regards

L.R.
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 12:00 AM.


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.16171 seconds
  • Memory Usage 2,347KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete