kbn Posted July 16, 2018 Share Posted July 16, 2018 i want to make custom domain selection like profreehost, how to make it? user can choose anyone custom or subdomain? how to create it? there is need seperate setup cpanel? Quote Link to comment Share on other sites More sharing options...
mike Posted July 16, 2018 Share Posted July 16, 2018 21 minutes ago, kbn said: i want to make custom domain selection like profreehost, how to make it? user can choose anyone custom or subdomain? how to create it? there is need seperate setup cpanel? Do you mean, a menu like feature that allows to select wich sub domain to register with ? Quote Link to comment Share on other sites More sharing options...
Anyx Posted July 16, 2018 Share Posted July 16, 2018 48 minutes ago, kbn said: i want to make custom domain selection like profreehost, how to make it? user can choose anyone custom or subdomain? how to create it? there is need seperate setup cpanel? You will need to create your own client area, yes. However, you can also go with @mike's suggestion, which is get a script which allows you to choose subdomain on Signup. There is currently one, Project Logged v2.0, but it will take time to develop. In the meanwhile, if you would like to offer to your users the options to use their own form you should use the following code in singup.php : <!doctype html> <html> <head> <link href='https://fonts.googleapis.com/css?family=Droid+Sans:regular,bold' rel='stylesheet' type='text/css'> <style type="text/css"> body{ color: #555555; font: .75em "Droid Sans", "Trebuchet MS", Arial, Helvetica; padding: 0 0 20px; line-height:1.8em; } a{ color:#abb23b; text-decoration:none;} a:hover{ color:#eb7604; text-decoration:none;} #div1 { width:560px; height:22px; background-color:#FFEEDD; border: 1px solid #FF8855; padding: 5px; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; } #div1 a:visited { color:#555555; } #dev1 a:hover { color: #555555; } #div1 a:active { color: #555555; } </style> <link href="form.css" rel="stylesheet" /> <script type="text/javascript"> function validate_required(field,alerttxt) { with (field) { if (value==null||value=="") { alert(alerttxt);return false; } else { return true; } } } function validate_email(field,alerttxt) { with (field) { apos=value.indexOf("@"); dotpos=value.lastIndexOf("."); if (apos<1||dotpos-apos<2) {alert(alerttxt);return false;} else { return true; } } } function validate_password(field,alerttxt) { with (field) { if (value.length<6||value.length>8) {alert(alerttxt);return false;} else { return true; } } } function validate_domain1(field,alerttxt) { with (field) { if (value.match("byethost4.com")) {alert(alerttxt);return false;} else { return true; } } } function validate_domain2(field,alerttxt) { with (field) { if (value.match("https://")) {alert(alerttxt);return false;} else { return true; } } } function validate_domain3(field,alerttxt) { with (field) { if (value.match("www.")) {alert(alerttxt);return false;} else { return true; } } } function validate_form(thisform) { with (thisform) { if (validate_required(domain_name,"Your domain must be filled out!")==false) {domain_name.focus();return false;} if (validate_domain1(domain_name,"The domain you entered can't be used!")==false) {domain_name.focus();return false;} if (validate_domain2(domain_name,"Please do not include https:// in your domain name!")==false) {domain_name.focus();return false;} if (validate_domain3(domain_name,"Please do not include WWW. in your domain name!")==false) {domain_name.focus();return false;} if (validate_required(password,"Desired password must be filled out!")==false) {password.focus();return false;} if (validate_password(password,"Desired password must be 6-8 characters in length!")==false) {password.focus();return false;} if (validate_required(email,"Email must be filled out!")==false) {email.focus();return false;} if (validate_email(email,"Not a valid e-mail address!")==false) {email.focus();return false;} if (validate_required(number,"Security code must be filled out!")==false) {number.focus();return false;} } } </script> <script type="text/javascript"> function ismaxlength(obj){ var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : "" if (obj.getAttribute && obj.value.length>mlength) obj.value=obj.value.substring(0,mlength) } </script> </head> <body> <div class="post"> <script language=javascript> function apply() { document.frm.sub.disabled=true; if(document.frm.chk.checked==true) { document.frm.sub.disabled=false; } if(document.frm.chk.checked==false) { document.frm.sub.enabled=false; } } </script> <br> <form id="frm" name="frm" method="post" action="https://order.byethost4.com/register2.php" onSubmit="return validate_form(this)"> <h4 class="form-title">Your Domain Name</h4> <input name="domain_name" value="" type="text" size="30" /><br /> <span class="form-desc">Enter your own domain name here. This domain name <u>must</u> already be registered! Accounts with a non-existing domain name will get deleted!<br> Set the nameservers in the control panel of your domain registrar to:<ul><li><b>ns1.byet.org</b></li><li><b>ns2.byet.org</b></li></ul> </span><br /> <h4 class="form-title">Your Password</h4> <input name="password" type="password" size="30" maxlength="8" onkeyup="return ismaxlength(this)" /><br /> <span class="form-desc">Password must be 6-8 characters in length.</span><br /><br /> <h4 class="form-title">Your E-mail Address</h4> <input type="text" name="email" size="30" value="" /><br /> <span class="form-desc">No Microsoft, Live or Yahoo addresses allowed.</span><br /><br /> <h4 class="form-title">Your Site Category</h4> <select size="1" name="website_category"> <option selected="selected">Personal</option> <option>Business</option> <option>Hobby</option> <option>Forum</option> <option>Mature</option> <option>Dating</option> <option>Software / Download</option> </select><br /><br /> <h4 class="form-title">Your Site Language</h4> <select size="1" name="website_language"> <option value="Arabic">Arabic</option> <option value="Bulgarian">Bulgarian</option> <option value="Catalan">Catalan</option> <option value="Chinese Simplified">Chinese (Simplified)</option> <option value="Chinese Traditional">Chinese (Traditional)</option> <option value="Croation">Croatian</option> <option value="Czech">Czech</option> <option value="Danish">Danish</option> <option value="Dutch">Dutch</option> <option selected="selected" value="English">English</option> <option value="Filipino">Filipino</option> <option value="Finnish">Finnish</option> <option value="French">French</option> <option value="German">German</option> <option value="Greek">Greek</option> <option value="Hebrew">Hebrew</option> <option value="Hindi">Hindi</option> <option value="Hungarian">Hungarian</option> <option value="Indonesian">Indonesian</option> <option value="Italian">Italian</option> <option value="Japanese">Japanese</option> <option value="Korean">Korean</option> <option value="Latavian">Latvian</option> <option value="Lithuanian">Lithuanian</option> <option value="Norwegian">Norwegian</option> <option value="Persian">Persian</option> <option value="Polish">Polish</option> <option value="Portuguese">Portuguese</option> <option value="Romanian">Romanian</option> <option value="Russian">Russian</option> <option value="Serbian">Serbian</option> <option value="Slovak">Slovak</option> <option value="Slovenian">Slovenian</option> <option value="Spanish">Spanish</option> <option value="Swedish">Swedish</option> <option value="Thai">Thai</option> <option value="Turkish">Turkish</option> <option value="Ukranian">Ukrainian</option> <option value="Vietnamese">Vietnamese</option> </select><br /><br /> <input type=hidden name=id value="d3630410c51e60941a9001a46871070e"> <h4 class="form-title">Security Code</h4> <input type="text" name="number" size="17" /> <img id="sec" alt="" src="https://order.byethost4.com/image.php?id=d3630410c51e60941a9001a46871070e" /> <input type="hidden" name="resellerid" id="resellerid" value="www.byethost4.com" /><br><br> <center> <input class="f-checkbox" type="checkbox" name="chk" id="chk" onClick="apply()"><label for="chk">I have read and agree to the <a href="https://www.byethost4.com/terms-of-service" target="_blank">Terms of Service</a></label><br> <input type="submit" value="Create my account now..." name="sub" class="btn" disabled></center> </form> <div class="f-important-2"> <h4>Important Information!</h4> Please check your SPAM inbox as the email confirmations may end up there! Yahoo, Hotmail and Live.com users may not receive the email confirmation, please use another provider such as Gmail or your ISP email address. </div> </div> </body> </html> Quote Link to comment Share on other sites More sharing options...
Arcenas090 Posted July 20, 2018 Share Posted July 20, 2018 1 hour ago, PlanetCloud said: No need to wait untill Logged 2.0 @Arcenas090, we're currently testing a method that allows us to do this and if successfull, we're going to include it on the next release (Logged 1.7). What do you mean? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.