Making your server live with an account creation page menu

Shout-Out

User Tag List

Page 3 of 3 FirstFirst 123
Results 31 to 38 of 38
  1. #31
    gimmeurlife's Avatar Member
    Reputation
    12
    Join Date
    Aug 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok first off i'm having the same problem as some others are. My server is Arcemu/Ascent. I can get people to connect to my server just fine.. but when they try and go to the account creation page i've set up it tells them the connection was reset while trying to reach the server please try again. And I can go to the account creation page from my own comp using the address i have from no-ip with DUC running on my desktop but when i try and create an account it says:

    Code:
    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\runner.php on line 16
    FAIL, try again
    But my runner.php file is exactly as you had it:

    Code:
    <html>
        <body>
            <?php
            error_reporting(E_ALL);
            $name = $_POST['username'];
            $pass = $_POST['password'];
            $flags=0;
            if(!empty($_POST['TBC'])){
                $flags+=8;
            }
            if(!empty($_POST['WotLK'])){
                $flags+=16;
            }
            mysql_connect("localhost","root","ascent");
            mysql_select_db("logondb");
            if(mysql_num_rows(mysql_query("SELECT * FROM `accounts` WHERE `login`='$name'"))>0){   <------- Line 16 is here
                echo "UBER FAIL USERNAME TAKEN";
            }else{
                if(mysql_query("INSERT INTO accounts (login, password,flags) VALUES('$name', '$pass', '$flags' ) ")){
                    echo"SUPER COOL AWESOME WORKNESS";
                }else{
                    echo"FAIL, try again";
                }
            }
    
            ?>
        </body>
    </html>

    This is my realms.config as well just so u can see that I have it set correctly:


    Code:
    <Realm1 Name = "PwNsTaR Extreme Realm"
    	Address = "pwnstar-wow.servegame.org:8129" 
    	Icon = "PVP"
    	Population = "1.0"
    	TimeZone = "1">
    And for those who are wondering where to DL Xampp since there is no link on that page anywhere you can get it here:

    Code:
    http://www.apachefriends.org/en/xampp-windows.html#641
    Last edited by gimmeurlife; 05-31-2009 at 02:13 AM.

    Making your server live with an account creation page
  2. #32
    Rayuski's Avatar Member
    Reputation
    3
    Join Date
    May 2009
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    guide

    Awesome guide!

  3. #33
    obliviousonion's Avatar Member
    Reputation
    1
    Join Date
    Aug 2009
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fixing runner.php

    I had the same issue, with line 16, but I was rummaging through the code and I took issue to several points in it.

    In the interest of more noob-friendly and debuggable code, I would advise this code for runner.php:

    Code:
    <html>
    	<body>
    		<?php
    		error_reporting(E_ALL);
    		$name = $_POST['username'];
    		$pass = $_POST['password'];
    		$flags = 0;
    		if(!empty($_POST['TBC'])){
    			$flags = 8;
    		}
    		if(!empty($_POST['WotLK'])){
    			$flags = 24;
    		}
    		$host = "localhost";	//Location of MySQL (Don't need to change this)
    		$mysqluser = "root";	//(CHANGE THIS) MySQL username
    		$mysqlpass = "ascent";	//(CHANGE THIS) MySQL password
    		$dbname = "character";	//(CHANGE THIS) Name of DB containing acct. info
    		$table = "accounts";	//(CHANGE THIS) Name of table holding acct. info
    		
    		mysql_connect($host, $mysqluser, $mysqlpass) or die("Unable to connect to server");
    
    		mysql_select_db($dbname) or die("Unable to select database");
    
    		if(mysql_query("INSERT INTO $table (login, password, flags, banned) VALUES('$name', '$pass', '$flags', '0') ")){
    			echo "Account Created";
    		}else{
    			echo "Account Creation Failed, Username Taken";
    		}
    
    		?>
    	</body>
    </html>
    Naturally, you would replace the values I marked with "(CHANGE THIS)" to whatever they needed to be.
    Everything except the MySQL password is identical to what I use, which works perfectly.

    Also, the flag for WotLK is, in fact, 24. The old code worked in that respect, but if the user did not check both BC AND WotLK, he would not be able to play WotLK. Now the user can check any combination of BC or WotLK and be accurately recorded.

    I am presently using ArcEmu 3.1.3.

  4. #34
    ScottyBoy's Avatar Member
    Reputation
    1
    Join Date
    Sep 2007
    Posts
    20
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    josh you need to move the host file to desktop then mod it afterwards you need to save it and then move it back to the original folder

  5. #35
    4l3k's Avatar Member
    Reputation
    1
    Join Date
    May 2009
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i love it! +Rep

  6. #36
    Marlins238's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have to pay for this..? Because instead of create host at the bottom of the page theres an add to cart button..

  7. #37
    mrjoker123's Avatar Member
    Reputation
    6
    Join Date
    Jul 2008
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can somebody make a guide on how to do it with that web hosting? thanks..

  8. #38
    Divyun's Avatar Member
    Reputation
    3
    Join Date
    Aug 2009
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sweet awesome guide. +rep

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Make Your Server Public With Hamachi With An Account Creation Page
    By Xtinction in forum WoW EMU Guides & Tutorials
    Replies: 70
    Last Post: 09-14-2008, 08:48 AM
  2. How To Make Your Server Public With Out Hamachi Problem Solved
    By bomber1392 in forum WoW EMU Guides & Tutorials
    Replies: 7
    Last Post: 12-12-2007, 03:35 AM
  3. Easy Guide to making your server live. With sceenshots.
    By sadgonewild in forum WoW EMU Guides & Tutorials
    Replies: 32
    Last Post: 12-08-2007, 08:30 PM
  4. Making your server public with hamachi/and making server 2.2.X
    By IllidanX in forum WoW EMU Guides & Tutorials
    Replies: 22
    Last Post: 11-05-2007, 08:09 PM
  5. Make your server public with Hamachi
    By Hlini in forum WoW EMU Guides & Tutorials
    Replies: 17
    Last Post: 10-15-2007, 04:52 PM
All times are GMT -5. The time now is 01:32 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search