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
  #2  
Old 10-01-2012, 03:59 AM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oops, I forgot to upload the product file. Now it's there. (It's been a long day!)
Reply With Quote
  #3  
Old 10-01-2012, 10:02 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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!
The mod is a nice addition but your ego and arrogant attitude leave much to be desired.
Reply With Quote
Благодарность от:
nacaruncr
  #4  
Old 10-01-2012, 10:36 PM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh c'mon, where's your sense of humor?
Reply With Quote
  #5  
Old 10-01-2012, 11:28 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

He's Bart S. Did you expect anything less?
Reply With Quote
  #6  
Old 10-02-2012, 05:42 AM
qpurser qpurser is offline
 
Join Date: Jul 2011
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you.
Don't let stupid comments discourage from writing helpful mods to make our life easier.
And YES I am one of those who is not as organized as he should be.

I will test it on my test server and give feedback.

Thanks
Michael
Reply With Quote
  #7  
Old 10-02-2012, 06:30 AM
qpurser qpurser is offline
 
Join Date: Jul 2011
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok. Just installed it.
Uploaded the 2 files in the appropriate folders.
Imported the product.

Both links show up in my adminCP but there is something wrong I guess.
No matter if I click on "Hook Finder" or "Function Finder" both go the same page "Search for functions". The "Search for Hooks" doesn't show up.

I noticed when I hover over the options in the adminCP each show something different.
Links are showing like: "function_finder.php?do=functions" and "function_finder.php?do=hooks"
but as mentioned they both go to the "search function" page
Reply With Quote
  #8  
Old 10-02-2012, 09:33 AM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just uploaded an improved version of function_finder.php. I tidied up some styling problems and worked out some compatibility problems with IE. The scrolling to position in the file display should work better now.

Quote:
Originally Posted by qpurser View Post
ok. Just installed it.
Uploaded the 2 files in the appropriate folders.
Imported the product.

Both links show up in my adminCP but there is something wrong I guess.
No matter if I click on "Hook Finder" or "Function Finder" both go the same page "Search for functions". The "Search for Hooks" doesn't show up.

I noticed when I hover over the options in the adminCP each show something different.
Links are showing like: "function_finder.php?do=functions" and "function_finder.php?do=hooks"
but as mentioned they both go to the "search function" page
That's strange. Maybe it will work with the new file. Everything's working for me and I uploaded the files straight off the server.
Reply With Quote
  #9  
Old 10-02-2012, 09:43 AM
qpurser qpurser is offline
 
Join Date: Jul 2011
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nerbert View Post
I just uploaded an improved version of function_finder.php. I tidied up some styling problems and worked out some compatibility problems with IE. The scrolling to position in the file display should work better now.

That's strange. Maybe it will work with the new file. Everything's working for me and I uploaded the files straight off the server.
I replaced the function_finder.php with the new one and now it works perfect.
Also I noticed the improvement with the styling

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

Quote:
Originally Posted by qpurser View Post
I replaced the function_finder.php with the new one and now it works perfect.
Also I noticed the improvement with the styling

Thanks
This is a real mystery why the old file didn't work. My theory is that what I had uploaded was a very early version of the file from way back. I don't know how many times I've accidentally downloaded files when I click on a file link in cPanel. 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.
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 06:47 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.04673 seconds
  • Memory Usage 2,339KB
  • Queries Executed 24 (?)
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
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_attachment
  • (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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • 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
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete