View Single Post
Old 07-21-2009, 01:36 AM  
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by Trax View Post
i thought WPMU is only for one domain? can i manage several blogs on different domains & hosts with it?
No, hosts has to be the same (in fact it's possible to use it on several servers but it would be a pain in the ass)

However, you can use it on as many domains as you want, instead of setting whatever.yourdomain.com you can use yourdomain1.com, anotherdomain.com, awesomedomain.com and so on. You just need to do this simple modification:

Code:
In wp-newblog.php, replace the line:

print '<input name="weblog_id" type="text" id="weblog_id" value="'.$weblog_id.'" maxlength="50" style="width:40%; text-align: right; font-size: 30px;" /><span style="font-size: 30px">.' . $current_site->domain . '</span><br />(<strong>Your address will be username.' . $current_site->domain . '.</strong> Must be at least 4 characters, letters and numbers only. It cannot be changed so choose carefully!)</td> </tr>';

with:

print '<input name="weblog_id" type="text" id="weblog_id" value="'.$weblog_id.'" maxlength="50" style="width:40%; text-align: right; font-size: 30px;" /><span style="font-size: 30px">.</span><select name="weblog_domain" style="width:50%; text-align: right; font-size: 30px;" /><option value="journals.ie">journals.ie</option><option value="galwaycity.com">galwaycity.com</option></select><br />(<strong>Your address will be username.domainname.com.</strong> Must be at least 4 characters, letters and numbers only. It cannot be changed so choose carefully!)</td> </tr>';

Also, after the lines:

if( substr( $domain, 0, 4 ) == 'www.' ) $domain = substr( $domain, 4 );

add the line:

$domain = $_POST[ 'weblog_domain' ];
extracted from http://www.johnbreslin.com/wiki/inde...Modi fication

or if you don't want to complicate your life, simply use WPMU DEV Multi Site Manager and problem solved
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote