Jump to content
MakeWebGames

POG1

Members
  • Posts

    1,419
  • Joined

  • Last visited

Everything posted by POG1

  1. Re: [any] Kool name   xHTML don't use style in tags, you need to use classes. The method i have is to use a function that gets the name and formats it, i created 1 ages ago and i just created 1 for something i am doing..   function formattedName($id,$noLink = FALSE) { $result = @mysql_query(sprintf("SELECT `username`,`user_level` FROM `users` WHERE `userid` = '%u' LIMIT 1",(int)$id)); if(@mysql_num_rows($result)) { $user = mysql_fetch_array($result,MYSQL_ASSOC); switch($user['user_level']) { case 1 : $class = "Player"; break; case 2 : $class = "Admin"; break; case 3 : $class = "Secretaries"; break; case 5 : $class = "Assistant"; break; } return (!$noLink?'[url="profile.php?u='.$user['username'].'"]':'<span title="'.$class.'" class="'.$class.'">').$user['username'].(!$noLink?'[/url]':'</span>'); } }   if you put a second premater as TRUE it will use span instead of an anchor tag for use where a link isn't needed. You will also want to use some classes in CSS. ;)
  2. Re: Fearless-Dojo he said 'balls' which is plural and means both..
  3. Re: check these out lush
  4. Re: [McCodes V2] Unique Template's Using sprites is done with css using the background-position attribute.
  5. Re: Shops overdoing the echos...
  6. Re: [McCodes V2] Unique Template's I noticed you said it takes quite a few images for the navigtaion, you could just use an image sprite and have 1 image do the same job. Just a tip ;) I like the graphics, nice use of skills. I don't like the actual layout of the in game, i think that a game should have some sort if vertical menu so there is less vertical scrolling.
  7. Re: Fearless-Dojo nice unique register and banner
  8. Re: [REVIEW] Angry Kings - Medieval PBBG The game needs to be more clear. All i could see for links was small icons at the bottom, they have no meaning at all and i only figured the links out after clicking them Also, you have a tab thing where you hover and they change, they could do with being onclick instead.
  9. Re: [V2]SQL Injection protection if you put that into a page it will do nothing. What you need to do is structure your code and validate input. A function you could use to clean input strings could be something like this; function codeClean($var) { return mysql_real_escape_string(htmlentities(trim((get_magic_quotes_gpc())?stripslashes($var):$var))); } There are a lot of websites that will be very helpfull. If you read this "http://www.learnphponline.com/security/sql-injection-prevention-mysql-php" site it will have a lot of information on how you can secure against injections.
  10. Re: 2 questions - please help You could elaborate on that a bit and store a string of IDs that cannot be attacked.   $listString = (string) "3,4,5,35,65,77,35,66"; // list of IDs (could be from DB) in a string separated by commas $list = explode(',',$listString); // create an array from the string if(in_array($_REQUEST['ID'],$list)){ // Condition was true, end page and echo warning! :) }
  11. Re: Login & Register [$15] You may want to not use tables for a layout, tables are for tables and layouts are not any way shape or form a layout... You may want to try and use CSS and xHTML. The xHTML check came up trumps with 59 Errors. http://validator.w3.org/check?uri=http% ... omatically)&doctype=Inline&group=0
  12. Re: How to make sure assistants won't ban the admin?   why 2 sprintfs? why 2 queries?   if($_GET['ID'] == 1) { $result = sprintf("UPDATE `users` SET `fedjail` = '10', `user_level` = '1' WHERE `userid` = '%u';",$userid); echo mysql_query($result,$c) ? 'why would you fed the owner? you should not be staff' : 'Lucky!'; $h->endpage(); die(); }
  13. Re: I need help with a Mod i made I don't understand your logic... You 'spent' 2 hours 'creating' your mod yet you cannot find 2 simple syntax errors which you would find/fix as you go along, are you sure you even created this? :?
  14. Re: Login & Register [$15] What you have in the screen shot is a design, post a live example.. Also, if you have 9 images for the layout then it is probably not worth buying. I counted; - 6 box backgrounds - main background - 2 images (game stats and rules) If thats the case then you may want to go back to the drawing board with respects to the bandwidth it will use up. I don't think that on the login page the rules can fit in a rectangle like 200*75
  15. Re: Crime-Network Now Released! It looks as if your favorite colour is gray. To me its just another game, it needs to be better than any other game or people will play the better game.
  16. Re: View User Fix Please Help Whats with the crazy line spacing in the code lol
  17. POG1

    Time

    Re: Time Instead of coming straight onto here and asking for help why not just work it out? google and the php manual will have most answers. Check the manual here.. http://uk3.php.net/manual/en/datetime.settimezone.php
  18. Re: Item market error the item remove function is used to remove an item from the intentory, i dunno why you have it used in the remove from market.
  19. Re: [mccode v2] Humans vs. Zombies EVENT mod why don't you use boolean instead of int(1)
  20. Re: Working Close Page System [MCCODE V2] you could expand on this and add an additional field to that table which you could put a list of who it is blocked for. Take a look at the mysql SET data type ;) SET('admin','staff','jail','donator')
  21. Re: Crons, Timestamp or none? Very good way of doing so. You will also encounter fields like ages and dates which also don't need a cron, just use a timestamp then you can calculate from that, but for replacement of crons this is a nice idea. I will have check the method out. Have you tried any tests out to see the differences in speed??
  22. Re: help with this formula @alabamaHit I think this needs changing: rand($qe/50,$qe/50) it will result in the same value for both parameters
  23. Re: HTML CSS Grids based layout (multi-column fluid pages)   Try a container div, float the 3 inner divs correctly and set the container div with a background and it will make the illusion that it has a background.
  24. Re: Ajax Contact Form explain it? :S Your the one who put it in lol
  25. Re: will this secure my website? That function isn't very useful vali. This is what i use to secure my input variables. You will need to validate properly and you will need to make all your input strings 'safe' :) function codeClean($var) { return mysql_real_escape_string(htmlentities(trim((get_magic_quotes_gpc())?stripslashes($var):$var))); }
×
×
  • Create New...