[Release] Private Servers Sites (Good Feautures) + [Learning] Basics(Beginners)[LONG]

07/29/2009 03:26 danielachraf#1
I am releasing that because i saw many ppl don't know anything about html/php and need pages for them servers .. so i decided to release that and they can learn and build their pages easy ... maybe will be big release but ok.
This page is bad and poorly made i know because i am working on mine now (Good one) so you must [Only registered and activated users can see links. Click Here To Register...] for some tips and make it good, Also search in google for CSS tut .. etc and you will find good things.

Site Feautures
- Link back
- Register Page
- Patches Page
- ChatBox
- Voting Page
- Forum (Yours)
- Learning Some basics
- Editable (easy)

Works on
- LOFT
- CoEmu
- Hybirb
- For testing the page you can type in your browser 127.0.0.1/Conquer/register.php
(You must edit it (Will show how) to make it on different sources)

ScreenShot For the HomePage
[Only registered and activated users can see links. Click Here To Register...]

Learning
- First in each page (.php) you need to search for
PHP Code:
$link=mysql_connect ("localhost""root""123") or die ('Error: ' mysql_error());
mysql_select_db ("coproj"); 
(root and 123) User name and pass you can change them , coproj is the name of DB (you can change it to conqueremu if you want it to work on CoEmu source , or hybird..)
-----
About link back , i put the image of epvpers in images folder and i will tell you how to make it link back . the code is :
PHP Code:
<a href="http://www.elitepvpers.com/" target="_blank"><img alt="Elitepvpers" border="0" src="Images/elitepvpers.gif" ></a
You see the site of epvpers .. When you click on the (Images/elitepvpers.gif) the image directory it will direct you to epvpers
-----
in register, First i will talk in small thing, How can you make what you type in password box show *******. i won't explain , i will show you the code only..you should understand.
PHP Code:
Username: <input type="text" name="username" size="30" /></br>
Password: <input type="password" name="password" size="30" /></br>
EmailAdr: <input type="text" name="email" size="30" /></br
-----
Make Register page From loft to CoEmu or whatever , first you will look at this part
PHP Code:
$check mysql_query("SELECT * FROM accounts WHERE AccountID = '$username'");
$check2 mysql_num_rows($check);
if(
$check2 != '0') {
die(
"Username: '".$username."' is in use!");

if you know mysql good you will understand , if not .. FROM accounts means the table name (You can change it) (This part isn't important)
Look now at this part
PHP Code:
mysql_query("INSERT INTO accounts (AccountID,LogonType,Email) VALUES ('$username','2','$email')"); 
die(
"Username '".$username."' successfully registered!"); } 
I said INSERT INTO accounts means will put something in this table, (AccountID,LogonType,Email) The fields where you will put the info and ('$username','2','$email')"); will insert in AccountID field what you write in username box .. look
PHP Code:
<input type="text" name="[SIZE="4"]username[/SIZE]" size="30" /> 
and 2 will insert in LogonType 2 automatic .. and so on
-----
Let's talk about link ,you want to enter Patches page from the register page or whatever.. You will need to put this code anywhere.
PHP Code:
<a href="patches.php" id="b2">Patches</a
patches.php means which page you want to go.. and Patches means the name of link in the page. was that hard ?!
-----
How to make a Direct download link ?, Ok Put the file anywhere for example a patch .. look at this code, it like a link but there's a Trick..
PHP Code:
<a href="patches/patch1.exe" id="b2">Download Now</a
patches/patch1.exe means in www folder , pathces folder and patch1.exe <- the patch .. The link will direct you to a page but this will direct you to patch , means will download it .. You must change the patches to your patches
Download Test1.rar and open test.php and look arround to know and learn
-----
Adding forum link, in every page you will find
PHP Code:
<li><a href="#" id="b2">Forum</a></li
Replace # with [Only registered and activated users can see links. Click Here To Register...] or whatever .. also # means no website
-----
Changing Votes links,in register.php search for
PHP Code:
<a href="http://www.elitepvpers.com/" target="_blank"><img alt="Vote" border="0" src="images/vote.jpg" ></a
and replace with yours , and go to Vote.php and replace all to yours ...
-----
Adding ChatBox page... and other pages (Already did), You can make new .php file (name of the page) and copy all things in patches.php and then delete :
PHP Code:
Patch 1001: <a href="patches/1001.exe" target="_blank"><img alt="Direct Mirror" border="0" src="images/download.gif" ></a></br>
Patch 1002: <a href="patches/1002.exe" target="_blank"><img alt="Direct Mirror" border="0" src="images/download.gif" ></a>
</
br>Patch 1003: <a href="patches/1003.exe" target="_blank"><img alt="Direct Mirror" border="0" src="images/download.gif" ></a
and between <center></center> add your chatbox code
-----
Some codes you may use in typing .. fonts .. etc ..
PHP Code:
<b></b>  <u></u>  <i></i
Right, Left, Center
PHP Code:
<div align=right></div> or left, <center></center
-----
I know this guide maybe not in conquer but will stop useless questions about Sites
if you have any problem please post here..
If you want to know more about html/php add me i have alot of free time tommorow :p [Only registered and activated users can see links. Click Here To Register...] , also i am not good designer (making images and banners)
Press thanks if this post helped you..
07/29/2009 06:03 Incariuz#2
I'd throw on a password verification, just to be safe. A lot of people type fast, and are very likely to make a mistake, last thing you want is a ton of unused database entries due to the fact that people don't take their time. Of course, that's simply if you don't have a system for retrieving lost passwords.
07/29/2009 13:54 danielachraf#3
Quote:
Originally Posted by Incariuz View Post
I'd throw on a password verification, just to be safe. A lot of people type fast, and are very likely to make a mistake, last thing you want is a ton of unused database entries due to the fact that people don't take their time. Of course, that's simply if you don't have a system for retrieving lost passwords.
I'll update it For loft .. not hard , after making input and box you can look here
PHP Code:
if(isset($_POST['Submit'])) {
if(!
$_POST['username']) {
die(
'You must fill in all of the fields!');

, also retrieving passwords is easy .. we can talk on msn
07/29/2009 14:26 Michael Emil#4
WOW... good job man
07/29/2009 16:01 tanelipe#5
+T for including the elitepvers banner/link, lol.
07/29/2009 16:34 f0am#6
lol if you saw hybrids about this kind of stuff, using LOTF this would be wrong =]]


[Only registered and activated users can see links. Click Here To Register...]
08/08/2009 22:49 Xanrry#7
Nice:)
08/08/2009 23:27 _tao4229_#8
"SELECT * FROM accounts WHERE AccountID = '$username'"
=
"SELECT * FROM accounts WHERE AccountID = ''; DROP ALL /*'"
when $username = "'; DROP ALL /*"
have fun with that.
08/09/2009 01:02 killermickle#9
Sorry if you did, but I dont believe you made this.
On the register page you included a password box that doesnt do anything too...