Jump to content
MakeWebGames

mdshare

Members
  • Posts

    2,018
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by mdshare

  1. I wouldn't use it in the game script itself as it uses CPU power as memory from the server What I would do is having at the signup create the username as gif and fwrite it to a file eg to /user/{username}.gif ingame you simply call the username as a img src then example of creating a img without proxying it to a browser   <?php // Create a test source image for this example $im = imagecreatetruecolor(300, 50); $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color); // start buffering ob_start(); // output jpeg (or any other chosen) format & quality imagejpeg($im, NULL, 85); // capture output to string $contents = ob_get_contents(); // end capture ob_end_clean(); // be tidy; free up memory imagedestroy($im); // lastly (for the example) we are writing the string to a file $fh = fopen("./temp/img.jpg", "a+" ); fwrite( $fh, $contents ); fclose( $fh ); ?>
  2. Isn't a solution imo you still leave the game open for session hijacking and is it not the point to secure the game ? Not only the staff part.
  3. You can also use the GD Lib to create a img for the username example   <? // MakeWebGames.com :: Example of using the GD Library to change txt to img header("Content-type: image/gif"); if(!$_GET['len']) $_GET['len']=100; if(!$_GET['height']) $_GET['height']=40; if(!$_GET['size']) $_GET['size']=20; if(!$_GET['hline']) $_GET['hline']=$_GET['height']/2; $image=imagecreate($_GET['len'],$_GET['height']); $bg_colour = imagecolorallocate($image, 230, 230, 230); $txt_colour = imagecolorallocate($image, 0x5F, 0x27, 0x25); $trans=imagecolortransparent ($image ,$bg_colour); imageantialias ($image,off); imagettftext($image,$_GET['size'],0,0,$_GET['hline'],$txt_colour,'dearJoe_4_trial.otf',$_GET['string']); imagegif($image); imagedestroy($image); ?>   as attachment the OTF and a example GIF created with the above
  4. Nice but 771 Kb is a lil bit overboard for a page, try to keep your pages below 150Kb Also think on your bandwidth not only the download speed of your members. 3000 visits a day is already +2 Gb for that single page. Small changes could help you already, example BSMHM9.jpg could be 1 pixel of width, BSMH7.jpg could also be 1 pix width This would already be dropping 43Kb The buttons, make them CSS buttons instead of images that's another 154Kb saved
  5. I will look into setting up a kind of tutorial, yet will not be what you expect probably Community will need to help with this. Idea is as following, a seperate folder How to make a game Team will be able to start topics, members will be able to reply (they can't create topics). eg topic 'How to create a Register/Login' a Team member starts the topic and members will reply How To or How they see how to create it.
  6. That rule was in place on the old forums as in here. The only place in the whole world where 'freedom of speech' exists kinda is Speakers Corner in London's Hyde Park. And even then Speakers there are allowed to speak as long as the police consider their speeches lawful. So wherever you go true freedom of speech doesn't exist. Quote from old forums, so nothing changed   The topic was locked and partially edited by me and not by seanybob, moderators and supermoderators can reply on locked or disabled threads. Why edited and locked as the OP was making it a personal attack.
  7. The name change feature (on CE) got abused before hence a limit to twice a year possible. If you have a good reason to change your nickname PM me or contact us on chat.
  8. I made a new folder for this community effort and will start posting about it. As it is a community project and using a existing framework we will have to follow rules also aka coding conventions.
  9. [infobox]moved from PHP folder to mccode folder[/infobox]
  10. ahh session hijacking validate the image so it is a real image/sig/avatar If they upload the image Check if the uploaded file is an image. This is done using the getimagesize() function:   array getimagesize ( string $filename [, array &$imageinfo] )   This function returns an array with specific information regarding the file. To return specific information such as width, height, mime type, channels, the file that is verified should be a valid image. If the return $ is empty, then the uploaded file is not an image. validate a image URL, I found this old stashed away snippet on a removable drive (yea I collect snippets as websites tend to vanish from time to time)   $url=getimagesize(”[url]http://www.flickr.com/photos/27505599@N07/2564389539/”[/url]); if(!is_array($url)) { $default_image =”…/directoryFolder/junal.jpg”; }
  11. interesting thanks, just learned something new
  12. [fehlerbox]Jambo, if you continue to abuse other MWG members games by injecting or xss you will be removed from our board as all your posts Topic temp locked, you can PM me to unlock it again[/fehlerbox]
  13. [fehlerbox]Jambo, if you continue to abuse other MWG members games by injecting or xss you will be removed from our board as all your posts[/fehlerbox]
  14. Not sure if the background attribute is deprecated or not , didn't checked while posting this so if it's a deprecated attribute you can also use CSS for this [css]<STYLE TYPE="text/css"> <!-- .myimage, .myimage TD, .myimage TH { background-image: url('myimage.jpg'); background-color:#0000FF; color:#FFFFFF; font-family: sans-serif; font-weight:600; } --> </STYLE>[/css]   <TABLE CLASS="myimage">   This would also solve the issue of text not showing up clearly in a table using background, in this example I used white as text color and background color blue More info at http://www.w3.org/TR/CSS2/tables.html#table-layers
  15. Always used crimson editor but switched to notepad++ (following the crowd) but sorry for notepad++ I switched back since a week to crimson editor, I simply find it so much better for what I need it.
  16. Only one game I know (only released like a week ago) has also a school theme, isn't a online game but PC install and the concept is about pesting.  
  17. I like the theme of it, is the first type of game I've seen with such a theme. pitty I can't login yet
  18. And hopefully soon a lot more looking at the download stats of the Gangster Legends Basic game script/engine.
  19. Same here @Bluedevil23, I have no clue what @gambino tries to say .... unless he thinks that WCF is a scripting language like PHP, HTML, etc ...
  20. [infobox]Please post the fix if possible so other members don't have to request it again, thanks[/infobox]
  21. It's just polling atm who would be interested, and if enough we can proceed as it's a open source project there will be no deadlines so everyone can work on it and improve what's done The benefit of using WCF is that it will be simply packages to add to the mccode.core module of wcf so in theory there will be not much editing needed after awhile
  22. A full revamp isn't just programmers alone danny , eg someone with eye for design aka creating a custom style (colour combos is something I've never been good at) Translators, WCF has a build in language module. etc
  23. Just polling who would be interested to revamp mccode lite. If enough interest we can make it a open source project. The revamp goal would be using the Woltlab Community Framework as core. WCF is Free unlike WBB. Why WCF ? Most functionality which is in games are available. cronjobs msgs module user signup/login style/template module user rankings (staff, members, etc even guest accounts wouldn't be a problem to give functionality) etc ... Also, using WCF as core and have it as a open source package for it would open the market segment to millions of people using WCF for their sites, most allthough in combination with WBB. Expanding to this market segment would blow new life in mccode kinda and get pretty fast a large community with mods (free/paid)   Why not SMF or phpBB, they don't have a standalone framework they are pure forum.
  24. classic cartoons, http://www.archive.org/details/classic_cartoons all public domain license "Dedicator recognizes that, once placed in the public domain, the Work may be freely reproduced, distributed, transmitted, used, modified, built upon, or otherwise exploited by anyone for any purpose, commercial or non-commercial, and in any way, including by methods that have not yet been invented or conceived."
  25. mdshare

    Game Community

    It keeps control over the main source, so no script thieves to spread and distribute it.
×
×
  • Create New...