Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-09-2020, 01:52 PM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Old Vb Settings for config file

Found this settings file on my external D. I cant' remember if it was for vb 3 or 4 and what setting I had to be careful of.

Code:
// Force all userinfo queries to include avatar information. This can be used to show the browsing user's avatar in the navbar, for example.
//define('AVATAR_ON_NAVBAR', 1);

// Skip check for install and tools files. Potential security risk! If you define this, vBulletin won't show the normal error that you get when you have not yet deleted the tools.php and installation files.
//define('BYPASS_FILE_CHECK', 1);

// Set whether or not vBulletin is running in demo mode
//define('DEMO_MODE', 1);

// Use this to unconditionally disable all hooks/plugins/products on vBulletin. Useful for debugging or for fixing broken boards.
//define('DISABLE_HOOKS', 1);

// Force hooks to be used, even if they are not enabled in the settings. DISABLE_HOOKS (above) overrides FORCE_HOOKS
//define('FORCE_HOOKS', 1);

// Good for test boards. This unconditionally disables all emails that vBulletin might have tried to send.
//define('DISABLE_MAIL', 1);

// Define this if you don't want the password in the login box to be zapped onsubmit. This is useful for integrating vBulletin with other software when you want the user's password to be submitted // in plaintext instead of MD5'd.
//define('DISABLE_PASSWORD_CLEARING', 1);

// Do not redirect/reload the ACP after importing a product XML file.
//define('DISABLE_PRODUCT_REDIRECT', 1);

// Send cron log entries to browser
//define('ECHO_CRON_LOG', 1);

// Windows servers may want lines delimited this way
//define('FORCE_MAIL_CRLF', 1);

// Automatic advance - enable if you want to get through upgrades quickly without reading the text
//define('HIDEPROCEED', 1);

// Secondary usergroup will not override Primary "Show on Members List" setting
//define('MEMBERLIST_INCLUDE_SECONDARY', 1);

// Set as false to disable the Javascript-based disabling of criteria in the notice add/edit code
//define('NOTICE_CRITERIA_JS', 0);

// Disable javascript progress meter in ACP
//define('NO_IMPORT_DOTS', 1);

// Use explain syntax for sql queries; good for checking during optimization
//define('POST_EXPLAIN', 1);

// Don't use a vBulletin database connection; good for integration if your CMS has it's own DB suite
//define('SKIPDB', 1);

// Reduces the number of cookie headers returned - IIS might run better.
//define('SKIP_AGGRESSIVE_LOGOUT', 1);

// Skip check of Post requests against the referrer domain whitelist. Potential security risk!
//define('SKIP_REFERRER_CHECK', 1); 

//define('CSRF_SKIP_LIST', 'postnews');
//Skip the CSRF check when($_POST['postnews'] == 'postnews')

define('CSRF_PROTECTION', true);
//Enable the CSRF PROTECTION for the current script.

define('THIS_SCRIPT', 'index');
//Very apparent constant, useful to run some scripts based on the script being used.
//Ex: caching some templates for certain script instead of caching them for every page, this will help to reduce the memory usages.
//And many many possible usages.

//define('NOPMPOPUP', true);
//Disable the PM pop up dialogue.

//define('SESSION_BYPASS', true);
//Don't update the lastactivity or lastvisit fields for the current logged in user.

//define('LOCATION_BYPASS', true);
//Don't register where is the user (in which forum or thread etc).

//define('NOCOOKIES', true);
//Don't send any cookies.

//define('SKIP_REFERRER_CHECK', true);
//Don't check the referrer website, this will help to accept post requests from other websites.
Reply With Quote
2 благодарности(ей) от:
Dr.CustUmz, z3r0
  #2  
Old 06-07-2020, 12:31 AM
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Location: USA
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This should be an article and quick glimpse looks like these will work with vB3 (may be for both versions?) Thanks for the share, some settings I didnt know about ^^

added ****

why would you use
Code:
define('THIS_SCRIPT', 'index');
in the config file? lol
Reply With Quote
  #3  
Old 06-07-2020, 12:40 PM
PinkMilk PinkMilk is offline
 
Join Date: May 2010
Location: Earth
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dr.CustUmz View Post

why would you use
Code:
define('THIS_SCRIPT', 'index');
in the config file? lol
No mention of config only settings, meaning its just a reference file with misc settings in :up:
Reply With Quote
  #4  
Old 06-07-2020, 01:04 PM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dr.CustUmz View Post
This should be an article and quick glimpse looks like these will work with vB3 (may be for both versions?) Thanks for the share, some settings I didnt know about ^^

added ****

why would you use
Code:
define('THIS_SCRIPT', 'index');
in the config file? lol
I don't remember where i got this from. but those were the settings provided if i remember correctly for vb3.
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:22 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.03847 seconds
  • Memory Usage 2,204KB
  • 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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (2)post_thanks_box_bit
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • 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
  • 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