Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-18-2005, 04:35 PM
Sykoi Sykoi is offline
 
Join Date: Dec 2004
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Complete list of functions?

Is there a complete list of vBulletin's functions, with a brief overview of how to use them anywhere (Outside looking through the thousands of lines of code)?

I can't seem to find anything, and I really need to (Soon), so I can convert my board's older hacks to 3.5.

Thanks if anyone can help, vBulletin is great minus its support for new forum hackers (Then again, I have yet to find one forum that lists all of its functions in an easy-to-find area)
Reply With Quote
  #2  
Old 06-20-2005, 09:30 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, actually i don't have a list here, but it's not that hard.

just write a little php script which includes EVERY functions_ file of vb, and then use the php function get_defined_functions(), which will return an array containing all the functions defined
Reply With Quote
  #3  
Old 06-20-2005, 12:46 PM
Sykoi Sykoi is offline
 
Join Date: Dec 2004
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, but theres still two more problems that can't be solved with a simple function

1. Listing the variables used in vBulletin (get_defined_vars returns an insanely long number of already-defined variables which is a VERY long list (Since a lot of usernames and forum descriptions are defined there))
2. Getting the list of arguments (func_get_args can only be used inside the function itself)

Thanks for pointing out that function for me, I wrote a simple little script to show all of the functions:
PHP Code:
<?php
require_once('./global.php');
if (
$handle opendir('./includes')) {
   while (
false !== ($file readdir($handle))) {
       if (
$file != "." && $file != ".." && $file != "cron" && $file != "index.html") {
            require_once(
'./includes/'.$file);
        }
   }
}
$functions get_defined_functions();
for (
$i 0$i <= count($functions['user']); $i++) {
    print 
$functions['user'][$i];
    print 
"<br>";
}
?>

If I can get a complete list of functions, variables, and arguments I may write a reference manual for myself and put it online somewhere... I'm sure many more hacks would pop up if there was proper documentation


Update: Fixed the script so it includes all files in ./includes/
Reply With Quote
  #4  
Old 06-20-2005, 03:11 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

with vb3.5. phpdoc is used, which should make such things easier in the future
Reply With Quote
  #5  
Old 06-20-2005, 03:15 PM
Sykoi Sykoi is offline
 
Join Date: Dec 2004
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xenon
with vb3.5. phpdoc is used, which should make such things easier in the future
Is there a phpdoc readily available right now?
What about one for 3.0.7? I don't really want to update til its out of beta :P
Reply With Quote
  #6  
Old 06-20-2005, 03:18 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nope 30x doesn't make use of phpdoc

35x does already, but as you said, it is still a beta and everything can still change
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 10:13 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.03718 seconds
  • Memory Usage 2,211KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete