Jump to content
MakeWebGames

Djkanna

Members
  • Posts

    3,137
  • Joined

  • Last visited

  • Days Won

    35

Everything posted by Djkanna

  1. Agreed, the move hasn't really 'improved' anything but things take time.
  2. *sigh* How are you using it? Get back to your holiday... :P Not left yet so can't really get back to it. ;) Well get your ass gone then and have a good time :thumbup:
  3. *sigh* How are you using it? Get back to your holiday... :P
  4. Explain? :huh: Okay here's another one however I cannot take credit for it as Spudinski created it but I find it to be a similar approach to your Time function Diesl. /* Created by Spudinski, posted at Web.DeveRz - no longer available */ function parseDate($dateTime) { $diff = time() - $dateTime; $unit = array( 'second', 'minute', 'hour', 'day', 'week', 'month', 'year', 'decade' // if anybody ever uses this let me know ;P ); $lengths = array( 60, 60, 24, 7, 4.35, // more accurate 12, 10 ); for($i = 0;$diff >= $lengths[$i];$i++) $diff = $diff / $lengths[$i]; $diff = round($diff); // display enhacement $date = $diff . ' ' . $unit[$i] . (($diff > 1 || $diff < 1) ? 's' : '') . ' ago'; return $date; }
  5. May be helpful to some however it will need to be edited to work with MCCodes/your preferences, but here is something I took out of an unfinished project based on an idea I saw done by SilviaTungDevil on DeadLand. /** * Generates the name of the member and link to their profile aswell as check their member position against an array of different colours. * @param: id Integer required. * @return: String. **/ function names($id){ global $db; $nameColours = array ( 'Administrator' => '3399FF', 'Forum Moderator' => '', 'Game Moderator' => '', 'Mail Moderator' => '', 'Donator' => '', 'Member' => '', 'Bot' => '' ); if($id == 0) { return 'Administration'; } if ($name = $db->prepare("SELECT `memberName`, `memberPosition` FROM `memberData` WHERE (`memberId` = ?)")) { $name->bind_param('i', $id); $name->execute(); $name->store_result(); if($name->num_rows() > 0) { $name->bind_result($memName, $memPos); $name->fetch(); $names = '[url="profiles.php?user='.$id.'"]'.$memName.'[/url]'; return $names; } else { return false; } $name->free_result(); $name->close(); } }
  6. Let my cat though she'll fix it up for you. ;)
  7. ya i did, but once i agree to fair usage thing, it directs me to the new link (404 page) again. :S http://www.cddesigns.org/OLD/mods/ajchat.zip ^ Direct link but read his terms first.
  8. if ($ir['hospital'] || $ir['jail']) { echo 'You cannot bust someone out of Jail while in jail or the hospital'; $h->endpage(); exit; }
  9. Hey I rather like this I usually use Regexr for testing purposes but this may be useful. Well done Alain. :thumbsup:
  10. I would assume free.
  11. Djkanna

    Found this.

    Interesting however there really isn't enough information about it provided.
  12. It's a good idea, yet presented totally wrong. If you were to say something like; May we have a solved button where if our query gets answered the topic gets marked as solved, however still stays there for others that may encounter the same problem only it doesn't allow replies etc. You may have got somewhere (above is just an example of giving reasons why etc).
  13. Does it really matter? If they've made a successful game out of MCCodes or something else, kudos to them. End of.
  14. Silver package should do you fine. The "powered by" statement, there isn't anything saying you cannot remove/alter it and most people do remove it so I'll say you can modify or remove it it's up to you.
  15. That's the URL to Zap Engine's main site yes.
  16. Just a thing um htmlentities()? Or htmlspecialchars()? Or even strip_tags()
  17. There are many ways to get a reputation, As danny has mentioned releasing free mods ect.. Or just do as I did, do nothing and two years later wonder why people ask you in times of need. 8o
  18. $rr=$db->query("SELECT * FROM referals WHERE refREFER={$r['userid']}"); print $db->num_rows($rr); print " Friends: {$r['friend_count']} Enemies: {$r['enemy_count']} </td> <td> Friends: {$r['friend_count']} Enemies: {$r['enemy_count']} </td> <td>";
  19. Looks good Lithium. :)
  20. Then make an house sharing add-on for it? Nice work Sniko.
  21. No need for more than one topic about the same thing. Thanks
  22. MCC has it's problems and I really doubt all of it belongs to them but without proof of this I'm not going to judge. But it does make me wonder. :rolleyes:
  23. Happy New Year.
  24. You do it I'll sticky it. :pinch:
×
×
  • Create New...