PHPStudent Posted August 25, 2020 Share Posted August 25, 2020 Hi, like the title suggests - I need a simple and clear layout made with CSS. Please quote me a price though private messages and I'll see if I can meet it, and then I will provide further details on what I'm looking for. Thank you 🙂 Quote Link to comment Share on other sites More sharing options...
AdamHull Posted August 25, 2020 Share Posted August 25, 2020 You would have to post the details before anyone is going to quote you, what happens if the person quotes you a price but you then tell them its more than they have quoted you? To find someone to help you, be upfront tell people your needs for a accurate quote Quote Link to comment Share on other sites More sharing options...
PHPStudent Posted August 25, 2020 Author Share Posted August 25, 2020 (edited) Ok, I need something like this but obviously with borders and colour scheme: And I need it to be easily customisable (colours etc) from the code. Edited August 25, 2020 by PHPStudent 1 Quote Link to comment Share on other sites More sharing options...
Sim Posted August 25, 2020 Share Posted August 25, 2020 23 minutes ago, PHPStudent said: Ok, I need something like this but obviously with borders and colour scheme: And I need it to be easily customisable (colours etc) from the files. Perfect example of what people should do when asking for designs 2 Quote Link to comment Share on other sites More sharing options...
PHPStudent Posted August 25, 2020 Author Share Posted August 25, 2020 Thanks, I'm going for simplicity so I'm hoping it won't be a difficult job! Quote Link to comment Share on other sites More sharing options...
Djkanna Posted August 25, 2020 Share Posted August 25, 2020 https://codepen.io/MrDJK/pen/vYGxmzM Save yourself a bit of money, very basic CSS template based on the structure above for you to play with and edit to fit your needs and colour scheme. - I've used the Milligram CSS framework because it's a nice (read: small) framework - plus it includes a grid which just makes life easier. 🙂 Quote Link to comment Share on other sites More sharing options...
PHPStudent Posted August 25, 2020 Author Share Posted August 25, 2020 (edited) 5 hours ago, Djkanna said: https://codepen.io/MrDJK/pen/vYGxmzM Save yourself a bit of money, very basic CSS template based on the structure above for you to play with and edit to fit your needs and colour scheme. - I've used the Milligram CSS framework because it's a nice (read: small) framework - plus it includes a grid which just makes life easier. 🙂 Nice thank you, but when I put the code in header file, I get this instead:  default mccodes header: <?php /** * MCCodes Version 2.0.5b * Copyright (C) 2005-2012 Dabomstew * All rights reserved. * * Redistribution of this code in any form is prohibited, except in * the specific cases set out in the MCCodes Customer License. * * This code license may be used to run one (1) game. * A game is defined as the set of users and other game database data, * so you are permitted to create alternative clients for your game. * * If you did not obtain this code from MCCodes.com, you are in all likelihood * using it illegally. Please contact MCCodes to discuss licensing options * in this case. * * File: header.php * Signature: 52c201ce2e8c549ae70d2936473022f0 * Date: Fri, 20 Apr 12 08:50:30 +0000 */ class headers { function startheaders() { global $ir, $set; echo <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link href="css/game.css" type="text/css" rel="stylesheet" /> <title>{$set['game_name']}</title> </head> <body> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="lgrad"></td> <td class="center"> EOF; } function userdata($ir, $lv, $fm, $cm, $dosessh = 1) { global $db, $c, $userid, $set; $IP = $db->escape($_SERVER['REMOTE_ADDR']); $db->query( "UPDATE `users` SET `laston` = {$_SERVER['REQUEST_TIME']}, `lastip` = '$IP' WHERE `userid` = $userid"); if (!$ir['email']) { global $domain; die( "<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } if (!isset($_SESSION['attacking'])) { $_SESSION['attacking'] = 0; } if ($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { echo "You lost all your EXP for running from the fight."; $db->query( "UPDATE `users` SET `exp` = 0, `attacking` = 0 WHERE `userid` = $userid"); $_SESSION['attacking'] = 0; } $enperc = min((int) ($ir['energy'] / $ir['maxenergy'] * 100), 100); $wiperc = min((int) ($ir['will'] / $ir['maxwill'] * 100), 100); $experc = min((int) ($ir['exp'] / $ir['exp_needed'] * 100), 100); $brperc = min((int) ($ir['brave'] / $ir['maxbrave'] * 100), 100); $hpperc = min((int) ($ir['hp'] / $ir['maxhp'] * 100), 100); $enopp = 100 - $enperc; $wiopp = 100 - $wiperc; $exopp = 100 - $experc; $bropp = 100 - $brperc; $hpopp = 100 - $hpperc; $d = ""; $u = $ir['username']; if ($ir['donatordays']) { $u = "<span style='color: red;'>{$ir['username']}</span>"; $d = "<img src='donator.gif' alt='Donator: {$ir['donatordays']} Days Left' title='Donator: {$ir['donatordays']} Days Left' />"; } $gn = ""; global $staffpage; $bgcolor = 'FFFFFF'; print <<<OUT <img src="title.jpg" alt="Mccodes Version 2" /><br /> <!-- Begin Main Content --> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20%" bgcolor="#$bgcolor" valign="top"> <!-- Side Panel --> <b>Name:</b> $gn{$u} [{$ir['userid']}] $d<br /> <b>Money:</b> {$fm}<br /> <b>Level:</b> {$ir['level']}<br /> <b>Crystals:</b> {$ir['crystals']}<br /> [<a href='logout.php'>Emergency Logout</a>] <hr /> <b>Energy:</b> {$enperc}%<br /> <img src='greenbar.png' width='$enperc' height='10' /><img src='redbar.png' width='$enopp' height='10' /><br /> <b>Will:</b> {$wiperc}%<br /> <img src='bluebar.png' width='$wiperc' height='10' /><img src='redbar.png' width='$wiopp' height='10' /><br /> <b>Brave:</b> {$ir['brave']}/{$ir['maxbrave']}<br /> <img src='yellowbar.png' width='$brperc' height='10' /><img src='redbar.png' width='$bropp' height='10' /><br /> <b>EXP:</b> {$experc}%<br /> <img src='navybar.png' width='$experc' height='10' /><img src='redbar.png' width='$exopp' height='10' /><br /> <b>Health:</b> {$hpperc}%<br /> <img src='greenbar.png' width='$hpperc' height='10' /><img src='redbar.png' width='$hpopp' height='10' /><br /><hr /> <!-- Links --> OUT; if ($ir['fedjail'] > 0) { $q = $db->query( "SELECT * FROM `fedjail` WHERE `fed_userid` = $userid"); $r = $db->fetch_row($q); die( "<span style='font-weight: bold; color:red;'> You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s).<br /> Reason: {$r['fed_reason']} </span></body></html>"); } if (file_exists('ipbans/' . $IP)) { die( "<span style='font-weight: bold; color:red;'> Your IP has been banned from {$set['game_name']}, there is no way around this. </span></body></html>"); } } function menuarea() { define('jdsf45tji', true, true); include 'mainmenu.php'; global $ir, $c; $bgcolor = 'FFFFFF'; print '</td><td width="2" class="linegrad" bgcolor="#' . $bgcolor . '"> </td><td width="80%" bgcolor="#' . $bgcolor . '" valign="top"><br /><center>'; if ($ir['hospital']) { echo "<b>NB:</b> You are currently in hospital for {$ir['hospital']} minutes.<br />"; } if ($ir['jail']) { echo "<b>NB:</b> You are currently in jail for {$ir['jail']} minutes.<br />"; } echo "<a href='donator.php'><b>Donate to {$set['game_name']} now for game benefits!</b></a><br />"; } function smenuarea() { define('jdsf45tji', true, true); include 'smenu.php'; global $ir, $c; $bgcolor = 'FFFFFF'; print '</td><td width="2" class="linegrad" bgcolor="#' . $bgcolor . '"> </td><td width="80%" bgcolor="#' . $bgcolor . '" valign="top"><center>'; } function endpage() { global $db, $ir; $query_extra = ''; if (isset($_GET['mysqldebug']) && $ir['user_level'] == 2) { $query_extra = '<br />' . implode('<br />', $db->queries); } print <<<OUT </center> </td> </tr> </table></td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="dgradl"> </td> <td class="dgrad"> </td> <td class="dgradr"> </td> </tr> </table> </td> </tr> </table> {$db->num_queries} queries{$query_extra}</body> </html> OUT; } }  Edited August 25, 2020 by PHPStudent Quote Link to comment Share on other sites More sharing options...
Djkanna Posted August 26, 2020 Share Posted August 26, 2020 Make sure you’re including the head information from the code pen ( or if you go to the Milligram site and copy the CDN html bit of the getting started page ) it’s missing the milligram css framework.  Quote Link to comment Share on other sites More sharing options...
PHPStudent Posted August 26, 2020 Author Share Posted August 26, 2020 2 hours ago, Djkanna said: Make sure you’re including the head information from the code pen ( or if you go to the Milligram site and copy the CDN html bit of the getting started page ) it’s missing the milligram css framework.  It works! Still making small changes but here's what I've got so far:   Thank you! 2 Quote Link to comment Share on other sites More sharing options...
Djkanna Posted August 26, 2020 Share Posted August 26, 2020 Smashing glad you got it working 🙂  1 Quote Link to comment Share on other sites More sharing options...
PHPStudent Posted August 26, 2020 Author Share Posted August 26, 2020 (edited) 1 hour ago, Djkanna said: Smashing glad you got it working 🙂  Yup, thanks for providing it! An update on my nearly final version: Edited August 26, 2020 by PHPStudent 2 Quote Link to comment Share on other sites More sharing options...
Djkanna Posted August 26, 2020 Share Posted August 26, 2020 Looking good, I would take use of what milligram provides they do quite a nice table styling for your tables 🙂 1 Quote Link to comment Share on other sites More sharing options...
ags_cs4 Posted August 26, 2020 Share Posted August 26, 2020 why use html tables when u have css 😄  Quote Link to comment Share on other sites More sharing options...
peterisgb Posted August 26, 2020 Share Posted August 26, 2020 1 hour ago, ags_cs4 said: why use html tables when u have css 😄  It use tables too, i know i shouldn't and should use divs. Quote Link to comment Share on other sites More sharing options...
Djkanna Posted August 27, 2020 Share Posted August 27, 2020 On 8/26/2020 at 8:13 PM, ags_cs4 said: why use html tables when u have css 😄  No problem if it's tabular data? 🙂 Quote Link to comment Share on other sites More sharing options...
ags_cs4 Posted August 27, 2020 Share Posted August 27, 2020 1 hour ago, Djkanna said: No problem if it's tabular data? 🙂 normal unless it have lot of column, but even tho u can change the design from column to rows with css well that depend on ur use for the table 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.