
Paddy
Members-
Posts
211 -
Joined
-
Last visited
Paddy's Achievements
Newbie (1/14)
0
Reputation
-
Hi Kaine, Try using something like this Color Picker to get an idea on Hex Color codes :thumbup:
-
Thanks A_bertrand, Very informative P.S Converted to epub format if anyone wants to download on there Tablet Epub Version
-
Thanks 21Lockdown for the add-on's, keep it up mate you are doing a very good job :thumbup:
-
Congrats Paul and Equinox :thumbup:
-
Have you uploaded the default.css file? As you can see in the header.php <link href='default.css' rel='stylesheet' type='text/css' /> this is what links the header to the css file for example body { margin: 0; padding: 0; background: #252D37 url(images/hd1.jpg) repeat-x; font: normal 11px "Trebuchet MS", Arial, Helvetica, sans-serif; color: #A4AFBD; Also make sure you put the images in a image folder in your public_html so that --->>> url(images/hd1.jpg) is linked correctly
-
Hi woltman123 Could you post the thread where you found this header, perhaps the person who did it could help ;)
-
Looking good well done
-
Something like this you mean? [mccode v2.x] Greatly improved Staff user editing system!
-
Thanks sniko for the update, im posting it hereunder as i think most would like to see it here before downloading, if you don't mind! estateAgent.php <?php include_once('globals.php'); echo '<h3>Estate Agent</h3>'; if(!$_GET) { return index(); } switch($_GET['p']) { case 'buy' : buy(); break; case 'viewHouse' : viewHouse(); break; default: index(); } function index() { global $db, $ir, $h; $house = $db->fetch_row( $db->query("SELECT `hNAME` FROM `houses` WHERE `hWILL`=". $ir['maxwill'] ." ") ); echo '[b]Your current Property:[/b] ', $house["hNAME"] ,' [i]Welcome to the estate agent, ', $ir["username"] ,'. Here you can view the properties avaliable and purchase them.[/i] '; $get = $db->query("SELECT `hNAME`,`hID` FROM `houses` ORDER BY `hWILL`,`hNAME` ASC"); while($r = $db->fetch_row($get)) { echo "[i]". $r['hNAME'] ."[/i] » [url='?p=viewHouse&id=".$r[']View the house[/url] "; } exit( $h->endpage() ); } function viewHouse() { global $db, $ir, $h; $_GET['id'] = (isset($_GET['id']) & abs( is_numeric($_GET['id'])) ) ? $_GET['id'] : FALSE; if($_GET['id'] == FALSE OR $_GET['id'] <= 0) { echo "We aren't selling this house at the moment! » [url='?p=index']Back to Estate Agent[/url]"; exit( $h->endpage() ); } $exist = $db->query("SELECT `hNAME`,`hWILL`,`hPRICE` FROM `houses` WHERE `hID`=". $_GET['id'] ." "); if($db->num_rows( $exist ) == 0) { echo "We aren't selling this house at the moment! » [url='?p=index']Back to Estate Agent[/url]"; exit( $h->endpage() ); } $r = $db->fetch_row($exist); echo "<h4> » [b]Viewing:[/b] {$r['hNAME']} </h4> <div style='width: 500px; padding: 5px; background: #D4D4D4; border: 1px solid #000000; text-align: center;'> [img=housepic/{$r[] </div> "; $color = ($ir['money'] >= $r['hPRICE']) ? "green" : "red"; echo "<font size='34pt' color='".$color."'>$".number_format($r['hPRICE'])."</font> [b]House Statistics[/b] Amount owned: ". $q = $db->num_rows( $db->query("SELECT `userid` FROM `users` WHERE `maxwill`={$r['hWILL']}") ) ." Will Increase: ". $will = ($r['hWILL'] / 100) * $ir['maxwill'] ."%"; if($color == "green" AND $ir['maxwill'] < $r['hWILL']) { echo " <font size='34pt'>» [url='?p=buy&id=".$_GET[']Purchase[/url]"; } exit( $h->endpage() ); } function buy() { global $h, $db, $userid, $ir; $_GET['id'] = (isset($_GET['id']) & abs( is_numeric($_GET['id'])) ) ? $_GET['id'] : FALSE; if($_GET['id'] == FALSE OR $_GET['id'] <= 0) { echo "We aren't selling this house at the moment! » [url='?p=index']Back to Estate Agent[/url]"; exit( $h->endpage() ); } $exist = $db->query("SELECT `hNAME`,`hPRICE`,`hWILL` FROM `houses` WHERE `hID`=". $_GET['id'] ." "); if($db->num_rows( $exist ) == 0) { echo "We aren't selling this house at the moment! » [url='?p=index']Back to Estate Agent[/url]"; exit( $h->endpage() ); } $r = $db->fetch_row($exist); if($ir['money'] < $r['hPRICE']) { echo "You don't have enough money at the moment! » [url='?p=index']Back to Estate Agent[/url]"; exit( $h->endpage() ); } if($ir['maxwill'] > $r['hWILL']) { echo "You don't want to get a smaller property do you?! » [url='?p=index']Back to Estate Agent[/url]"; exit( $h->endpage() ); } echo "Congratulations, you have just purchased a {$r['hNAME']} for $".number_format($r['hPRICE'])."! » [url='index.php']Back Home[/url]"; $db->query("UPDATE `users` SET `money`=`money`-{$r['hPRICE']},`maxwill`={$r['hWILL']} WHERE `userid`=$userid"); exit($h->endpage()); } ?> Instructions Create a new directory called housepic Upload the house images to that directory [house name from database].png Any queries? IM: [email][email protected][/email] EMAIL: [email][email protected][/email] [url]www.delphac.com[/url] || sniko cheers :thumbup:
-
Also shouldnt it be? print <<<EOF alll your stuff here EOF;
-
Go here http://mccodes.com/support/ http://mccodes.com/contact.php They will get back too you ASAP
-
Hi there, From what i see you need to have a folder called img. echo "[img=img/" . $type . $card . ".gif]"; As seen here the images should be in there or you need to create them yourself also need to have created too. Don't worry about the tags i did them for you
-
looks interesting Weldone :thumbup:
-
FYI , maybe you want to play around with operators to fit your needs