Jump to content
MakeWebGames

POG1

Members
  • Posts

    1,419
  • Joined

  • Last visited

Everything posted by POG1

  1. Re: [sHOWCASE] New map editor Its nice to see people here concentrate also on the UI. Very nice work, its a shame the demo version does not allow all the elements though. :)
  2. Re: [Web 2.0] html nav bar [$10] That can be done without javascript. It would also work better in a list and using sprite images for the normal/hover states.
  3. Re: need a little code effeciency help?   $locations = array( 'allowed' => array(6,7,8,9), 'notAllowed' => array(1,2,3,4,5), 'loved' => array(3,5,7,10) ) if(in_array($ir['location'],$locations['notAllowed'])) die("You should not be here, you are under aged!"); if(in_array($ir['loved'],$locations['loved'])) die("You allready had your lovin today!");
  4. Re: [v2] custom txt colors For the colour bit you can just add it to the body because it is inherited. body{color:{$ir['color']};}
  5. Re: mail error Try the query in phpMyadmin and see if it works, if it does then its the php code. You could also try doing it differently;   $result = $db->query("SELECT COUNT(inv_itemid) AS gotItem FROM inventory WHERE inv_itemid = 27 AND inv_userid = ".$userid." LIMIT 1;"); $itemCheck = $db->fetch_row($result); if($itemCheck['gotItem']) { echo 'yes!'; } else { echo 'no'; }   *I have not tested this
  6. POG1

    Replace

    Re: Replace lol "POG1 and 16 Guests are viewing this topic. "
  7. POG1

    Replace

    Re: Replace users wont be able to add to it, they would be stored above public_html so it also cannot be viewed.
  8. POG1

    Replace

    Re: Replace Thanks for the idea, i'm a n00b when it comes to JSON so i won't even try. In the mean time i have a better solution. Ii made the text file so it has php and just used this code echo eval(file_get_contents(DIR_TEMPLATES.'/'.$this->t.'/header.html','r')); I dont know if it is the best way but it seems like it is the easiest way.
  9. Re: Epilogue Engine   Yours is MC code and his isn't though..
  10. POG1

    Replace

    Re: Replace hmm that didnt work. At the minute I have a working function but I want it so it does them all without having to manually add them in and do str replace. Here is what i have working:   echo str_replace($from, $to, file_get_contents(DIR_TEMPLATES.'/'.$this->t.'/header.html','r'));   the from and to arer arrays of the values (so like [!]GAME_TITLE[!] and [!]USERNAME[!]).
  11. Re: Total Time Logged In! Total time logged in: 18 days, 2 hours and 44 minutes.
  12. POG1

    Replace

    Re: Replace well what i was trying to do is load the header of a page in from a text file. The text file will have a load of variables in it and I thought the best and easiest method was to just preg replace using a rgular expression
  13. POG1

    Replace

    Re: Replace The data can be stored in any way and it can also be stored in any format.
  14. Re: Inventory revamp ;)
  15. POG1

    Replace

    Ok i got a text file and it has variables stored like so; [!]page_title[!] How could i use it to convert into a variable (so {$page_title}) using a regex string? I have thought about something like.. preg_match("\[\!\]([a-zA-Z0-0])+\[\!\]","{\$$1}",$file);
  16. Re: Epilogue Engine From looking at the download it would be something good to build off. From looking at the download you need a template engine. It makes life so much easier ;) If you need any help on the project feel free to send me a mail.
  17. Re: id 1 and 2 PHP Scenes code will be the best 1 to use :)
  18. Re: multi curency You could create a currencies table and save the exchange rate (so like 0.93) and the currency char (?,$ ect) and in every place just multiply the cost of anything by the exchange rate. Im sure it wont be hard to set up, just take a lot of file edits.
  19. Re: multi curency change the data type of the field from INT(11) to DECIMAL(11,2)
  20. Re: why doesnt it work? I don't know the exact values of the names but change them as applicable. Create a proper user bar, first use some PHP:   echo '<div class="outerBar">'. '<div class="innerBar" style="width:'.(($ir['power']/$ir['maxpower'])*100).'%;></div>'. '</div>';   Then for the CSS: div.outerBar{height:7px;background:#900;width:120px;} div.innerBar{height:7px;background:#090;} ...and finished. :)
  21. Re: can anyone help me on this please? You will want just the connection. Add this code:   include_once("config.php"); include_once("class/class_db_".$_CONFIG['driver'].".php"); $db = new database; $db->configure($_CONFIG['hostname'],$_CONFIG['username'],$_CONFIG['password'],$_CONFIG['database'],$_CONFIG['persistent']); $db->connect();
  22. POG1

    help!

    Re: help! Set a cookie or session when they register and check if they exsist when the user tries to register again..
  23. Re: Looking for code paying $5   Oh yeh lmao I guess thats why they both have a load more -1s than +1 lmfao Its probably because we like to annoy people :-D
  24. Re: where and how do u change the vaules? find these lines in cron_fivemins.php   $query="UPDATE users SET energy=energy+(maxenergy/(12.5)) WHERE energy<maxenergy AND donatordays=0"; $query5="UPDATE users SET energy=energy+(maxenergy/(6)) WHERE energy<maxenergy AND donatordays>0";   and replace with this.. mysql_query("UPDATE users SET energy = energy + IF(donatordays = 0,(maxenergy/10),(maxenergy/20));"); mysql_query("UPDATE users SET energy = maxenergy WHERE energy > maxenergy");
  25. Re: felonyheights.com Login - 2/10. It is only a table at the top of the page with a huge BG which takes a while to load. Register - 0/10. Default register with a different header image. In game - 4/10. It's too plain and no thought has gone into designing it.
×
×
  • Create New...