-
Posts
2,667 -
Joined
-
Last visited
-
Days Won
75
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
Mystical if it shows in index page as a single image it will do on the page you want it to show not all placements are the same scripting so needs editing to make it work
-
You havent listened to any of the Ideas people have given you on here and v2.0.3 is just another mcc version fit for the dump.. Nothing major has been done and even the Exploits are still there. Your making something that used to be decent look worse..
-
Look at radioplayer.php you can turn scrolling on by setting the scrolling="no" to scrolling="yes"
-
hehehe this post has set me chuckle box off lol Nicely done Danny lol
-
mccode-v2 [EDUCATION MOD] Totally Re-worked with many additional Options.
Uridium replied to Uridium's topic in Free Modifications
Steve keep me informed after youve added the nw page and tell me if your still having issues.. -
Is anyone who is using NOTEPAD++ Experiencing any weired behaviour I recently sent 2 files back to my server and localhost that i spent hours writing on NOTEPAD++ only to find the most annoying error going which was something on the lines of T_Uncapsed_White_space line 1 line 1 being <?PHP reading up on this error i thought i may have dropped the <?PHP to line 2 but nope it was deffo on line 1.. Whn i copied and pasted the entire script into Notepad instead of being layed out neatly it was full of these [ ] << Square blocks all over the place.. After chatting with My old pal Crimgame he worked out that NOTEPAD++ was at fault and the solution was to copy the entire code again on pastebin delete the file i had just made and paste back into a newly opened NOTEPAD++ file...
-
This mod will allow a radio player to sit at bottom of your screen so you can listen and still use links without interupting the music... Call this file radioplayer.php <?PHP // Illusions Radio player 2011 echo <<<EOT <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><script type="text/javascript">var columntype=""; var defaultsetting=""; function getCurrentSetting(){ if (document.body) return (document.body.cols)? document.body.cols : document.body.rows } function setframevalue(coltype, settingvalue){ if (coltype=="rows") document.body.rows=settingvalue; else if (coltype=="cols") document.body.cols=settingvalue } function resizeFrame(contractsetting){ if (getCurrentSetting()!=defaultsetting) setframevalue(columntype, defaultsetting); else setframevalue(columntype, contractsetting) } function init(){ if (!document.all && !document.getElementById) return; if (document.body!=null){ columntype=(document.body.cols)? "cols" : "rows"; defaultsetting=(document.body.cols)? document.body.cols : document.body.rows } else setTimeout("init()",100) } setTimeout("init()",100) </script> </head><frameset rows="96%,*" framespacing="0" frameborder="no" border="0"><frame name="top" src="index.php" scrolling="no" frameborder="0" noresize><frameset rows="-1,*" frameborder="0" border="0" framespacing="0"><frameset cols="-1,*" frameborder="0" border="0" framespacing="0"><frame name="logo" src="radio.php" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" border="0" framespacing="0"> <frameset rows="-1,*"><frame name="radio" src="radio.php" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" border="0" framespacing="0"><frame name="radio" src="radio.php"marginwidth="0" marginheight="0" scrolling="no" frameborder="0" border="0" framespacing="0"> </frameset> </frameset><frame name="main" src="radio.php" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" border="0" framespacing="0"></frameset> </frameset><noframes> <body> EOT; ?> Now call this file radio.php <?php echo <<<EOT <STYLE type="text/css"> iframe { position: absolute; top: -45px; } </STYLE> EOT; print"<center>"; print <<<EOF <body bgcolor="#000000"> <object id="MediaPlayer1" width=180 height=50 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft? Windows? Media Player components..." type="application/x-oleobject" align="middle"> <param name="FileName" value="http://listen.soundstreamradio.com:8000/"> <param name="AutoStart" value="False"> <param name="ShowStatusBar" value="True"> <param name="DefaultFrame" value="mainFrame"> <embed type="application/x-mplayer2" pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/" src="http://listen.soundstreamradio.com:8000/" align="middle" width=176 height=144 defaultframe="rightFrame" showstatusbar=true> </embed> </object> EOF; ?> SCREENIE
-
Yes its possible to keep the player playing whilst opening other pages I wrote a script for this for my Ambient sounds for games...
-
This mod will let your users know that they cannot equip a primary or secondary weapon in a slot thats already equipped yep very small but could just make your game look a bit neater.. call this file equip_weapon.php <?php include "globals.php"; $_GET['ID'] = abs((int) $_GET['ID']); $id=$db->query("SELECT iv.*,it.* FROM inventory iv LEFT JOIN items it ON iv.inv_itemid=it.itmid WHERE iv.inv_id={$_GET['ID']} AND iv.inv_userid=$userid LIMIT 1"); if($db->num_rows($id)==0) { print "Invalid item ID"; $h->endpage(); exit; } else { $r=$db->fetch_row($id); } if(!$r['weapon']) { print "This item cannot be equipped to this slot."; $h->endpage(); exit; } if($_GET['type']) { if(!in_array($_GET['type'], array("equip_primary", "equip_secondary"))) { print "This slot ID is not valid."; $h->endpage(); exit; } if ($_GET['type'] == "equip_primary" && $ir[equip_primary] > 0) { print "You currently have the <font size=4>[/b]{$r['itmname']}[/b]</font> item equipped for this primary slot [[url='inventory.php'] RETURN TO INVENTORY[/url]] OR [[url='unequip.php?type=equip_secondary'] Unequip your {$r['itmname']}[/url]]"; exit(); } else { if ($_GET['type'] == "equip_secondary" && $ir[equip_secondary] > 0) { print "You currently have the <font size=4>[/b]{$r['itmname']}[/b]</font> item equipped for this secondary slot [[url='inventory.php'] RETURN TO INVENTORY[/url]] OR [[url='unequip.php?type=equip_secondary'] Unequip your {$r['itmname']}[/url]]"; exit(); } } if($ir[$_GET['type']]) { item_add($userid, $ir[$_GET['type']], 1); } item_remove($userid, $r['itmid'], 1); $db->query("UPDATE users SET {$_GET['type']} = {$r['itmid']} WHERE userid={$userid}"); print "Item {$r['itmname']} equipped successfully. [[url='inventory.php'] RETURN TO INVENTORY[/url]]"; } else { print "<h3>Equip Weapon</h3><hr /> <form action='equip_weapon.php' method='get'> <input type='hidden' name='ID' value='{$_GET['ID']}' /> Please choose the slot to equip {$r['itmname']} to, if there is already a weapon in that slot, it will be removed back to your inventory. <input type='radio' name='type' value='equip_primary' checked='checked' /> Primary <input type='radio' name='type' value='equip_secondary' /> Secondary <input type='submit' value='Equip Weapon' /></form>"; } $h->endpage(); ?> SCREENIE
-
mccode-v2 [EDUCATION MOD] Totally Re-worked with many additional Options.
Uridium replied to Uridium's topic in Free Modifications
Small Update in the image above thats says ( List of Available course ) ive redone it so it shows them amount of times a particular course has been taken.. -
mccode-v2 [EDUCATION MOD] Totally Re-worked with many additional Options.
Uridium replied to Uridium's topic in Free Modifications
Above shows how to add a course Above shows accepted addition Above shows Editing a Course And finally the Succes message... All Courses can be deleted but make sure users are not taking that course at the time... USERS VIEW List of Available course When user starts their course And the final outcome after the completion. -
mccode-v2 [EDUCATION MOD] Totally Re-worked with many additional Options.
Uridium replied to Uridium's topic in Free Modifications
Call this file staff_courses.php When adding a new course make sure no values are less than 0 for some reason it goofs so ive had to add a new line of SQL <?php // illusions 2011 include "sglobals.php"; if($ir['user_level'] > 2) { die("403"); } //This contains course stuffs switch($_GET['action']) { case "addcourse": addcourse(); break; case "addcourseaccept": accept_course(); break; case "editcourse": editcourse(); break; case "delcourse": delcourse(); break; default: print "Error: This script requires an action."; break; } function addcourse() { global $db, $ir, $c, $h, $userid; print "<h3>Add Course</h3><hr /> <form action='staff_courses.php?action=addcourseaccept' method='post'> <table border='1' width='100%' class='table' cellspacing='3' cellpadding='4'> <tr> <th>Course Name: <input type='text' name='name' /> </th> <th>Course Description: <input type='text' name='desc' /> </th> <th>Starting Text: <input type='text' name='starting' /> </th> <th>Completed Text: <input type='text' name='completed' /> </th> <th>Course Target Percent: <input type='text' name='comppercent' /> </th></tr> <th>Percent Gain: <input type='text' name='percent' /> Example 1 to 99999 </th> <th>Clicks Per Day: <input type='text' name='clicks' /> Example 18 </th> <th>Clicks Per Session: <input type='text' name='perclicks' /> Example 3 Per Session </th> <th>Cost (Money): <input type='text' name='cost' /> </th> <th>Cash Prize: <input type='text' name='cashprize' /> </th></tr> <th>Item Prize: ".item_dropdown($c,'item')." </th> <th>Item Name: <input type='text' name='itemname' /> </th> <th>Item Qty: <input type='text' name='qty' /> </th> <th>Crystals Prize: <input type='text' name='crystals' /> </th> <th>Cost (Energy): <input type='text' name='energy' /> </th></tr> <th>Strength Gain: <input type='text' name='str' value='0.0000'/> </th> <th>Agility Gain: <input type='text' name='agil' value='0.0000'/> </th> <th>Guard Gain: <input type='text' name='gua' value='0.0000'/> </th> <th>Labour Gain: <input type='text' name='lab' value='0.0000'/> </th> <th>IQ Gain: <input type='text' name='iq' value='0.000000'/> </th></tr> <th><center><input type='submit' value='Add Course' /></center></form></tr></table> [url='staff_courses.php?action=editcourse'][ EDIT A COURSE ][/url] [url='staff_courses.php?action=delcourse'][ DELETE A COURSE ][/url]"; } function accept_course() { global $db,$ir,$c,$userid; if($ir['user_level'] != 2) { die("403"); } $cost=abs((int) $_POST['cost']); $energy=abs((int) $_POST['energy']); $comppercent=abs((int) $_POST['comppercent']); $percent=abs((int) $_POST['percent']); $clicks=abs((int) $_POST['clicks']); $perclicks=abs((int) $_POST['perclicks']); $cashprize=abs((int) $_POST['cashprize']); $crystals=abs((int) $_POST['crystals']); $item=abs((int) $_POST['item']); $qty=abs((int) $_POST['qty']); $str=abs((float) $_POST['str']); $agil=abs((float) $_POST['agil']); $gua=abs((float) $_POST['gua']); $lab=abs((float) $_POST['lab']); $iq=abs((float) $_POST['iq']); $name=$_POST['name']; if($_POST['name'] && $_POST['desc'] && $cost && $cashprize && $item && $qty) { $db->query("INSERT INTO schools VALUES(NULL, '{$_POST['name']}', '{$_POST['desc']}', '{$_POST['starting']}', '{$_POST['completed']}', '$cost', '$energy', '$cashprize', '$crystals', '$item', '{$_POST['itemname']}', '$qty', '$comppercent', '$percent', '$clicks', '$perclicks', '$str', '$gua', '$lab', '$agil', '$iq')"); print "Course {$_POST['name']} added. [url='staff_courses.php?action=editcourse'][ EDIT A COURSE ][/url] [url='staff_courses.php?action=delcourse'][ DELETE A COURSE ][/url] [url='staff_courses.php?action=addcourse'][ ADD ANOTHER COURSE ][/url]"; stafflog_add("Added course {$_POST['name']}"); } } function editcourse() { global $db, $ir, $c, $h, $userid; switch($_POST['step']) { case "2": $cost=abs((int) $_POST['cost']); $energy=abs((int) $_POST['energy']); $comppercent=abs((int) $_POST['comppercent']); $percent=abs((int) $_POST['percent']); $clicks=abs((int) $_POST['clicks']); $perclicks=abs((int) $_POST['perclicks']); $cashprize=abs((int) $_POST['cashprize']); $item=abs((int) $_POST['item']); $qty=abs((int) $_POST['qty']); $str=abs((float) $_POST['str']); $agil=abs((float) $_POST['agil']); $gua=abs((float) $_POST['gua']); $lab=abs((float) $_POST['lab']); $iq=abs((float) $_POST['iq']); $name=$_POST['name']; $db->query("UPDATE schools SET crNAME='$name', crDESC='{$_POST['desc']}', crSTARTING='{$_POST['starting']}', crCOMPLETED='{$_POST['completed']}', crCOST=$cost, crCASHPRIZE=$cashprize, crITEM=$item, crITEMNAME='{$_POST['itemname']}', crQTY=$qty, crENERGY=$energy, crCOMPPERCENT=$comppercent, crPERCENT=$percent, crCLICKS=$clicks, crPERCLICKS=$perclicks, crSTR=$str, crGUARD=$gua, crLABOUR=$lab, crAGIL=$agil, crIQ=$iq WHERE crID={$_POST['id']}"); print "<h1>Course $name was edited successfully.</h1> [url='staff_courses.php?action=addcourse'][ ADD ANOTHER COURSE ][/url] [url='staff_courses.php?action=editcourse'][ EDIT A COURSE ][/url] [url='staff_courses.php?action=delcourse'][ DELETE A COURSE ][/url]"; stafflog_add("Edited course $name"); break; case "1": $q=$db->query("SELECT * FROM schools WHERE crID={$_POST['course']}"); $old=$db->fetch_row($q); print "<h3>Editing a Course</h3><hr /> <form action='staff_courses.php?action=editcourse' method='post'> <table border='1' width='100%' class='table' cellspacing='3' cellpadding='4'> <tr> <input type='hidden' name='step' value='2' /> <input type='hidden' name='id' value='{$_POST['course']}' /> <th>Name: <input type='text' name='name' value='{$old['crNAME']}' /> </th> <th>Description: <input type='text' name='desc' value='{$old['crDESC']}' /> </th> <th>Starting Text: <input type='text' name='starting' value='{$old['crSTARTING']}' /> </th> <th>Completed Text: <input type='text' name='completed' value='{$old['crCOMPLETED']}' /> </th> <th>Course Target(percent): <input type='text' name='comppercent' value='{$old['crCOMPPERCENT']}' /> </th></tr> <th>Percent Gain (percent): <input type='text' name='percent' value='{$old['crPERCENT']}' /> </th> <th>Clicks Per Day : <input type='text' name='clicks' value='{$old['crCLICKS']}' /> </th> <th>Clicks Per Session: <input type='text' name='perclicks' value='{$old['crPERCLICKS']}' /> </th> <th>Cost (Money): <input type='text' name='cost' value='{$old['crCOST']}' /> </th> <th>Cash Prize : <input type='text' name='cashprize' value='{$old['crCASHPRIZE']}' /> </th></tr> <th>Item Prize: ".item_dropdown($c,'item')." </th> <th>Item Name : <input type='text' name='itemname' value='{$old['crITEMNAME']}' /> </th> <th>Quantity : <input type='text' name='qty' value='{$old['crQTY']}' /> </th> <th>Cost (Energy): <input type='text' name='energy' value='{$old['crENERGY']}' /> </th> <th>Strength Gain: <input type='text' name='str' value='{$old['crSTR']}' /> </th></tr> <th>Agility Gain: <input type='text' name='agil' value='{$old['crAGIL']}' /> </th> <th>Guard Gain: <input type='text' name='gua' value='{$old['crGUARD']}' /> </th> <th>Labour Gain: <input type='text' name='lab' value='{$old['crLABOUR']}' /> </th> <th>IQ Gain: <input type='text' name='iq' value='{$old['crIQ']}' /> </th> <input type='submit' value='Edit Course' /></form></tr></table> [url='staff_courses.php?action=addcourse'][ ADD A COURSE ][/url] [url='staff_courses.php?action=delcourse'][ DELETE A COURSE ][/url]"; break; default: print "<h3>Editing a Course</h3><hr /> <form action='staff_courses.php?action=editcourse' method='post'> <input type='hidden' name='step' value='1' /> Course: ".course_dropdown($c, "course")." <input type='submit' value='Edit Course' /></form>"; break; } } function delcourse() { global $db,$ir,$c,$h,$userid; if($_POST['course']) { $q=$db->query("SELECT * FROM schools WHERE crID={$_POST['course']}"); $old=$db->fetch_row($q); $db->query("UPDATE users SET course=0, cpercent=0 WHERE course={$_POST['course']}"); $db->query("DELETE FROM schools WHERE crID={$_POST['course']}"); print "Course {$old['crNAME']} deleted. <h1>Course $name was Removed from Game successfully.</h1> [url='staff_courses.php?action=addcourse'][ ADD ANOTHER COURSE ][/url] [url='staff_courses.php?action=editcourse'][ EDIT A COURSE ][/url] [url='staff_courses.php?action=delcourse'][ DELETE A COURSE ][/url]"; stafflog_add("Deleted course {$old['crNAME']}"); } else { print "<h3>Deleting a Course</h3><hr /> [url='staff_courses.php?action=editcourse'][ EDIT A COURSE ][/url] [url='staff_courses.php?action=delcourse'][ DELETE A COURSE ][/url] <form action='staff_courses.php?action=delcourse' method='post'> Course: ".course_dropdown($c, "course")." <input type='submit' value='Delete Course' /></form> [url='staff_courses.php?action=editcourse'][ EDIT A COURSE ][/url] [url='staff_courses.php?action=addcourse'][ ADD A COURSE ][/url]"; } } function report_clear() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $_GET['ID'] = abs((int) $_GET['ID']); stafflog_add("Cleared player report ID {$_GET['ID']}"); $db->query("DELETE FROM preports WHERE prID={$_GET['ID']}"); print "Report cleared and deleted! [url='staff_users.php?action=reportsview']> Back[/url]"; } $h->endpage(); ?> -
mccode-v2 [EDUCATION MOD] Totally Re-worked with many additional Options.
Uridium replied to Uridium's topic in Free Modifications
Im still digging i havent forgotten :) Couldnt find it so ive had to reinstall MCC on my pc and edit the files to make them work... Will repost working copy... -
mccode-v2 [EDUCATION MOD] Totally Re-worked with many additional Options.
Uridium replied to Uridium's topic in Free Modifications
Let me dig up my copies i may have altered this and never updated it...... -
mccode-v2 [EDUCATION MOD] Totally Re-worked with many additional Options.
Uridium replied to Uridium's topic in Free Modifications
Wow im surprised people are still using this mod :) -
How comes Paul gets an online Guard Dog I want one but with sharper teeth ;)
-
Tested your script on my localhost and the bars were fine for me...
-
I personally think a better installation script would be an idea the current v2 doesnt offer a great deal to the first time setup
-
with just scouring your code all i can see is that this may be the issue #container { width: 800px; margin: auto; border: 2px solid #000000; background-color: #999999; clear: both; overflow: hidden; margin-bottom: 10px; } #menu { width: 800px; height: 17px; background-color: #333333; border-bottom: 2px solid #000000; border-top: 2px solid #000000; margin-bottom: 10px; padding-top: 3px; text-align: center; } #side { width: 200px; margin-left: 15px; margin-bottom: 15px; float: left; } dont quote me though im not great with CSS but id start there
-
Sorry wasnt aware it was a 180 day wait i was on the assumption it was 5- 7 days sorry about that.
-
The moral to this story is dont include a download link until Paypal has completed the Transaction if a Genuine user is truly genuine they will wait for payment to go ahead and be credited a download link there after...
-
I remember this program the guy was a jester or what ever he was dressed up as was a kids tv started at about 3:30pm just after school
-
Gold showed the whole series a few months ago recorded the lot :)