SUBDOMAIN PROFILE URL

anybody wanted ALL their Profile URL looks like this http://<nickname>.<yoursite.com> ?

Live Support http://dolphinbugfixing.com
Quote · 3 Aug 2009

i want my to look like this bro : http://<mysite.net>.<nickname> ? wat u think

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 3 Aug 2009

I think it does'nt conformed with URL or DNS rules, it should be domain is the last string, if you want to add string after the domain you need to add / (slash).

i want my to look like this bro : http://<mysite.net>.<nickname> ? wat u think

Live Support http://dolphinbugfixing.com
Quote · 3 Aug 2009

This is what I am trying to accomplish:

username.mysite.com

Anyway Dolphin could automatically create a subdomain for each member using their username, also I would like it to automatically install an INDEX.HTML page, that I have created, in the subdomain folder.

I want this for the Affiliate Program, so each member has their own promotional webpage..... infact is their anyway it could create a subdomain using the affiliate's user ID.... for example:   23.mysite.com

Any ideas how this can be accomplished.

P.S. I REALLY WISH THAT THE AFFILIATE USER ID COULD BE THE SAME AS THE USERNAME.... MAYBE IN FUTURE DOLPHIN RELEASES, EACH MEMBER COULD ENROLL FOR THE AFFILIATE PROGRAM FROM WITHIN THEIR ACCOUNT, THEREFORE THE SYSTEM WOULD PULL THEIR USERNAME & PASSWORD FROM THE DATABASE TO CREATE THEIR AFFILIATE ACCOUNT.... ALSO MAYBE ALL THE AFFILIATE INFO (LINKS, MONEY, REFERRALS, BANNERS, ETC) COULD ALSO BE FOUND WITHIN THE USER ACCOUNT PAGE.... ALSO IMPROVE THE AFFILIATE PROGRAM WITH 3-LEVELS OF PAY.

blaine.

Thanks in Advance, Blaine
Quote · 17 Dec 2009

I just did a search after I posted the above comment and I found this, this is EXACTLY what I want....

http://www.bigresource.com/Tracker/Track-php-Xlem8c1h/

.... how can this be set-up with DOLPHIN?

Blaine.

Thanks in Advance, Blaine
Quote · 17 Dec 2009

I found this simple Script that will create a SUBDOMAIN from a browser window, anybody know how this can be incorporated into the JOIN PAGE?

The file is entitled:  "cpanel_subdomains.php" and here is its contents:

====================

<?php

###############################################################
# cPanel Subdomains Creator 1.1
###############################################################
# Visit http://www.zubrag.com/scripts/ for updates
###############################################################
#
# Can be used in 3 ways:
# 1. just open script in browser and fill the form
# 2. pass all info via url and form will not appear
# Sample: cpanel_subdomains.php?cpaneluser=USER&cpanelpass=PASSWORD&domain=DOMAIN&subdomain=SUBDOMAIN
# 3. list subdomains in file. In this case you must provide all the defaults below
#
# Note: you can omit any parameter, except "subdomain".
# When omitted, default value specified below will be taken
###############################################################

// cpanel user
define('CPANELUSER','blaine69');

// cpanel password
define('CPANELPASS','1sucker69');

// name of the subdomains list file.
// file format may be 1 column or 2 columns divided with semicilon (;)
// Example for two columns:
//   rootdomain1;subdomain1
//   rootdomain1;subdomain2
// Example for one columns:
//   subdomain1
//   subdomain2
define('INPUT_FILE','domains.txt');

// cPanel skin (mainly "x")
// Check http://www.zubrag.com/articles/determine-cpanel-skin.php
// to know it for sure
define('CPANEL_SKIN','x3');

// Default domain (subdomains will be created for this domain)
// Will be used if not passed via parameter and not set in subdomains file
define('DOMAIN','isexclub.net');


/////////////// END OF INITIAL SETTINGS ////////////////////////
////////////////////////////////////////////////////////////////

function getVar($name, $def = '') {
if (isset($_REQUEST[$name]) && ($_REQUEST[$name] != ''))
return $_REQUEST[$name];
else
return $def;
}

$cpaneluser=getVar('cpaneluser', CPANELUSER);
$cpanelpass=getVar('cpanelpass', CPANELPASS);
$cpanel_skin = getVar('cpanelskin', CPANEL_SKIN);

if (isset($_REQUEST["subdomain"])) {
// get parameters passed via URL or form, emulate string from file
$doms = array( getVar('domain', DOMAIN) . ";" . $_REQUEST["subdomain"]);
if (getVar('domain', DOMAIN) == '') die("You must specify domain name");
}
else {
// open file with domains list
$doms = @file(INPUT_FILE);
if (!$doms) {
// file does not exist, show input form
echo "
Cannot find input file with subdomains information. It is ok if you are not creating subdomains from file.<br>
Tip: leave field empty to use default value you have specified in the script's code.<br>
<form method='post'>
Your iSexClub Username: <input name='subdomain'><br>
<input type='submit' value='Create Subdomain' style='border:1px solid black'>
</form>";
die();
}
}

// create subdomain
function subd($host,$port,$ownername,$passw,$request) {

$sock = fsockopen('localhost',2082);
if(!$sock) {
print('Socket error');
exit();
}

$authstr = "$ownername:$passw";
$pass = base64_encode($authstr);
$in = "GET $request\r\n";
$in .= "HTTP/1.0\r\n";
$in .= "Host:$host\r\n";
$in .= "Authorization: Basic $pass\r\n";
$in .= "\r\n";

fputs($sock, $in);
while (!feof($sock)) {
$result .= fgets ($sock,128);
}
fclose( $sock );

return $result;
}

foreach($doms as $dom) {
$lines = explode(';',$dom);
if (count($lines) == 2) {
// domain and subdomain passed
$domain = trim($lines[0]);
$subd = trim($lines[1]);
}
else {
// only subdomain passed
$domain = getVar('domain', DOMAIN);
$subd = trim($lines[0]);
}
// http://[domainhere]:2082/frontend/x3/subdomain/doadddomain.html?domain=[subdomain here]&rootdomain=[domain here]
$request = "/frontend/$cpanel_skin/subdomain/doadddomain.html?rootdomain=$domain&domain=$subd";
$result = subd('localhost',2082,$cpaneluser,$cpanelpass,$request);
$show = strip_tags($result);
echo $show;
}

?>

===========================

Thanks,

blaine.

Thanks in Advance, Blaine
Quote · 29 Dec 2009

blaine if you have cpanel then creation of a subdomain is way easier than worrying about installing a script to do it.

in your control panel if you are allowed to create subdomains its as simple as just creating it from cpanel. this will allow for control over the MX records and SPF records.

to allow a script to run subdomain creation without the proper security in place you are asking for trouble.

if you are not running cpanel/whm then the better solution would be to create a subdirectory and then a mod_rewrite for how you want it to display in the browser.

as for having a custom index.html file that is totally doable, just create the index.html file you want, and on every instance of dolphin you install place that index.html file on the install. html serves before php

Regards,

DosDawg

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 29 Dec 2009

Thanks for your advice, DosDawg!

I do use cPanel and I know that I can create a subdomain from within, and I can upload my designed "index.html" to each subdomain.... I just wanted to FREE myself from having to do this, by automating everything.... then I can spend all my time on promotion.

PLUS, by having this happen during the sign-up process will make the new member aware of the Affiliate Program, the importance of it and one of the vehicles they can use to promote the site & make money.

Thanks,

Blaine.

Thanks in Advance, Blaine
Quote · 31 Dec 2009

This will help.

http://www.dolphinpros.com/dolphin-7-f11/topic2947.html

----
Quote · 14 Jan 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.