Jump to content
MakeWebGames

Djkanna

Members
  • Posts

    3,138
  • Joined

  • Last visited

  • Days Won

    36

Everything posted by Djkanna

  1. And you can guarantee paid work?
  2. The parse the bbcode after that, and no it doesn't stop them from typing it, but it doesn't execute, you did read the manual on each function provide above?
  3. Buttons are much better, and I like the new darker red colour.
  4. Ah my bad, Just looking at the orangey/red banners across each box, it seems to look like it's folded behind the banner itself but not the box where the green one actually looks like it's going behind the box, so perhaps move the red box left a pixel or two. EDIT: One second note both banners look like this due to the shadow/border on the folded triangle section that touches the box. The top buttons could be improved to fit the style of the other buttons perhaps? Other than that, you're onto a winner.
  5. Looks rather nice, images are copyrighted though 'Marc Ecko getting up' I believe.
  6. Remember your interview Illusions? Well I happen to know you don't get called this personally much or even ever but you sir are certainly "The Mod King". ;)
  7. Yes we are unhelpful, that's why you posted your query here. Next time try waiting a little longer for a reply, not everyone that can help you is on at all times of the day just to answer your question within an hour. Thanks!
  8. Put above print <<<EOF $r['mail_text'] = htmlentities($r['mail_text'], ENT_QUOTES);
  9. In short yes, getting it to send as an attachment is flippin' tricky but possible.
  10. Not the best idea to store your sql backups where others can access them. :) But other than that, nice work Illusions.
  11. strip_tags, htmlentities filter_sanitize_string. Three options to disallow html.
  12. Sounds good Illusions, best of luck with sales.
  13. Create a new file called staff_multiaccept.php and copy&paste that code into it.
  14. EDIT: You may want to clean it up a bit first though (I cannot edit posts directly so subject will do :P ) I did start it, but recoded the inventory whilst I was at it then when it came down to the drag&drop I got bored. If you want to continue where I left off. <?php require_once (dirname (__file__) .'/globals.php'); define('_filename_', 'inventory.php'); function getItemInfo($item, $itemType=null) { global $db; if (!filter_var($item, FILTER_VALIDATE_INT)) { $error = 'Invalid item passed through function.'; } else { $item = abs (filter_var ($item, FILTER_SANITIZE_NUMBER_INT)); $grabInfo = $db->query("SELECT `itmname` FROM `items` WHERE (`itmid` = ".$item.")"); if ($db->num_rows($grabInfo)) { $itemInfo = $db->fetch_row($grabInfo); $placehoderImage = 'gun.png'; if ($itemType == 'weapon' || $itemType == 'armour') { $class = 'class="'.$itemType.'"'; } else { $class = ''; } $return = ' [img=images/items/'.$placehoderImage.'] <h6>[url="iteminfo.php?ID='.$item.'"]'.htmlentities($itemInfo['itmname'], ENT_QUOTES, 'UTF-8').'[/url]</h6> '; } else { $error = 'Couldn\'t find item supplied.'; } } if (isset ($error) ) { return $error; } else { return $return; } } echo '<h3>Inventory!</h3>'; //Styling the equipped box. echo '<ul id="equippedContainer"><h4>Equipped Items:</h4>'; if ($ir['equip_primary'] > 0) { echo '<li class="primarySpot"><h5>Primary Weapon</h5>'.getItemInfo($ir['equip_primary']).''; } else { echo '<li class="primarySpot"><h5>Primary Weapon</h5>[img=images/notequipped.png]'; } if ($ir['equip_secondary'] > 0) { echo '<li class="secondarySpot"><h5>Secondary Weapon</h5>'.getItemInfo($ir['equip_secondary']).''; } else { echo '<li class="secondarySpot"><h5>Secondary Weapon</h5>[img=images/notequipped.png]'; } if ($ir['equip_armor'] > 0) { echo '<li class="armourSpot"><h5>Armour</h5>'.getItemInfo($ir['equip_armor']).''; } else { echo '<li class="armourSpot"><h5>Armour</h5>[img=images/notequipped.png]'; } echo '[/list]'; $getItemTypes = $db->query("SELECT `itmtypename`, `itmtypeid` FROM `itemtypes` ORDER BY `itmtypeid` DESC"); if ($db->num_rows($getItemTypes) > 0) { $itemTypesAvailable = array (); while ($itemType = $db->fetch_row($getItemTypes)) { echo '[url="'._filename_.'?itemType='.$itemType['itmtypeid'].'"]'.htmlentities($itemType['itmtypename']).'[/url]'; $itemTypesAvailable[$itemType['itmtypeid']] = $itemType['itmtypename']; } if (!isset ($_GET['itemType']) ) { $_GET['itemType'] = 1; } else { if (!in_array ( $_GET['itemType'], array_keys($itemTypesAvailable)) ) { $_GET['itemType'] = 1; } } echo '<h3>Viewing item under '.$itemTypesAvailable[$_GET['itemType']].'</h3>'; $grabItems = $db->query ("SELECT `iv`.`inv_id`, `iv`.`inv_itemid`,`iv`.`inv_qty`, `i`.`itmtype`, `i`.`itmname`, `i`.`weapon`, `i`.`armor` FROM `inventory` `iv` LEFT JOIN `items` `i` ON `iv`.`inv_itemid` = `i`.`itmid` LEFT JOIN `itemtypes` `it` ON `it`.`itmtypeid` = `i`.`itmtype` WHERE (`iv`.`inv_userid` = ".$userid." && `it`.`itmtypeid` = ".$_GET['itemType'].")"); if ($db->num_rows($grabItems)) { echo '<ul id="listingItems">'; while ($item = $db->fetch_row($grabItems)) { if ($item['weapon'] > 0 && $item['armor'] == 0) { $itemClass = 'weapon'; } else if ($item['weapon'] == 0 && $item['armor'] > 0) { $itemClass = 'armour'; } else { $itemClass = ''; } echo '[*] <h6>[url="iteminfo.php?ID='.$item['inv_itemid'].'"]'.htmlentities($item['itmname']).'[/url]</h6> '.getItemInfo($item['inv_itemid'], $itemClass).' <ul> [*][url="#"]Send to a user[/url] [*][url="#"]Sell item[/url] [*][url="#"]Add to item market[/url] [*][url="#"]Quick Equip[/url] [/list] '; } echo '[/list]'; } else { echo ' You have no “'.$itemTypesAvailable[$_GET['itemType']].'” items.</p>'; } } else { echo ' No item types found, we cannot continue.</p>'; } ?> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script> <script>!window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.4.2.js"%3E%3C/script%3E'))</script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js"></script> <script> $(document).ready(function() { $(".weapon,.armour").draggable({ revert: 'invalid' }); $('#listingItems li').droppable(); $(".primarySpot").droppable({ accept: '.weapon'}) $('.secondarySpot').droppable({ accept: '.weapon'}); $('.armourSpot').droppable({ accept: '.armour'}); $('.primarySpot,.secondarySpot,.armourSpot').bind('drop', function(ev,ui) { //call ajax event dependent on which slot was dropped... }); }); </script> <?php $h->endpage(); ?>
  15. Wow, um there was a reason to revive this old and pretty much useless topic, was there?
  16. Filtering with regular expressions. Preg; Preg_match(); Preg_replace(); Preg_replace_callback(); And preg_last_error();
  17. Djkanna

    Public Vote

    I'll rephrase WBB is good as a forum software, well compared to some others anyway.
  18. Djkanna

    Public Vote

    WCF is a good framework so is WBB built on-top, unfortunately it isn't anything to do with the software that's causing the issues, as far as I am aware (now anyway). The server just doesn't seem to be able to handle the incoming traffic, and in that case no matter what software you use you'll have the same problems.
  19. (m.mail_from=$userid AND m.mail_to={$_GET['ID']}) OR (m.mail_to=$userid AND m.mail_from={$_GET['ID']}) ORDER BY m.mail_time DESC LIMIT 5", $c); while ($r = mysql_fetch_array($q)) { $sent = date('F j, Y, g:i:s a', $r['mail_time']); echo "<tr><td>$sent</td> <td>[b]{$r['sender']} wrote:[/b] {$r['mail_text']}</td></tr>"; } } OUT; Remove the OUT; (LINE: 161)
  20. Thanks, I also like jQuery however mainly for the ease of Ajax and JSON parsing (older browsers).
  21. I must say his point is valid, if it is indeed a business, then people should be getting paid. However if he volunteered then I've not got a clue why he's posting this, also this should be in 'Collaboration Experiences' so moved.
  22. Thanks RulerOfZu, and thanks Lucky3809. It's simple, it's posted this early to give people a chance to modify, perhaps a "Big zilla bunny" as Ruler would put it.
  23. Removed, may be back.
  24. Removed, may be back.
×
×
  • Create New...