Skip to content

Instantly share code, notes, and snippets.

Avatar

Trung Hieu Bui Kaiderella

View GitHub Profile
@Kaiderella
Kaiderella / wp-config.php
Created Mar 30, 2017
Lỗi download failed
View wp-config.php
* @package WordPress
*/
define('WP_TEMP_DIR', ABSPATH . 'wp-content/');
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'anotherd_wrd1');
@Kaiderella
Kaiderella / wp-config.php
Created Mar 30, 2017
Lỗi download failed trong WordPress
View wp-config.php
* @package WordPress
*/
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'anotherd_wrd1');
@Kaiderella
Kaiderella / wp-config.php
Created Mar 27, 2017
Lỗi yêu cầu FTP
View wp-config.php
/*** FTP login settings ***/
define("FTP_HOST", "localhost");
define("FTP_USER", "ftp-user");
define("FTP_PASS", "ftp-password");
@Kaiderella
Kaiderella / wp-config.php
Created Mar 27, 2017
Lỗi yêu cầu FTP trong WordPress
View wp-config.php
define('FS_METHOD', 'direct');
@Kaiderella
Kaiderella / .htaccess
Created Mar 27, 2017
Thay đổi max_input_time với .htaccess
View .htaccess
php_value max_input_time 120
@Kaiderella
Kaiderella / .htaccess
Created Mar 27, 2017
Thay đổi thiết lập PHP với .htaccess
View .htaccess
php_value Directive value
@Kaiderella
Kaiderella / .htaccess
Created Mar 27, 2017
php.ini đệ quy
View .htaccess
suPHP_ConfigPath /home/username/public_html
@Kaiderella
Kaiderella / php.ini
Created Mar 27, 2017
Chỉnh sửa limit PHP
View php.ini
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 30
max_input_time = 60
memory_limit = 256M
upload_max_filesize = 10M
@Kaiderella
Kaiderella / functions.php
Created Mar 26, 2017
Mở link bình luận trong tab mới
View functions.php
//*Open comment links in new tab
function comment_links_in_new_tab($text) {
$return = str_replace('<a', '<a target="_blank"', $text);
return $return;
}
add_filter('get_comment_author_link', 'comment_links_in_new_tab');
add_filter('comment_text', 'comment_links_in_new_tab');
@Kaiderella
Kaiderella / style.css
Created Mar 25, 2017
Avatar hình tròn
View style.css
.avatar {
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
}
You can’t perform that action at this time.