Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 05-27-2005, 06:10 AM
TitanKing TitanKing is offline
 
Join Date: Mar 2005
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default What classes/functions Vbulletin uses ?

Hello people from all over the World, I was wondering if someone could point me in the right direction, I am looking for custom classes and functions used in vbulletin for my upcoming hack (Im trying to anyhows). Like look at how cool the $DB_site->query class works, where can I get a list of more such cool classes and functions vbulletin created to make life easier ? Thanks in advanced and sorry if I missed something, I have been searching allot...

Oops wrong place posted in, moderators would you please move this thread to the correct section... sorry bout it...
Reply With Quote
  #2  
Old 05-30-2005, 01:10 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Take a look at the files in folder includes
Reply With Quote
  #3  
Old 05-30-2005, 01:23 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok the following is for vB3.0.7. If you need a list of a specific functions_xx file just tell me.

List of functions in './includes/functions.php':
PHP Code:
addslashes_js($text$quotetype "'")
addslashes_like($text)
build_datastore($title ''$data '')
cache_permissions(&$user$getforumpermissions=true)
cache_templates($templates$templateidlist)
can_moderate($forumid 0$do ''$userid = -1$usergroupids '')
construct_forum_jump($parentid = -1$addbox 1$prependchars ''$permission '')
construct_hidden_var_fields($serializedarr)
construct_login_code()
construct_navbits($nav_array)
construct_page_nav($results$address$address2 '')
construct_phrase()
construct_post_vars_html()
construct_style_options($styleid = -1$depthmark ''$init true$quickchooser false)
convert_bbarray_cookie($cookie$dir 'get')
convert_bits_to_array(&$bitfield$_FIELDNAMES)
convert_int_to_utf8($intval)
DEVDEBUG($text '')
exec_header_redirect($url)
exec_headers($headers 1$nocache 1)
exec_mail_queue()
exec_nocache_headers($sendcontent true)
exec_shut_down()
exec_switch_bg($alternate 0)
fetch_bbarray_cookie($cookiename$id)
fetch_censored_text($text)
fetch_email_first_line_string($text)
fetch_email_phrases($email_phrase$languageid = -1$emailsub_phrase ''$varprefix '')
fetch_forum_clause_sql($forumid$field 'forumid'$joiner 'OR'$parentlist '')
fetch_forum_parent_list($forumid)
fetch_foruminfo(&$forumid$usecache true)
fetch_gzipped_text($text$level 1)
fetch_language_fields_sql($addtable 1)
fetch_membergroupids_array($user$getprimary true)
fetch_moderator_permissions($forumid$userid = -1)
fetch_musername(&$user$displaygroupfield 'displaygroupid'$usernamefield 'username')
fetch_options_overrides($userinfo)
fetch_permissions($forumid 0$userid = -1$userinfo false)
fetch_phrase($phrasename$phrasetypeid$strreplace ''$doquotes true$alllanguages false$languageid = -1)
fetch_phrase_group($groupname)
fetch_postinfo(&$postid)
fetch_query_sql($queryvalues$table$condition ''$exclusions '')
fetch_start_end_total_array($pagenumber$perpage$total)
fetch_stylevars(&$style$userinfo)
fetch_template($templatename$escape 0$gethtmlcomments 1)
fetch_threadinfo(&$threadid)
fetch_time_data()
fetch_timezone($offset 'all')
fetch_trimmed_title($title$chars = -1)
fetch_userinfo(&$userid$option 0)
fetch_word_wrapped_string($text$limit false)
file_extension($filename)
file_get_contents($filename)
globalize(&$var_array$var_names)
htmlspecialchars_uni($text)
iif($expression$returntrue$returnfalse '')
in_coventry($userid$includeself false)
init_language()
inline_mime_encode($str$encoding 'utf-8')
is_browser($browser$version 0)
is_demo_mode()
is_member_of($userinfo$usergroupid)
is_valid_email($email)
print_no_permission()
print_output($vartext$sendheader 1)
print_standard_error($err_phrase$doquery 1$savebadlocation 1)
print_standard_redirect($redir_phrase$doquery 1)
process_replacement_vars($newtext$sendheader 1)
sanitize_pageresults($numresults, &$page, &$perpage$maxperpage 20$defaultperpage 20)
set_bbarray_cookie($cookiename$id$value$permanent 0)
standard_error($error ''$headinsert ''$savebadlocation 1)
standard_redirect($message ''$url '')
strip_bbcode($message$stripquotes false$fast_and_dirty false$showlinks true)
strip_blank_ascii($text$replace)
strip_quotes($text)
unhtmlspecialchars($text$doUniCode false)
vb_number_format($number$decimals 0$bytesize false)
vb_send_mail($toemail$subject$message$header)
vbdate($format$timestamp TIMENOW$doyestoday false$locale true$adjust true$gmdate false)
vbheaders_sent(&$filename, &$linenum)
vbmail($toemail$subject$message$notsubscription false$from '' $uheaders ''$username '')
vbmail_end()
vbmail_start()
vbrand($min$max$seed = -1)
vbsetcookie($name$value ''$permanent 1)
vbstrlen($string)
vbstrtolower($string)
verify_forum_password($forumid$password$showerror true)
verify_id($idname, &$id$alert 1$selall 0$options 0)
verify_ip_ban() 
Reply With Quote
  #4  
Old 05-30-2005, 01:50 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Marco seems to have way too much time once again

The new documentation for vB 3.5 should help you out, as I think it documents most functions...
Reply With Quote
  #5  
Old 05-30-2005, 02:41 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Colin F
Marco seems to have way too much time once again

The new documentation for vB 3.5 should help you out, as I think it documents most functions...
This was 10 second work.
Reply With Quote
  #6  
Old 06-01-2005, 11:56 AM
TitanKing TitanKing is offline
 
Join Date: Mar 2005
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very very much people, I really appreciate is so flippen much. Last question does anyone have a list of the arrays/variables that is used in the Template system like for instance $thread[title] gives the title of the thread, I really appreciate all the help guys...
Reply With Quote
  #7  
Old 06-01-2005, 02:31 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope
Reply With Quote
  #8  
Old 06-01-2005, 08:22 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What are you doing, writing a hack...or some alternative messageboard system?
Reply With Quote
  #9  
Old 06-02-2005, 04:57 AM
TitanKing TitanKing is offline
 
Join Date: Mar 2005
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well basicly im actually writing a business management hack... yea well see how it comes out...
Reply With Quote
Reply

Thread Tools
Display Modes

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:03 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.04357 seconds
  • Memory Usage 2,293KB
  • Queries Executed 11 (?)
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
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete