• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] 3.3.5 Registration Website Help

Status
Not open for further replies.

Toxicwaste

Enthusiast
Hello everyone,

I am new to this "Hosting a Registration Website" thing.
So I would like a simple website for registration.
Core: "Trinity 3.3.5"
DB Username: root
DB Password: Ascent
Hosted by "Wamp"
I would like a step by step instruction about how to host it with wamp. I got a repack and NOT a compiled CORE. So please can anyone helpout? I did it before but it rekt my DB Editor log in.

Example: (Past Script)
Config.php
Code:
<?php
$mysql_host = "127.0.0.1"; // Localhost
$mysql_user = "root"; // Username
$mysql_pass = "ascent"; // Password
$mysql_db = "Auth DB"; // Logon/Realmd/Auth DB
$core = "1"; // 2 = Arcemu || 1 = Mangos/Trinity
?>
Index.php
<?php include('function.php');?>
<!--DO NOT ALTER MY CODE-->
<head> 
<html>
<title>Death-WoW</title>


 <link href="./css/style.css" rel="stylesheet" type="text/css">
 </head> <body>
  <div class="wrapper">
 <?php if($_GET['do']=="register") { Register();}elseif($_GET['error']) { Error("".$_GET['error']."");}else{ ?>
 <p> </p>
 <center><form action='?do=register' method='POST'> <b>Username:</b><br>
 <div style="margin-left:auto; margin-right:auto;" align="center" id="login">
 <input name="user" type="text" value="Username" id="login" onFocus="this.value=''" /> </div>

 <br> <b>Password:</b><br>
 <div style=" margin-left:auto; margin-right:auto;" align="center" id="static-effect2" class="input-wrapper"> <input class="living-input" name="password" type="password" value="Password" onFocus="this.value=''" /> </div>

<table align="center" style="text-align:center; margin-top:5px;">
<span class="input">
<label for="sales"><b><br>Expansion:</b> </label><br>
<select style="color:ffffff; background-color: #2f2f2f;  -moz-border-radius: 5px; border-radius: 5px;" id="sales" name="flags">
<option value="32">Cataclysm</option>
<option value="24">Lich King</option>
</select>
</span>
<br /><br /> <input class="cpBtn" type="submit" value="Create Account" id="button"></td></tr></table>
</form>
</center>
 
 </div>
 
 <center><div class="footer"><p style="margin-top:200px;"><font color=white>Advertisement</font><a href="NO ADVERTISE"><font color="red"><br /><br /><b>Death-WoW</b></center></font></p></div> <?php }?> </body> </html>
I still can't find the problem or know how to do it.
Please make the instructions simple as possible.


If you could you can contact me on skype:
Shehab_elsheikh

Other than that,
Thanks Alot ^^
 
Last edited by a moderator:

kolakocide

Super Baked
I would like to know why this was posted in the Trintiycore section when the core your emulating is ArcEmu? Please move your thread then.
 

Tommy

Founder
Hello everyone,

I am new to this "Hosting a Registration Website" thing.
So I would like a simple website for registration.
Core: "Trinity 3.3.5"
DB Username: root
DB Password: Ascent
Hosted by "Wamp"
I would like a step by step instruction about how to host it with wamp. I got a repack and NOT a compiled CORE. So please can anyone helpout? I did it before but it rekt my DB Editor log in.

Example: (Past Script)
Config.php
Code:
<?php
$mysql_host = "127.0.0.1"; // Localhost
$mysql_user = "root"; // Username
$mysql_pass = "ascent"; // Password
$mysql_db = "Auth DB"; // Logon/Realmd/Auth DB
$core = "1"; // 2 = Arcemu || 1 = Mangos/Trinity
?>
Index.php
<?php include('function.php');?>
<!--DO NOT ALTER MY CODE-->
<head> 
<html>
<title>Death-WoW</title>


 <link href="./css/style.css" rel="stylesheet" type="text/css">
 </head> <body>
  <div class="wrapper">
 <?php if($_GET['do']=="register") { Register();}elseif($_GET['error']) { Error("".$_GET['error']."");}else{ ?>
 <p>*</p>
 <center><form action='?do=register' method='POST'> <b>Username:</b><br>
 <div style="margin-left:auto; margin-right:auto;" align="center" id="login">
 <input name="user" type="text" value="Username" id="login" onFocus="this.value=''" /> </div>

 <br> <b>Password:</b><br>
 <div style=" margin-left:auto; margin-right:auto;" align="center" id="static-effect2" class="input-wrapper"> <input class="living-input" name="password" type="password" value="Password" onFocus="this.value=''" /> </div>

<table align="center" style="text-align:center; margin-top:5px;">
<span class="input">
<label for="sales"><b><br>Expansion:</b> </label><br>
<select style="color:ffffff; background-color: #2f2f2f;  -moz-border-radius: 5px; border-radius: 5px;" id="sales" name="flags">
<option value="32">Cataclysm</option>
<option value="24">Lich King</option>
</select>
</span>
<br /><br /> <input class="cpBtn" type="submit" value="Create Account" id="button"></td></tr></table>
</form>
</center>
 
 </div>
 
 <center><div class="footer"><p style="margin-top:200px;"><font color=white>Advertisement</font><a href="NO ADVERTISE"><font color="red"><br /><br /><b>Death-WoW</b></center></font></p></div> <?php }?> </body> </html>
I still can't find the problem or know how to do it.
Please make the instructions simple as possible.


If you could you can contact me on skype:
Shehab_elsheikh

Other than that,
Thanks Alot ^^

I added the code in the code tags. Do that in the future next time.

3rd party applications are not the way you should go. Quoting Faded:

I don't think either are good honestly. If you're using windows, use IIS and install MySQL server directly.
No need for these 3rd party apps.

Overall, xamp brings more issues to the table and you don't want that. Dump xamp and dump the repack too. If you're serious about hosting your own server, do it right. Compile your own source and host your website with proper web-hosting. I'd suggest using a CMS, unless you just want a basic registration page without all the other features.

I would like to know why this was posted in the Trintiycore section when the core your emulating is ArcEmu? Please move your thread then.

Says TrinityCore to me. Looks like the script is for both Arc and TC. :p
 

Tok124

Respected Member
Hello everyone,

I am new to this "Hosting a Registration Website" thing.
So I would like a simple website for registration.
Core: "Trinity 3.3.5"
DB Username: root
DB Password: Ascent
Hosted by "Wamp"
I would like a step by step instruction about how to host it with wamp. I got a repack and NOT a compiled CORE. So please can anyone helpout? I did it before but it rekt my DB Editor log in.

Example: (Past Script)
Config.php
Code:
<?php
$mysql_host = "127.0.0.1"; // Localhost
$mysql_user = "root"; // Username
$mysql_pass = "ascent"; // Password
$mysql_db = "Auth DB"; // Logon/Realmd/Auth DB
$core = "1"; // 2 = Arcemu || 1 = Mangos/Trinity
?>
Index.php
<?php include('function.php');?>
<!--DO NOT ALTER MY CODE-->
<head> 
<html>
<title>Death-WoW</title>


 <link href="./css/style.css" rel="stylesheet" type="text/css">
 </head> <body>
  <div class="wrapper">
 <?php if($_GET['do']=="register") { Register();}elseif($_GET['error']) { Error("".$_GET['error']."");}else{ ?>
 <p>*</p>
 <center><form action='?do=register' method='POST'> <b>Username:</b><br>
 <div style="margin-left:auto; margin-right:auto;" align="center" id="login">
 <input name="user" type="text" value="Username" id="login" onFocus="this.value=''" /> </div>

 <br> <b>Password:</b><br>
 <div style=" margin-left:auto; margin-right:auto;" align="center" id="static-effect2" class="input-wrapper"> <input class="living-input" name="password" type="password" value="Password" onFocus="this.value=''" /> </div>

<table align="center" style="text-align:center; margin-top:5px;">
<span class="input">
<label for="sales"><b><br>Expansion:</b> </label><br>
<select style="color:ffffff; background-color: #2f2f2f;  -moz-border-radius: 5px; border-radius: 5px;" id="sales" name="flags">
<option value="32">Cataclysm</option>
<option value="24">Lich King</option>
</select>
</span>
<br /><br /> <input class="cpBtn" type="submit" value="Create Account" id="button"></td></tr></table>
</form>
</center>
 
 </div>
 
 <center><div class="footer"><p style="margin-top:200px;"><font color=white>Advertisement</font><a href="NO ADVERTISE"><font color="red"><br /><br /><b>Death-WoW</b></center></font></p></div> <?php }?> </body> </html>
I still can't find the problem or know how to do it.
Please make the instructions simple as possible.


If you could you can contact me on skype:
Shehab_elsheikh

Other than that,
Thanks Alot ^^
One thing i noticed by looking fast on it was this
$mysql_db = "Auth DB";

Are your DB really named "Auth DB"?
The default name is just "auth" for the account database.

I will see if i can find any other problems
 

Toxicwaste

Enthusiast
One thing i noticed by looking fast on it was this


Are your DB really named "Auth DB"?
The default name is just "auth" for the account database.

I will see if i can find any other problems
Thanks alot, Ima try it out and reply ^^

So I am installing Xamp right now. Since WAMP needs alot of other crap.
I can't complie my own core. Its just a quick repack until the owner can rehost his server. So I am looking forward for steps.


Cheerz
 

Vitrex

Moderator
There is no matter what you use xampp or wamp until you don't understand what you are doing, i suggest you for now when you don't understand what the **** are you reading in those line of "code" use cms like Azer, craftedweb, fusion idk choice depends on you.
try to rename "Auth DB" to auth or idk how you have named that in your database.
And here is my suggestion, don't user repack. ;)
 

Toxicwaste

Enthusiast
There is no matter what you use xampp or wamp until you don't understand what you are doing, i suggest you for now when you don't understand what the **** are you reading in those line of "code" use cms like Azer, craftedweb, fusion idk choice depends on you.
try to rename "Auth DB" to auth or idk how you have named that in your database.
And here is my suggestion, don't user repack. ;)


I created my website:
[Removed - Rules]

But I want it to look more proffesional
with side news and stuff like that.
Can someone help me out?
 
Last edited by a moderator:
Status
Not open for further replies.
Top