vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Complete list of functions? (https://vborg.vbsupport.ru/showthread.php?t=83344)

Sykoi 06-18-2005 04:35 PM

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)

Xenon 06-20-2005 09:30 AM

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 :)

Sykoi 06-20-2005 12:46 PM

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/

Xenon 06-20-2005 03:11 PM

with vb3.5. phpdoc is used, which should make such things easier in the future :)

Sykoi 06-20-2005 03:15 PM

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

Xenon 06-20-2005 03:18 PM

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


All times are GMT. The time now is 07:07 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.00952 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete