As Brainwreck posted, somebody posted a pretty short and simple bit of code that automically makes short easy
www.membername.domain.com urls, it just needs dns wilcards enabled on the server. Couldn't code similar to this be used to do the same thing with vBadvanced Gallery...
//Normal (i.e. non-forwarding) URLs for your MAIN index page
$url="www.7thgencivic.com";
$redirecturls=array(1 => 'civicworld.com','7thgencivic.com','www.civicworld.com','civicnation.net','www.civicnation.net','civiczone.com','www.civiczone.com','2k1civic.com','www.2k1civic.com','2k2civic.com','www.2k2civic.com','www.8thgencivic.com','8thgencivic.com');
//Users URLs will end with... (remember the first dot!)
$usersurl=".7thgencivic.com";
$usergroup="8,6";
require_once("mainfile.php");
global $DB_site,$session;
$PHP_SELF = "modules.php";
//premium user redirect
///////Spot the users//////
$domain = $_SERVER['HTTP_HOST'];
foreach($redirecturls as $key => $value) {
//echo "Key: $key; Value: $value<br>\n<br>";
if ($domain==$value) {
header("Location: <a href="http://www.7thgencivic.com/" target="_blank">http://www.7thgencivic.com/</a>");
exit();
}
}
if ($domain!=$url) {
$who = substr($domain,0,strpos($domain,$usersurl));
$who = str_replace(".","",$who);
$doquery= $DB_site->query("SELECT userid FROM user WHERE ( username = '$who' AND ( usergroupid IN ( $usergroup ) OR premium = 1 ) AND photos = 1 );");
$result=$DB_site->fetch_array($doquery);
if ($result[userid]) {
header("Location: <a href="http://" target="_blank">http://</a>$url/memberrides/showgallery.php?stype=2&si=&cat=500&sort=1&ppuser=$result[userid]");
exit();
} else {
header("Location: <a href="http://www.7thgencivic.com/" target="_blank">http://www.7thgencivic.com/</a>");
exit();
}
}
//////////////////////////
//end premium user redirect