Jump to content
MakeWebGames

Sim

Members
  • Posts

    2,392
  • Joined

  • Last visited

  • Days Won

    62

Everything posted by Sim

  1. All I did was copy the code from notepad++ to dreamweaver then save and it worked... Didn't make much sense. I spent all those hours..
  2. Its what my client asked for bertrand... =) Position filled though. Plz lock thread.
  3. I have roughly 10 pages+. Let me know how much you will charge per main template and each page. Contact me via msn at [email protected] for more details.
  4. The prob was notepad++. It worked with dreamweaver though
  5. THats exactly what it is doing? I don't feel like retyping this whole file. I done did it a few times. I think its notepadd++ doing this. not my actuall FTP client (filezilla) The weird thing, its always this same file. I"ll delete it and create same one by retyping it in notepad, no copy paist and same outcome happens sooner or later. ALl my other files generated are fine. doesn't make much sense.. but it sucks... I spent over 5 hours on this file that should of only taken me 30 minutes. ;\
  6. update. errors removed when I removed the //comments... WTF is up with that? It doesn't pinpoint the actual line of the error, always saying line 1..
  7. now its saying unexpected end line 1...
  8. Is the only thing changed the echos
  9. i cant seem to find this error, been looking over this code for hours... ;\   <?php session_start(); if($_SESSION['user']['level'] < 5) { echo 'not allowed...'; } else { echo 'test'; if(isset($_POST['submitForm'])) { //check for errors (dont know why) if(empty($_POST['textName'])) { $msg = "Name was left blank...<br>"; } if(empty($_POST['textDesc'])) { $msg .= "Description was left blank..."; } //if no errors if(empty($msg)) { addItem(); } } echo 'here'; echo $msg; ?> <form name="form1" action="" method="post" enctype="multipart/form-data"> <table width="100%" border="0"> <tr> <td><strong>Thumbnail:</strong></td> <td><input type="file" name="fileThumb" /></td> <tr> <tr> <td><strong>Name:</strong></td> <td><input type="text" name="textName" value="<?= $name ?>></td> <tr> <tr> <td><strong>Type:</strong></td> <td><select name="selectType"> <option value="1">Equipable</option> <option value="2">Token</option> <option value="3">Breeding</option> <option value="4">Quest</option> </select> </td> <tr> <tr> <td><strong>Searchable:</strong></td> <td><select name="selectSearch"> <option value="1">Yes</option> <option value="0">No</option> </select> </td> <tr> <tr> <td><strong>Description:</strong></td> <td><textarea name="textDesc" rows="4"><?= $desc ?></textarea></td> <tr> <tr> <td><strong>If Item equipable (file that goes in imagegen/1/):</strong></td> <td><input type="file" name="fileItem1" /></td> <tr> <tr> <td><strong>If Item equipable (file that goes in imagegen/2/):</strong></td> <td><input type="file" name="fileItem2" /></td> <tr> <tr> <td><strong>If Item equipable (file that goes in imagegen/3/):</strong></td> <td><input type="file" name="fileItem3" /></td> <tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><input name="submitForm" type="submit" id="submitForm" value="Add Item"></td> </tr> </table> </form> <? } function imageUpload($file, $path, $name) { //vars $imageinfo = getimagesize($file['file']['tmp_name']); list($width, $height) = getimagesize($file['file']['tmp_name']); $userid = $_SESSION['userID']; $file_typ = array(); $file_typ = explode('.',strtolower($file["file"]["name"])); $file_type = "." . $file_typ[count($file_typ)-1]; echo $file["file"]["name"]; //only allow jpg, png, gif if( ($file_type == ".jpg" || $file_type == ".png" || $file_type == ".gif") && ($imageinfo['mime'] == "image/jpg" || $imageinfo['mime'] == "image/jpeg" || $imageinfo['mime'] == "image/png" || $imageinfo['mime'] == "image/gif") && isset($imageinfo) ) { if(move_uploaded_file($file["file"]["tmp_name"],$path . $name . $file_type)) { return true; } else { return false; } } } function addItem() { //secure input into database, never know who may gain admin access then screw your db up =) $name = mysql_real_escape_string($_POST['textName']); $desc = mysql_real_escape_string($_POST['textDesc']); $type = mysql_real_escape_string($_POST['selectType']); $search = mysql_real_escape_string($_POST['selectSearch']); $namer = strtolower(str_replace(" ", '', $name)); echo $namer; //upload thumb, return filename $img_name = imageUpload($_FILES["fileThumb"], "static/items/", $namer); //upload items, check if errored if(imageUpload($_FILES['fileItem1'], "static/imagegen/1/", $namer) == false) $msg = "Upload Image items/1/ failed...<br>"; if(imageUpload($_FILES['fileItem2'], "static/imagegen/2/", $namer) == false) $msg .= "Upload Image items/2/ failed...<br>"; if(imageUpload($_FILES['fileItem3'], "static/imagegen/3/", $namer) == false) $msg .= "Upload Image items/3/ failed...<br>"; //no errors if(empty($msg)) { //insert item } else { echo 'testtt'; } } ?>
  10. oh snap didnt see I deleted my success thing =)... let me give it a try..
  11. var phrases = new Array(); var i; var boom = false; $(document).ready(function(){ while(boom == false) { $("#proccess_form").mouseup(function () { $("#outcome").html(""); $.ajax({ url: $("#form1").attr("action"), global: false, type: "POST", data: $("#form1").serialize(), dataType: "html", for(i=0;i<=phrases.length;i++) { if(msg != phrases[i]) { $('.phrases').append(msg); boom = true; } else { boom = false; } } }, error: function(msg) { $("#outcome").html(msg); } }); }); } });   SCRIPT1028: Expected identifier, string or number forms.js, line 17 character 5   anyone know how to fix this issue?
  12. A lot of templating systems are overkill. Smarty for example has a ton of files... I don't know about twig, never used it.
  13. Heres my template class:   <? class template { private $template; private $Replace; private $Replacer; public function __construct($template_dir, $page) { $this->template = file_get_contents("templates/" . $template_dir . "/index.htm"); $this->template = str_replace("{CONTENT}", file_get_contents("templates/" . $template_dir . "/$page.htm"), $this->template); } //this function will set vars to be replaced public function set_var($word, $replace) { $this->Replace[] = $word; $this->Replacer[] = $replace; } //proccess all vars that needs to be replaced public function proccess() { //replace all vars needed to be replaced for($x=0; $x<count($this->Replace); $x++) { $this->template = str_replace("{" . $this->Replace[$x] . "}", $this->Replacer[$x], $this->template); } } public function display() { //template colors (TODO: replace colors with SQL info) $Replaces = array("background", "link_color", "header", "user_info_block", "right_sidebar", "left_sidebar", "content", "footer", "titlebar", "shadows", "test_color", "input_text", "input_background"); $Replacers = array("#fff", "#fff", "#007AC4", "#035883", "#007AC4", "#007AC4", "#007AC4", "#007AC4", "#C24464", "#333", "#fff", "#444", "#fff"); //set all colors in template for($x=0; $x<count($Replaces); $x++) { $this->template = str_replace("{" . $Replaces[$x] . "}", $Replacers[$x], $this->template); } //replace all vars $this->proccess(); //display template echo $this->template; } }   Here is how a example of index page:   include "helpers/template.php"; $template = new template("default/admin", "main"); $template->set_var("game_name", "Testing Template var check"); $template->set_var("game_url", "testing.com"); $template->display(); ?>   It works sorta like this: You create your ONE HTML file that is the main page which has your header and footer menu's and all that stuff that is always static. Then where you want your content to be displayed, it has {CONTENT} which loads the other page and replaces the {CONTENT} I got a few more thing's that needs to be done. Such as looping data for template and set array vars instead of vars one at a time. Whats everyone think. Anyone got any feedback.
  14. I got an auto blog. http://www.cellphonerpg.info (reviews, previews and screen shots)
  15. A lot of people provided positive feedback on my oRPG Creator, and even more was probally suprised I actually had something released "functionable and complete". With that I decided to do a REVAMP. Read the design's for it here: http://forum.orpgcreator.com/general/ With the design's, you can create almost any type of php game possible. It all starts with creating your own Stats. You create your own stats for items, own stats for characters. Create hidden Stats for quest's, events, acheivements. :) Happy reading!! The current version of oRPG Creator will remain online till the newer one is complete.
  16. I think 300 is a cheap price for a android gangster engine
  17. They are nit included. Topic states just the script
  18. Price: Negotiable (PM ME with your offer's) I have decided to discontinue development of my original oRPG Creator script so its for sale. :) The script uses 2 domains. One for creation of the games and one for where the games are. To create games, go to http://www.orpgcreator.com To view my demo account visit: http://www.hehrpg.com/Sim/ user: testing pass: testing This is an admin account This scritp allows "anyone" to create there own game with simple data entry which is hosted on one of owners domains. The script requires mod rewrite and uses OOP techniques and uses smarty templating. All php and html code is seperate.   Game Owners can do the following: Read oRPG Creator News Vote in oRPG Creator Polls Create/Manage Tasks (quest, crimes, missions) Create/Manage Items with images Create/Manage Bot's (NPC's) with images Create/Manage Levels Change Banner Create News View/Delete Players View some Basic Stats Game Players Can: Complete Task(quest, crimes, missions) Purchase Items Equip Items Battle Bots (NPC's) Battle Other Players View Player Stats View Events (When a task is complete, or when attacked) View Homepage (game activity feed) Level up now!! Distribute Stats upon leveling up Refer Friends via referral link View Top Players Change Avatar Master Admin Panel Create News For Game Owners Create Polls For Game Owners Mass eMail Owners/Players View Games Add new domain (like hehrpg.com)   SO what do you get You get every file from http://www.orpgcreator.com and every file from http://www.hehrpg.com as well as the database.
  19. According to prototype
  20. Anyone can change a few words around to make a custom game as you stated...
  21. I seen a template around here someone was coding or selling that had the stats, level's and stuff at the top instead of on the side. I can't seem to find the post. Anyone know of any?
  22. @Danny696 , why you always trying to give someone a hardtime.
  23. His domain is with godaddy. Its not listed under domains but hosting.
  24. I think the concept behind this site is very good. I wanna win neab engine. Mwhaha. ;)
  25. Id like to note that his domain and hosting is with GoDaddy. I played with a little bit. I got all the files uploaded to his FTP. For some reason the server isn't found when going to his domain. ;)
×
×
  • Create New...