|
You last visited: Today at 12:09
Advertisement
Web Design
Discussion on Web Design within the CO2 Private Server forum part of the Conquer Online 2 category.
|
View Poll Results: Would this be a good project for the community?
|
|
Yes
|
  
|
12 |
66.67% |
|
No
|
  
|
6 |
33.33% |
01/15/2014, 06:07
|
#31
|
elite*gold: 0
Join Date: Mar 2010
Posts: 183
Received Thanks: 74
|
Doesn't look bad. I'll put up a screenshot on the next update, probably tomorrow.
EDIT: added update 1.2
EDIT: added update 1.3
|
|
|
01/16/2014, 05:58
|
#32
|
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 119
|
This is looking great dude!
Can't wait for this to be finished.
|
|
|
01/17/2014, 01:44
|
#33
|
elite*gold: 0
Join Date: Mar 2010
Posts: 183
Received Thanks: 74
|
Thanks, I'm about to start working on the php and actual function of the server now.
Found a decent background also, I think anyway.
UPDATE 1.4 is up
|
|
|
01/17/2014, 05:14
|
#34
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
|
You might want to add some margins to the text inside the content boxes so they're not so close to the edges.
|
|
|
01/17/2014, 05:21
|
#35
|
elite*gold: 0
Join Date: Mar 2010
Posts: 183
Received Thanks: 74
|
Quote:
Originally Posted by Spirited Fang
You might want to add some margins to the text inside the content boxes so they're not so close to the edges.
|
There are margins there. Without them it'd be overlapping the outline of the content box. I'll increase the margin a bit more, let me know what you think:
I actually like it better like this, thanks for the suggestion.
|
|
|
01/17/2014, 05:25
|
#36
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
|
Quote:
Originally Posted by .Light
There are margins there. Without them it'd be overlapping the outline of the content box. I'll increase the margin a bit more, let me know what you think:
I actually like it better like this, thanks for the suggestion.
|
It does look better. Maybe a bit more would be better. The header could use it as well on the left side.
|
|
|
01/17/2014, 11:27
|
#37
|
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 706
|
|
|
|
01/18/2014, 01:37
|
#38
|
elite*gold: 0
Join Date: Mar 2010
Posts: 183
Received Thanks: 74
|
Okay added the 1.5 update screenshot. I am actually going to need some help. I need a PHP coder that can help me code in some stuff so we can get this finished sooner. If you're interested PM me, or add me on skype: kaae03
Thank you.
|
|
|
01/22/2014, 12:21
|
#39
|
elite*gold: 0
Join Date: May 2009
Posts: 86
Received Thanks: 15
|
Any updates ?
I really wanna see the final results xD
|
|
|
01/23/2014, 02:31
|
#40
|
elite*gold: 0
Join Date: Mar 2010
Posts: 183
Received Thanks: 74
|
Quote:
Originally Posted by Gerculy
Any updates ?
I really wanna see the final results xD
|
I've got half the server status checker coded. Its all I've had time for this week. Its going to be able to check the database to see if the server is online(some servers put a 1 or a 0 in the 'online' table to tell if its online or offline) and will also check the port.
|
|
|
01/23/2014, 11:40
|
#41
|
elite*gold: 0
Join Date: May 2009
Posts: 86
Received Thanks: 15
|
I see, here is server status checker ( if u need it )
Quote:
$host = '127.0.0.1';
$port = '5817';
$timeout = 1;
$connection = @fsockopen($host, $port, $timeout);
if (is_resource($connection))
{
echo 'Server is online' . "\n";
fclose($connection);
}
else
{
echo 'Server is offline' . "\n";
}
|
|
|
|
01/23/2014, 12:32
|
#42
|
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
|
Quote:
Originally Posted by Gerculy
I see, here is server status checker ( if u need it )
|
Nice. That will keep the site from loading if its offline until the timeout.
|
|
|
01/24/2014, 02:34
|
#43
|
elite*gold: 0
Join Date: Mar 2010
Posts: 183
Received Thanks: 74
|
Quote:
Originally Posted by Gerculy
I see, here is server status checker ( if u need it )
|
Nah, that type is already taken care of. Thanks though. If you'd like you can code the type of status check that will check a table in the database for a 1 or 0. 1 = ONLINE, 0 = OFFLINE. If not I can work on it this weekend.
|
|
|
01/24/2014, 02:45
|
#44
|
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 706
|
I wonder how the code you have written looks like. Mind showing a preview ?
|
|
|
01/24/2014, 03:02
|
#45
|
elite*gold: 0
Join Date: Mar 2010
Posts: 183
Received Thanks: 74
|
Quote:
Originally Posted by turk55
I wonder how the code you have written looks like. Mind showing a preview ?
|
I didn't write it, its from another project a friend was working on with me so he wrote it(I think?).
I'm planning on releasing this so of course you can see lol
HTML Code:
<?php
require_once('connect.php');
$conn = mysql_connect("$hostdb", "$dbuser", "$dbpass");
$db = mysql_select_db("$dbname");
$serverport = "5816";
$serveraddress = "$serverip";
$port = "9959";
$ip = "$serverip";
//EDIT HERE!!!
$status = '1'; //1: Checks the port. 2: *NOT CODED* Checks database table for 1/0.
//EDIT HERE!!!
if ($status == '1')
{
$res = mysql_query('SELECT count(Username) FROM accounts;');
$val1 = mysql_fetch_array($res);
echo '<p class="offline"><font style="color: ">Accounts: <font style="color: green"><b>'.$val1[0].'</p></b></font>';
$res = mysql_query('SELECT count(Name) FROM entities;');
$val2 = mysql_fetch_array($res);
echo '<p class="offline"><font style="color: ">Characters: <font style="color: green"><b>'.$val2[0].'</p></b></font>';
$res = mysql_query('SELECT count(*) FROM entities WHERE Online=1;');
$val3 = mysql_fetch_array($res);
echo '<p class="offline"><font style="color: ">Online Players: <font style="color: green"><b>'.$val3[0].'</p></b></font>';
require_once("inc/online.php");
}
else if ($status == '2')
{
echo "WORKED2";
}
else
{
echo "EDIT INC/SERVERSTATUS.PHP";
}
?>
This is the entire status file.
|
|
|
All times are GMT +1. The time now is 12:10.
|
|