Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,667
  • Joined

  • Last visited

  • Days Won

    75

Everything posted by Uridium

  1. One concern about this script does it still allow users to evade URL attacks IE by just changing URL name to say index.php and getting out of fight
  2. I was working on a Friends site and was kind annoyed at how all Items on any MCC inventory where laid out so heres what i created for him.. The two images below can be hidden and show in inventory thus creating less space also Links can be setup when creating and item to allow it Not to be sold or given to users if its a rare item or any item that you dont want users to have..
  3. My main reason for this when i had a site was the HTACCESS file remove it to pc delete off site if site works fine thats your problem if not send it back to site
  4. Too be honest I made this ages ago and cant really remember what I amended or added I dont currently have a backup either due to a Hard drive crash which i lost ALL of my work. The only exsisting work i have is what is on magical-myth.com but that is a paid mod....
  5. or $rr=$db->query("SELECT * FROM referals WHERE refREFER='".$r[userid]."'");
  6. is this for mccodes or another engine
  7. on your users dbase do you have the mentioned of marriage or spouse ? and does it give the ID of the person whos married
  8. Seasons 1 - 8 Showing on Veetle >> http://veetle.com/v/4e0bf2a697db9
  9. Ive had a crack at Unity and the other program called Autodesk but couldnt get my head round it...
  10. I have to sy MONK is probably one of if not probably the best detectiion programmes ive seen. Tony Shaloub plays the Character with excellence Ive got the Entire series on me comp which i watch regular.. More info on monk can be found on Wikipedia for those not familiar with the character.. http://en.wikipedia.org/wiki/Monk_(TV_series)
  11. I still think his first nurse was a better actress she only appeared in series 1,2,3 then some dopey cow took over who couldnt act
  12. Anyone been watching the re-runs of Monk
  13. Uridium

    Quick logo

    Nicely done Dave ;)
  14. on yourgang.php replace the function gang_staff_surrender with this one...   function gang_staff_surrender() { global $db,$ir,$c,$userid,$gangdata; if(!isset($_POST['subm'])) { print "<form action='yourgang.php?action=staff&act2=surrender' method='post'> Choose who to surrender to.<br /> <input type='hidden' name='subm' value='submit' /> Gang: <select name='war' type='dropdown'>"; $wq=$db->query("SELECT * FROM gangwars where warDECLARER={$ir['gang']} or warDECLARED={$ir['gang']}",$c); while($r=mysql_fetch_array($wq)) { if($gangdata['gangID'] == $r['warDECLARER']) { $w="You";$f="warDECLARED"; } else { $w="Them";$f="warDECLARER"; } $d=date('F j, Y, g:i:s a',$r['warTIME']); $ggq=$db->query("SELECT * FROM gangs WHERE gangID=".$r[$f],$c); $them=mysql_fetch_array($ggq); print "<option value='{$r['warID']}'>{$them['gangNAME']}</option>"; } print "</select><br /> Message: <input type='text' name='msg' /><br /> <input type='submit' value='Surrender' /></form><br/><br/>> <a href='yourgang.php?action=staff'>Back</a>"; } else { $_POST['war'] = abs((int) $_POST['war']); $wq=$db->query("SELECT * FROM gangwars where warID={$_POST['war']}",$c); $r=mysql_fetch_array($wq); if($gangdata['gangID'] == $r['warDECLARER']) { $w="You";$f="warDECLARED"; } else { $w="Them";$f="warDECLARER"; } $db->query("INSERT INTO surrenders VALUES('',{$_POST['war']},{$ir['gang']},".$r[$f].",'{$_POST['msg']}')",$c); $ggq=$db->query("SELECT * FROM gangs WHERE gangID=".$r[$f],$c); $them=mysql_fetch_array($ggq); $event=str_replace("'","''","<a href='gangs.php?action=view&ID={$ir['gang']}'>{$gangdata['gangNAME']}</a> have asked to surrender the war against <a href='gangs.php?action=view&ID={$them['gangID']}'>{$them['gangNAME']}</a>"); $db->query("INSERT INTO gangevents VALUES('',{$ir['gang']},unix_timestamp(),'$event') , ('',".$r[$f].",unix_timestamp(),'$event')",$c); print "You have asked to surrender.<br/><br/>> <a href='yourgang.php?action=staff'>Back</a>"; } }
  15. Check the drop down in global_func.php to see if the ID matches that of the ID on the yourgang.php file
  16. Peta one concern about MCCodes as a game emgine is its use of 1 minute crons does your hosting package allow these and if so to what extent.
  17. Bare with me Apoc it was a while ago i or someone else fixed this problem
  18. image drop down image
  19. Imagine a dropdown that just lists Quantity and items you have and thats about it
  20. Someone had the sme problem turned out it was an Explorer problem will have to look it up and see if i cant remember the fix i or someone made for it......
  21. Cheers SRB :)
  22. cheers matey :)
  23. If Elvis Presley posts next remind me to quit playing this game ;)
  24. I did rebuild this to do this a lot more you can see the new version in action at http://www.magical-myth.com under Academy
  25. Someone requested this from another post and as its free i'll post my working copy here also... open up global_func.php and add   function inv_item_dropdown($connection,$ddname="userinv",$selected=-1) { global $db,$r,$ir; $ret="<select name='$ddname' type='dropdown'>"; $q=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_userid=".$ir['userid'].""); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { if (!$i) { $bg = "#818181"; $i = 1; } else { $bg = "#626262"; $i = 0; } $ret.="\n<option style='background:$bg;'"; if ($selected == $r['itmname'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.="<i>{$r['itmname']} You Have ({$r['inv_qty']}) Of This Item</i></option>"; } $ret.="\n</select>"; return $ret; }   Now open a file you want the quick inventory view to be seen by the user and add   print "<h3>Inventory Quick View</h3><br /> ".inv_item_dropdown($c,'userinv')."<br />";   This is only a quick view dropdown for items user has gained
×
×
  • Create New...