-
Posts
2,667 -
Joined
-
Last visited
-
Days Won
75
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
Thanks for that Shedh :) my damn notepad++ has just crashed and ive lost what ive just written so those viewing the site i posted the bar on bare with me till i re-fix the stupid thing..
-
I actually thought position: fixed; would have cured it but im using DIV to call for the Bar as its in sections. Reading up on the IE problem it seems IE dont like DIV much and uses FIXED only when theres a <class> statement which i want to try to avoid if possible heres the CSS for the positioning /*----- bar style -----*/ .ill-bar { position:fixed; /* to try cure IE problem */ bottom:0px; /* to try cure IE problem */ height: 30px; padding:0px; Padding-Bottom : 1px ; width:100%; background-color:#666666; border:#666666 solid 1px; } /* rounded top-left corner */ .ill-bar-rounded-tl { -webkit-border-top-left-radius:5px; -khtml-border-radius-topleft:5px; -moz-border-radius-topleft:5px; border-top-left-radius:5px; } /* rounded top-right corner */ .ill-bar-rounded-tr { -webkit-border-top-right-radius:5px; -khtml-border-radius-topright:5px; -moz-border-radius-topright:5px; border-top-right-radius:5px; } /*----- bar separator -----*/ .ill-separator-left { float:left; width:1px; height:100%; background-color:#999999; } .ill-separator-right { float:right; width:1px; height:100%; background-color:#999999; } /*----- bar button -----*/ .ill-bar-button ul { margin:0px; padding:0px; } .ill-bar-button li { float:left; list-style:none; } .ill-bar-button-right li { float:right; list-style:none; } .ill-bar-button li { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; color:#CCCCCC; cursor:pointer; padding:4px 8px 4px 8px; border:#666666 solid 1px; margin:2px; } /* button hover effect */ .ill-bar-button li:hover { color:#FFFFFF; background-color:#999999; border:#999999 solid 1px; padding:4px 8px 4px 8px; margin:2px; } /* rounded button corners */ .ill-bar-button-rounded li:hover { -webkit-border-radius:5px; -khtml-border-radius:5px; -moz-border-radius:5px; border-radius:5px; } /* default button's anchor text style */ .ill-bar-button li a:link, .ill-bar-button li a:visited { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; color:#CCCCCC; text-decoration:none; } .ill-bar-button li a:hover { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; color:#FFFFFF; text-decoration:none; } /*----- bar text container -----*/ .ill-bar-button div { float:left; } .ill-bar-button-right div { float:right; } .ill-bar-button div { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; color:#CCCCCC; padding:4px 8px 4px 8px; margin:4px 8px 4px 8px; border:#999999 solid 0px; } .ill-bar-button div a:link, .ill-bar-button div a:visited { color:#CCCCCC; text-decoration:none; } .ill-bar-button div a:hover { color:#FFFFFF; text-decoration:underline; } /*----- button tooltip -----*/ .ill-bar-button-tooltip { height:auto; padding:5px 10px 5px 10px; color:#FFFFFF; background-color:#36393D; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; } and inserts for header <div id="demo-bar"> <ul> <li alt="Home">[url="index.php"][img=icons/home.png][/url] [/list] <span class="ill-separator-left"></span> <ul> <li alt="Preferences">[url="preferences.php"][img=icons/information.png][/url] <li alt="inventory">[url="inventory.php"][img=icons/inventory.png][/url] <li alt="Avatars">[url="avatar.php"][img=icons/avatar_tiny.jpg][/url] <li alt="Chat">[url="chat.php"][img=icons/megaphone.gif][/url] [/list] <span class="ill-separator-left"></span> <ul class="ill-bar-button-left"> <li alt="Forums">[url="forums.php"][img=icons/forums.gif][/url] <li alt="Explore">[url="explore.php"][img=icons/explore.gif][/url] <li alt="NOT USED">[url=""][img=icons/notused.png][/url] <li alt="NOT USED">[url=""][img=icons/notused.png][/url] <li alt="NOT USED">[url=""][img=icons/notused.png][/url] [/list] <span class="ill-separator-left"></span> <div><li alt="Jail">[url="jail.php"]Jail [$jc][/url]<li alt="Hospital">[url="hospital.php"]Hospital [$hc][/url]<li alt="Profile">[url='viewuser.php?u={$ir[']Your Profile[/url]<li alt="Your Mail">[url="mailbox.php"]Mail [$mc][/url]<li alt="Your Events">[url="events.php"]Events [$ec][/url]</div> <span class="ill-separator-right"></span> <ul class="ill-bar-button-right"> <li alt="NOT USED">[url=""][img=icons/notused.png][/url] <li alt="NOT USED">[url=""][img=icons/notused.png][/url] [/list] <span class="ill-separator-right"></span> </div>
-
I do own a test site i dont actually own a game though cant be bothered with owning one id never get any mods made lol http://www.mccode.doom-nights.com is a site given to me kindly by CrazyT but my FTP program just doesnt want to seem to send files to it.
-
Ive placed a working copy on http://www.thisislondongame.com This isnt my game its just where im testing the mod for those using IE will see the problem but for those using Firefox should see it working perfectly as i dont have google chrome or opera and for those that do could you test it and tell me if the IE fault is also on either on the other browsers
-
Once ive worked out the problem with IE not staying on the bottom i'll post but at minute IE is being a pain
-
i your using the script for my houses then simply add this to your table House =
-
Its being a pain Online for IE it starts at the bottom until you scroll then it doent move... Yet of FF its working fine and staying on the taskbar
-
Ive managed to make a static bottom bar that will always stay at the bottom of your page this may come in handy for some people i'll take a screenie..
-
Use the GD Library to build a dynamic chart graphic
Uridium replied to wrx's topic in Free Modifications
4thdesign silly question but are you testing this on localhost or on your website as GD cant be used on localhost However if the file cannot call for config.php then you will need to help it along the way.. Example on your stockchart.php remove include "config.php"; and replace with session_start(); $config = DIRNAME(__FILE__) . '/config.php'; if(file_exists($config)) { include_once($config); } else { die("The game is being updated, please check back in a few seconds"); } define('MONO_ON', 1); $class_mysql = DIRNAME(__FILE__) . '/class/class_db_mysql.php'; if(file_exists($class_mysql)) { include_once($class_mysql); } else { die("The game is being updated, please check back in a few seconds"); } $db = new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c = $db->connection_id; $q=mysql_query("SELECT * FROM users ORDER BY username ASC LIMIT 6",$c); $strData = '$data=array('; While ($r=mysql_fetch_array($q)) { $strData .= "\"" . $r['username'] . "\"" . ' => ' . $r['money'] . ','; } $strData .= ');'; eval($strData); global $db, $ir, $c; -
Use the GD Library to build a dynamic chart graphic
Uridium replied to wrx's topic in Free Modifications
in your stock chart change include "mysql.php"; to include "config.php"; as mysql is for V1 and Config for V2 -
Use the GD Library to build a dynamic chart graphic
Uridium replied to wrx's topic in Free Modifications
$q=mysql_query("SELECT * FROM users ORDER BY username ASC LIMIT 6",$c); try $q=mysql_query("SELECT username, money FROM users ORDER BY username ASC LIMIT 6",$c); -
As i dont actually own a public game i am willing however to view this on localhost if that helps in anyway
-
Use the GD Library to build a dynamic chart graphic
Uridium replied to wrx's topic in Free Modifications
Nicely done and i would have thought this might have been in the paid mods section nice to see it for Free though.. Excellent work WRX -
Now that MCC can cope with any type of theme thats thrown at it why not a game that changes example mon- weds = Mystical theme and thurs - sun = mobstyle or whatever you want. And seeing as this hasnt been done before you will probably have one hek of a unique game on your hands.. 2 Games for the price of one cant be bad for any members
-
example on the theyfail.txt you could put something like Tried to hit you but fell over Tried to hit you but at the last minute collapsed getting up quickly to continue Tried to hit you as you strafe left they slide passed you your unharmed remember each time you press ENTER that will count as a new text
-
I see why everyone is confused cos ive just re-read what i put and it confused me aswell lol Ok in a nutshell on the statement where YOUHIT you need to make the youhit.txt with various different statements for that particular outcome. So print "<font color=red>{$_GET['nextstep']}. Using your {$r1['itmname']} you hit {$odata['username']} doing $mydamage damage ({$odata['hp']}) $word</font> \n"; $_SESSION['attackdmg']+=$mydamage; $_SESSION['attacklog'].="<font color=red>{$_GET['nextstep']}. Using {$myabbr} {$r1['itmname']} {$ir['username']} hit {$odata['username']} doing $mydamage damage ({$odata['hp']})</font> \n"; } the $word statement on this one will call for the file called youhit.txt This being $filename="youhit.txt";$words=file($filename);shuffle($words);$word=$words[0]; so for the statement you youfail use $word3 on the statment for youfail and for theyhit use $word2 for the statment theyhit and for theyfail use $word4 and for theyfail Hope that clears things up
-
very Nice work :) + 1 Billion :)
-
Yep i gotta say even i was dumb when i first had MCC but found the Installer to be quite helpful. Was well dissapointed though once installed and it was complete erm yeah crap ;)
-
I made some edits to the Chairs to show forward and reverse seating you will also need to edit a few files open pokeroutput.php and edit these lines... if(!$players[1]){$players[1]="<center>[img=$emptychair]";} if(!$players[2]){$players[2]="<center>[img=$emptychair]";} if(!$players[3]){$players[3]="<center>[img=$emptychair]";} if(!$players[4]){$players[4]="<center>[img=$emptychair]";} if(!$players[5]){$players[5]="<center>[img=$emptychair]";} if(!$players[6]){$players[6]="<center>[img=$emptychair]";} if(!$players[7]){$players[7]="<center>[img=$emptychair]";} if(!$players[8]){$players[8]="<center>[img=$emptychair]";} to if(!$players[1]){$players[1]="<center>[img=$emptychair]";} if(!$players[2]){$players[2]="<center>[img=$emptychair]";} if(!$players[3]){$players[3]="<center>[img=$emptychairbottom]";} if(!$players[4]){$players[4]="<center>[img=$emptychairbottom]";} if(!$players[5]){$players[5]="<center>[img=$emptychairbottom]";} if(!$players[6]){$players[6]="<center>[img=$emptychairbottom]";} if(!$players[7]){$players[7]="<center>[img=$emptychair]";} if(!$players[8]){$players[8]="<center>[img=$emptychair]";} now open up pokerconfig.php and find this $emptychair = 'images/poker/pokerchair.png'; and immediatley underneath add $emptychairbottom = 'images/poker/pokerchairbottom.png'; and upload the images below. to images/poker/ Your seating should now show as facing each opponent.
-
goto your PHPMYADMIN and count the fields for EVENTS they should match those your trying to INSERT nito if they dont you will need to either remove/add a field on PHPMYADMIN or edit the php file to reflect to the amount of fields on your EVENTS
-
to cure this all i did was remove this from authnticate.php header("Location: loggedin.php"); and replaced with echo "<script>document.location.href='loggedin.php'</script>"; echo "<script>'Content-type: application/octet-stream'</script>"; has worked fine ever since for Xammp
-
[mccodes V2] Add any type of video media to your game
Uridium replied to Uridium's topic in Free Modifications
This will allow users to add youtube and other video formats call this file usercreatedvideos.php <?php include "globals.php"; switch($_GET['videotask']) { case "search": search_video(); break; case "addvideo": addvideo(); break; case "editvideo": editvideo(); break; default: prefs_home(); break; } function prefs_home() { global $db,$ir,$c,$userid,$h; print "<h3>Media Tasks</h3> [url='usercreatedvideos.php?videotask=search']<h2>Search Online Media Sites</h2>[/url] [url='usercreatedvideos.php?videotask=addvideo']<h2>Add a Video</h2>[/url] "; if($ir['user_level'] == 2) { echo "[url='usercreatedvideos.php?videotask=editvideo']<h2>Staff Only edit Videos</h2>[/url] "; } $h->endpage(); exit(); } function addvideo() { global $db, $ir, $c, $h, $userid; /*if($ir['donatordays'] < 0) { echo "<h1> This option is for Donators only</h1>"; } exit();*/ $videoidlink=abs((int) $_POST['videoidlink']); $width=abs((int) $_POST['width']); $height=abs((int) $_POST['height']); if($_POST['name'] && $_POST['title'] && $videoidlink && $height && $width) { $db->query("INSERT INTO videos VALUES(NULL, '{$_POST['name']}', '{$_POST['title']}', '{$_POST['alphabet']}', '{$_POST['playerswflink']}', '{$_POST['videophplink']}', '{$_POST['allowaccess']}', '{$_POST['autostart']}', '$videoidlink', '$width', '$height', '{$_POST['source']}', '{$_POST['views']}')"); print "video Artist {$_POST['name']} Track Title {$_POST['title']} added. <h1>Preview</h1> <center><embed src='{$_POST['playerswflink']}' width='$width' height='$height' allowsiptallowaccess='{$_POST['videophplink']}' allowfullseen='true' flashvars='height=$height&width=$width&file={$_POST['videophplink']}&backcolor=0x000000&frontcolor=0xFFFFFF&lightcolor=0xCC0000&displayheight=$height&autostart={$_POST['autostart']}'/></a></embed></center> "; stafflog_add(" $username Added video {$_POST['title']}"); } else { $videoidrand=rand(50,5000); print "<h3>Add Your video</h3><hr /> <center> <form action='usercreatedvideos.php?videotask=addvideo' method='post'> Artist Name: <input type='text' name='name' /> Track Title: <input type='text' name='title' /> Alphabet Letter: <input type='text' name='alphabet' /> SWF Link: <input type='text' name='playerswflink' /> Example [url]http://www.youtube.com/v/WzvG2BFbc5E[/url] PHP link: <input type='text' name='videophplink' /> [url]http://www.youtube.com/v/WzvG2BFbc5E[/url] <input type='hidden' name='allowaccess' value='always' /> <input type='hidden' name='autostart' value='false' /> <input type='hidden' name='videoidlink' value='$videoidrand' /> Player Width: <input type='text' name='width' /> default 480 for Video and MP3 Player Height: <input type='text' name='height' />default 400 for Video or 30 for MP3 Added By: <input type='text' name='source' value='$username'/>Example youtube.com <input type='hidden' name='views' value='0'/>Example youtube.com <input type='submit' value='Add video' /></form>"; } } function editvideo() { global $db, $ir, $c, $h, $userid; switch($_POST['step']) { case "2": $videoidlink=abs((int) $_POST['videoidlink']); $width=abs((int) $_POST['width']); $height=abs((int) $_POST['height']); $name=$_POST['name']; $db->query("UPDATE videos SET artist='$name', tracktitle='{$_POST['title']}', videoalphabet='{$_POST['alphabet']}', playerswflink='{$_POST['playerswflink']}', videophplink='{$_POST['videophplink']}' , videoidlink=$videoidlink, width=$width, height=$height, source='{$_POST['source']}', views='{$_POST['views']}' WHERE videoID={$_POST['video']}"); print "video $name was edited successfully. <h1>Preview</h1> <center><embed src='{$_POST['playerswflink']}' width='$width' height='$height' allowsiptallowaccess='{$_POST['allowaccess']}' allowfullseen='true' flashvars='height=$height&width=$width&file={$_POST['videophplink']}&backcolor=0x000000&frontcolor=0xFFFFFF&lightcolor=0xCC0000&displayheight=$height&autostart={$_POST['autostart']}'/></a></embed></center> "; stafflog_add(" $username Edited video $name"); break; //$h->endpage(); case "1": $q=$db->query("SELECT * FROM videos WHERE videoID={$_POST['video']}"); $old=$db->fetch_row($q); if($ir['user_level'] == 2) { echo "<h1> This option is for Staff only</h1>"; } $h->endpage(); print "<h3>Editing a video</h3><hr /> <form action='usercreatedvideos.php?videotask=editvideo' method='post'> <input type='hidden' name='step' value='2' /> <input type='hidden' name='video' value='{$_POST['video']}' /> Artist Name <input type='text' name='name' value='{$old['artist']}' /> Track Title: <input type='text' name='title' value='{$old['tracktitle']}' /> Alphabet Entry: <input type='text' name='alphabet' value='{$old['videoalphabet']}' /> SWF link Text: <input type='text' name='playerswflink' value='{$old['playerswflink']}' /> PHP Link Text: <input type='text' name='videophplink' value='{$old['videophplink']}' /> <input type='hidden' name='allowaccess' value='{$old['allowaccess']}' /> <input type='hidden' name='autostart' value='{$old['autostart']}' />true or false Video ID Number: <input type='hidden' name='videoidlink' value='{$old['videoidlink']}' /> Player Width: <input type='text' name='width' value='{$old['width']}' /> Player Height: <input type='text' name='height' value='{$old['height']}' /> Added By: <input type='text' name='source' value='{$old['source']}' /> <input type='hidden' name='views' value='{$old['source']}' /> <input type='submit' value='Edit video' /></form>"; break; default: //$h->endpage(); print "<h3>Editing a video</h3><hr /> <form action='staff_videos.php?action=editvideo' method='post'> <input type='hidden' name='step' value='1' /> video: ".video2_dropdown($c, "video")." <input type='submit' value='Edit video' /></form>"; break; $h->endpage(); exit(); } } function search_video() { global $db, $ir, $c, $h, $userid; } print "<h3>Searching for Media</h3><hr /> <center> <form method='get' action='http://www.youtube.com/results?' target='_blank' /> <input type='text' name='search_query' /> <input type='submit' value='Search Youtube' /> </form></center> <form method='get' action='http://video.google.co.uk/videosearch?' target='_blank' /> <input type='text' name='q' /> <input type='submit' value='Search Google' /> </form></center> <form method='get' action='http://video.yahoo.com/search/?' target='_blank' /> <input type='text' name='p' /> <input type='submit' value='Search Yahoo' /> </form></center>"; $h->endpage(); ?> and add a link to usercreatedvideos.php to either your menu or explore or prefs page. -
[mccodes V2] Add any type of video media to your game
Uridium replied to Uridium's topic in Free Modifications
SCRIPT UPDATED will now accept Radio Stations just point the flash and the php to your asx file to the station you want to tune into. example http://loudcity.com/player/crossfire-radio/asx.asx -
Another downfall to flash menus they will always show links on the orig mcc when in hosp links like explore disappear but on the flash youd need to make 3 flash files to compensate for being in hosp or jail,,,
-
I have figured out a new method to solve the issue with security on this mod the newer system will now.... A = When new user signsup an email is sent to the owners address with chosen password and keypass B = the txt version of the password is reset once the user has used their keypass sent to confirm their email C = The keypass once used is randomly reset and a new keypass is sent to the owners email incase of Loss of pass D = Re-inserting the new keypass into the lost password will send out the users Username and pass for that account... E = No TXT password is kept on the dbase but is cached on a secure file..