This thread is a discussion for the wiki article: Hidden Configuration Variables
   
 
Hidden Configuration Variables
Posted: 28 August 2008 02:17 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  141
Joined  11-19-2007

Quick question:

Should these $conf[] lines be added to the system/config.php? Can there be comments within config.php?

example:

<?php

if ( ! defined('EXT')){
exit('Invalid file request');
}

$conf[
'app_version'] = "164";
$conf['license_number'] = "xxxx-xxxx-xxxx-xxxx";
$conf['debug'] = "0";
$conf['install_lock'] = "1";
$conf['db_hostname'] = "localhost";
$conf['db_username'] = "username";
$conf['db_password'] = "***********";
$conf['db_name'] = "dbname";
$conf['db_type'] = "mysql";
$conf['db_prefix'] = "exp";
$conf['db_conntype'] = "0";
$conf['system_folder'] = "system";
$conf['cp_url'] = "http://domain.com/ee/system/index.php";
$conf['doc_url'] = "http://expressionengine.com/docs/";
$conf['is_system_on'] = "y";
$conf['allow_extensions'] = "y";
$conf['multiple_sites_enabled'] = "n";
$conf['user_module_key_expiration'] = "30";
$conf['ip2nation'] = "y";
$conf['tag_module_parse'] = "comma";
$conf['tag_module_convert_case'] = "n";
$conf['tag_module_enable_tag_form'] = "y";
$conf['user_email_is_username'] = "n";
$conf['user_screen_name_override'] = "";


/**
*
* These are extra configurations that can also be used
* To enable them, remove the comment (#) at the beginning of the line
*
*/

/**
* encode_removed_text
* Value: text string
* If set, when an {encode=""} tag is encountered, but emails are not to be encoded, this text will be displayed in place of the tag.
*/
#$conf['encode_removed_text'] = 'Encoded emails not allowed';

/**
* email_crlf
* Value: text string
* If set, overrides the core Email class setting for crlf characters in quoted-printable encoded emails (Email class $crlf property).
*/
#$conf['email_crlf'] = "\r\n";

/**
* email_newline
* Value: text string
* If set, overrides the core Email class setting for newline characters (Email class $newline property).
*/
#$conf['email_newline'] = "\r\n";

/**
* hidden_template_404
* Value: y/n
* If a hidden template is encountered, the default behavior is to throw a 404.  With this set to ‘n’, the template group’s index page will be shown instead.
*/
#$conf['hidden_template_404'] = 'n';

/**
* hidden_template_indicator
* Value: text string
* Set the character(s) to use at the beginning of a template name to consider it a “hidden” template. Default is a period ‘.’
*/
#$conf['hidden_template_indicator'] = '.';

/**
* include_seconds
* Value: y/n
* When set to “y” seconds are included on human-readable dates in the Control Panel forms.
*/
#$conf['include_seconds'] = 'y';

/**
* moblog_allow_nontextareas
* Value: y/n
* Removes the textarea only restriction for custom fields in the moblog module.
*/
#$conf['moblog_allow_nontextareas'] = 'y';

/**
* popup_link
* Value: y/n
* Determines whether or not links created by Typography class open in a new window.
*/
#$conf['popup_link'] = 'y';

/**
* protect_javascript
* Value: y/n
* Prevents the advanced conditionals parser from processing anything in tags.
*/
#$conf['protect_javascript'] = 'y';

/**
* prv_msg_throttling_period
* Value: number, in seconds
* Prevents the advanced conditionals parser from processing anything in tags.
*/
#$conf['protect_javascript'] = 'y';

/**
* prv_msg_waiting_period
* Value: number, in hours
* How many hours after becoming a member until they can PM?
*/
#$conf['prv_msg_waiting_period'] = '48';

/**
* publish_page_title_focus
* Value: y/n
* Makes the title field gain focus when the page is loaded
*/
#$conf['publish_page_title_focus'] = 'n';

/**
* relaxed_track_views
* Value: y/n
* Allows Entry View Tracking to work for ANY combination that results in only one entry being returned by the tag, including weblog query caching.
*/
#$conf['relaxed_track_views'] = 'y';

/**
* remove_close_all_button
* Value: y/n
* Removes the Close All button from the Publish/Edit page and user side HTML formatting buttons.  Useful because most browsers no longer need it and Admins might want it gone
*/
#$conf['remove_close_all_button'] = 'y';

/**
* smart_static_parsing
* Value: y/n
* When enabled, parsing of embedded templates that are not set to the template type “Static” will still be parsed as static if they can be (i.e. if they have no PHP or ExpressionEngine tags in them).  This setting is enabled by default.
*/
#$conf['smart_static_parsing'] = 'n';

/**
* spellcheck_language_code
* Value: two letter language code
* Allows you to specify the language used in the spellchecking functions.  Set the value to the two letter ISO 639 language code for the spellcheck (ex: en, es, de)
*/
#$conf['spellcheck_language_code'] = 'de';

/**
* use_forum_url
* Value: y/n
* Determines whether the forums run at a different base URL than the main site.  Useful for running forums as a subdomain.
*/
#$conf['use_forum_url'] = 'y';

/**
* view_comment_chars
* Value: Number of characters to display
* Sets how many characters to display when viewing comments in the control panel.
*/
#$conf['view_comment_chars'] = '50';

/**
* view_comment_leave_breaks
* Value: y/n
* When set to ‘y’, creates <br >’s based on line breaks when viewing comments in the control panel.
*/
#$conf['view_comment_leave_breaks'] = 'y';

?>

 Signature 

http://www.bbook.com

Profile
 
 
Posted: 28 August 2008 02:23 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15159
Joined  05-15-2004

Yes, these configuration options would be added to config.php, and, yes, config.php can contain standard PHP comments.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 28 August 2008 02:27 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  141
Joined  11-19-2007

Thanks Ingmar, you’re very quick.

Sorry about the long post but I figured that someone could benefit from having it ready for copy/paste to their config.

 Signature 

http://www.bbook.com

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64491 Total Logged-in Users: 57
Total Topics: 81032 Total Anonymous Users: 27
Total Replies: 436052 Total Guests: 265
Total Posts: 517084    
Members ( View Memberlist )