Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,691
  • Joined

  • Last visited

  • Days Won

    85

Everything posted by Uridium

  1. 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
  2. Once ive worked out the problem with IE not staying on the bottom i'll post but at minute IE is being a pain
  3. i your using the script for my houses then simply add this to your table House =
  4. 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
  5. 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..
  6. 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;
  7. in your stock chart change include "mysql.php"; to include "config.php"; as mysql is for V1 and Config for V2
  8. $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);
  9. As i dont actually own a public game i am willing however to view this on localhost if that helps in anyway
  10. 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
  11. 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
  12. 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
  13. 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
  14. very Nice work :) + 1 Billion :)
  15. 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 ;)
  16. 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.
  17. 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
  18. 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
  19. 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.
  20. 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
  21. 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,,,
  22. 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..
  23. That has got to be one of the WORST efforts ive ever seen on this forum, Now i dont speak hastily to anyone who contributes but your actually selling this bag of crap......
  24. Im having a few problems finding the script on here i agree its hard to locate but im sure i called the script. ITEMS GET DAMAGED WHEN ATTACKED I'll keep looking for it
  25.   This type of mod has already been done for items that get damaged i made one a few months ago check forums
×
×
  • Create New...