Jump to content
MakeWebGames

Jason-x

Members
  • Posts

    85
  • Joined

  • Last visited

Everything posted by Jason-x

  1. Still fore sale due to time waster
  2. Hi, I am selling my game layout due to moving on to another joint project It is fully functional and works in all resolutions Loging/Register http://puu.sh/7UtWh.jpg (i have cut the bottom of this off since it just contains site info + ads) Site View from gym http://puu.sh/7UnQM Development Tracker page http://puu.sh/7UnS8 Credit/Crystal Shop http://puu.sh/7UnW5 User Settings http://puu.sh/7UnXc What you will receive All the images/coding to make the layout work, Any images that say (Gang Nation) I Will make with your game name creditshop.php this is my own personal mod you will receive this with the layout settings.php (this is preferences with a new skin) gym.php my own torn style gym and my assistance with installing and setting the layout up on your game + help as and when needed in the future   Looking for reasonable offers (i will be shutting my game down once this layout has sold if interested in just taking over the game aswell as buying the layout let me know will include that in the price.) Thanks Zebba (jason-x)
  3. Had a message asking for this, Open preferences.php find function name_change() { global $ir,$c,$userid,$h; print "<h3>Name Change</h3> Please note that you still use the same name to login, this procedure simply changes the name that is displayed. <form action='preferences.php?action=namechange2' method='post'> New Name: <input maxlength='15' type='text' name='newname' /><br /> <input type='submit' value='Change Name' /></form>"; } function do_name_change() { global $db,$ir,$c,$userid,$h; if($_POST['newname'] == "") { print "You did not enter a new name.<br /> <a href='preferences.php?action=namechange'>> Back</a>"; } else { $_POST['newname']=str_replace(array("<", ">", "\\\'"), array("<", ">", "'"), $_POST['newname']); $db->query("UPDATE users SET username='{$_POST['newname']}' WHERE userid=$userid"); print "Username changed!"; } } Replace with function name_change() { global $ir,$c,$userid,$h; print "<h3>Name Change</h3> It costs 2 crystals to change your name<br>Please note that you still use the same name to login, this procedure simply changes the name that is displayed. <form action='preferences.php?action=namechange2' method='post'> New Name: <input maxlength='15' type='text' name='newname' /><br /> <input type='submit' value='Change Name' /></form>"; } function do_name_change() { global $db,$ir,$c,$userid,$h; if($_POST['newname'] == "") { print "You did not enter a new name.<br /> <a href='preferences.php?action=namechange'>> Back</a>"; } elseif ($ir['crystals'] <2) { die("You don't have enough Crystals!<br><a href='preferences.php'><b><font color='green'> Go Back</b></font></a>"); } else { $_POST['newname']=str_replace(array("<", ">", "\\\'"), array("<", ">", "'"), $_POST['newname']); $db->query("UPDATE users SET crystals=crystals-2 WHERE userid=$userid",$c); $db->query("UPDATE users SET username='{$_POST['newname']}' WHERE userid=$userid"); print "You have paid 2 crystals and changed your username!"; } } Change 2 to what ever amount you want to charge
  4. Jason-x

    Clean game layout

    That's pretty nice only thing i would change is where the stats panel is,
  5. Thanks all =D Still got quite a bit of work to do before it's finished but it' looking pretty awesome now
  6. Haven't really had much time to do anything on this for a few days with it being xmas done a bit of work tonight this is what i'm upto now
  7. in the css file you made in .headbars where it says border-width:1px;   below that add -webkit-border-radius: 5px 5px 5px 5px; -moz-border-radius: 5px 5px 5px 5px; -o-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px;   then where it says .headerbars span { display: inline-block; height: 100%; change that to .headerbars span { display: inline-block; height: 100%; -webkit-border-radius: 5px 5px 5px 5px; -moz-border-radius: 5px 5px 5px 5px; -o-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px;     in the .header change the 5s to say 8 then .headerbars span change the 5s to say a 6 (they will always have to be smaller number than the .header sicne its a smaller div
  8. http://puu.sh/5YvCV.png what a little css to the codes above can do some good sites to use for font/text http://csstxt.com/ pretty much everything else http://css3generator.com/
  9. "not 100% finished" "thanks, yesterday i was just doing the structure for it, today i'm adding a bit of color + the images," Forgot to add this isnt a Psd this is the actual coded layout 90% ofit it css only used a few images
  10. I posted a screenshot of my layout a few days ago.. since then i had a few people message me asking how to make bars so this is how i do mine, their probably is a easier way but this works for me First make a folder called css inside that folder create a css file call it what you want. example.css add this code to the css file you just made /* note are written next to the main things you will change to fit your game */ .headerbars { background-color: black; /* The background color of your bar */ height: 12px; /* the height of your bar */ padding: 1px; /* your bars padding i use 1 */ width: 150px; /* your bars width */ margin: 0px 10px; /* makes the bar 10 pixels from the left */ border-style:solid; border-color: white; /* the border color of your bar */ border-width:1px; } .headerbars span { display: inline-block; height: 100%; } .barcolor span { background-color: green; /* your bars fill color */ } .headfont { font-weight:bold; color:#FFFFFF; /* color of the font above your bar */ margin: 0px 10px; /* plaves the font directly above the bar with the same align */ letter-spacing:0pt; word-spacing:0pt; font-size:12px; /* the size of the font */ text-align:left; /* fonts position */ font-family:trebuchet MS, sans-serif;line-height:1; }   next open header.php find this <hr /> <b>Energy:</b> {$enperc}%<br /> <img src='images/bargreen.gif' width=$enperc height=10><img src='images/barred.gif' width=$enopp height=10><br /> <b>Will:</b> {$wiperc}%<br /> <img src='images/bargreen.gif' width=$wiperc height=10><img src='images/barred.gif' width=$wiopp height=10><br /> <b>Brave:</b> {$ir['brave']}/{$ir['maxbrave']}<br /> <img src='images/bargreen.gif' width=$brperc height=10><img src='images/barred.gif' width=$bropp height=10><br /> <b>EXP:</b> {$experc}%<br /> <img src='images/bargreen.gif' width=$experc height=10><img src='images/barred.gif' width=$exopp height=10><br /> <b>Health:</b> {$hpperc}%<br /> <img src='images/bargreen.gif' width=$hpperc height=10><img src='images/barred.gif' width=$hpopp height=10><br /><hr /> <!-- Links -->   replace it with <link href='css/example.css' type='text/css' rel='stylesheet' /> <div class='headfont'>Energy: {$enperc}%</div> <div class="headerbars barcolor"> <span style="width: $enperc%"></span> </div> <br> <div class='headfont'>Brave: {$ir['brave']}/{$ir['maxbrave']}</div> <div class="headerbars barcolor"> <span style="width: $brperc%"></span> </div> <br> <div class='headfont'>Will: {$wiperc}%</div> <div class="headerbars barcolor"> <span style="width: $wiperc%"></span> </div> <br> <div class='headfont'>Health: {$hpperc}%</div> <div class="headerbars barcolor"> <span style="width: $hpperc%"></span> </div> <br> <div class='headfont'>Experiance: {$experc}%</div> <div class="headerbars barcolor"> <span style="width: $experc%"></span> </div>   The end result will be http://puu.sh/5XuPc.png if you want different color fills for your bars in the css file you made find .barcolor span { background-color: green; /* your bars fill color */ } copy it then paste it under the } part change the .barcolor to something like .barred you will have .barcolor span { background-color: green; /* your bars fill color */ } .barred span { background-color: green; /* your bars fill color */ } finally in header.php find the part like this <div class='headfont'>Will: {$wiperc}%</div> <div class="headerbars barcolor"> <span style="width: $wiperc%"></span> </div>   then change it to this <div class='headfont'>Will: {$wiperc}%</div> <div class="headerbars barred"> /* this is the part you changed */ <span style="width: $wiperc%"></span> </div>   hope this helps you guys out with your css bars =)
  11. Told him to do this several times.. He accused me of scamming him lol  
  12. Nice little script, code could be a little cleaner, quite a few echos echo ''; echo ''; echo '<table align="center" border="1" cellpadding="10">'; echo '<th>ID</th>'; echo '<th>Title</th>'; echo '<th>Description</th>'; echo '<th>Suggester</th>'; echo '<th>Date</th>';   but not a bad little addition to a game
  13. thanks, yesterday i was just doing the structure for it, today i'm adding a bit of color + the images, i was going to do it using iframes but decided to use ajax - so basically everything in the header will self update, ie message count will go to (1) once you receive a message without having to refresh the whole page also it re-sizes for different resolutions, just working out the final bugs in that part before i start making it look a bit more eye catching
  14. I've spent almost all day redoing my layout. (old layout was pretty much the stock one that comes with v2) this is what i have so far, What do you guys think? The right side won't be empty, that will contain a few things, weekly lotto jackpot etc and a few other bits and bobs [ATTACH=CONFIG]1245[/ATTACH] Edit, 26.12.2013 Done a bit of work on the layout tonight this is where i'm upto now mouse over your username will trigger a js tooltip
  15. the content part (where gym and stuff is) will only refresh if you click a link in the menu the only part that will refresh is http://puu.sh/5EvXC
  16. Hey just wondering has anyone done this with mccodes yet my index.php layout will be something like + i will have a table wrapped around the main table with a <td align='left'> for the the table in the code, then a <td align='right'> for the dashboard i mention   <style> html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; } </style> <head> <html> <body> <center> <table width='1172' height='100%' cellpadding='0' cellspacing='0' border='0'> <tr height='150' bgcolor='#00FF00'> <td colspan='2' width='100%'> <iframe name='header' src='header.php' frameborder='0' height='150' width='100%'></iframe> </td> <tr> <td width='172' valign='top' background='http://puu.sh/5Otp2.png'> main menu links etc here<br> <a href='gym.php' target='gamecontent'>Gym</a> <a href='explore.php' target='gamecontent'>City</a> <a href='Hospital.php' target='gamecontent'>Hospital</a> </td> <td width='1000'> <iframe name='gamecontent' src='loggedin.php' frameborder='0' height='100%' width='100%'></iframe> </td> </tr> </table> </body> </html> </head> mail, events, announcements + all the bars (energy will etc) will be in a dashboard at the right hand-side of the page which will call its own refresh every 60 seconds and have a refresh button so players can manually refresh the dashboard to check for messages and such header.php will contain the games header image + hospital/jail text + all the globals code main menu will be built around the 2 frames as shown in the snippet of code then gym and everything will be called into the game content iframe so if a player types the url gamename.com/gym.php only the gym will display with none of the globals or anything so no one can use the page my typing a direct url the game will have to be played by the index.php page just wondering peoples opinions on this and if anyone has done it before with mccodes and how it worked out for them
  17. $0.25!! (writing this sentence took more time than that image just saying)
  18. £0.20p my bid
  19. then in a second message "typo $5" but i'm surprised you seen any of my messages with the amount of spam you was sending   i'll give you the same advice i mentioned earlier.. save yourself the trouble and USE GOOGLE! half the stuff you are asking is VERY VERY BASIC!!
  20. Tried to help this guy earlier (has no intention of learning anything just wants people to do everything for him + he is absolutely rude!!) tried to explain to him about whios and all his info was visible.. accused me of scamming him when showing him how disable it (his host charges to hide information on whos) spammed me every 5 seconds demanding i drop what i am doing and help him then after a couple of hours told me how s.h.i.t i am and how his friend can do everything 100 times better then still comes to the forums asking for helm ( still hasn't learned to say please or thank you ) why not just ask your friend?
  21. I've been working on a credit shop (Uses crystals i just use the name credits in my game) You create the item, then insert it into the Credit shop using staff_shops.php?action=newcredititem add item, set credit price, hopefully should have it fully working over the next couple of days depending how busy i get irl (it will create a new table row saying more soon once the first row is filled then when u add another item it will show the item in the next row first <td> then the next 3 will say more soon till all are filled before creating another tr and repeating :) [ATTACH=CONFIG]1211[/ATTACH]
  22. you need to edit the cron line and change it to curl http://www.yourwebsite.com/cron_hour.php?code=5bbb8005fecdbe0aac1ad982c2c396cd
  23. have you tried removing that <centeR> since the only part that doesn't mess up is and it doesnt contain then <center> tag echo'<img src="mmtop.png"><a href="preferences.php"><span class="mm-li-info">Preferences</span></a> <a href="preport.php"><span class="mm-li-info">Player Report</span></a> <a href="gamerules.php"><span class="mm-li-info">Game Rules</span></a> <a href="viewuser.php?u='.$ir['userid'].'"><span class="mm-li-info">My Profile</span></a> <a href="logout.php"><span class="mm-li-info">Log Out</span></a> <img src="mmbottom.png">'; print "<hr />The Time Is:"; echo date ('<font color=Red>F j, Y</font>')."".date('<font color=white>g:i:s a</font>'); echo'</white>'; ?>
  24. adding global_func fixed it thanks :) i also tried just globals this gave a few errors
×
×
  • Create New...