signal-blog
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: The_excerpt and “Read more…”wp-includes\formatting.php
find :
array_push($words, '[...]');
(line 839)replace with:
array_push($words, '[<a href=\"' . the_permalink() .'\" rel=\"bookmark\">Read more...</a>]');http://www.signalblog.com
Vu D. HungForum: Plugins
In reply to: Problems with contact formsIf you interest this contact page http://www.signalblog.com/?page_id=588
I’ll send this code to you.
Forum: Installing WordPress
In reply to: Multiple domains on one host / htaccess / multiple installationsTested with WordPress 2.3.3 and 2.5.
1. Edit wp-config.php by adding the following codes:$hostname = $_SERVER[’SERVER_NAME’];
$hostname = str_replace(’www.’, ”, $hostname);
define(’WP_SITEURL’, ‘http://’ . $hostname);
define(’WP_HOME’, ‘http://’ . $hostname);2. Open wp-includes/functions.php and find the codes:
function _config_wp_home($url = ”) {
if ( defined( ‘WP_HOME’ ) )
return WP_HOME;
else return $url;
}function _config_wp_siteurl($url = ”) {
if ( defined( ‘WP_SITEURL’ ) )
return WP_SITEURL;
else return $url;
}3. replace with:
function _config_wp_home($url = ”) {
return WP_HOME;
}function _config_wp_siteurl($url = ”) {
return WP_SITEURL;
}Host WordPress on multiple domains: http://www.signalblog.com/?p=614
SignalBlog’s Admin
Vu Dinh Hung.