Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,667
  • Joined

  • Last visited

  • Days Won

    75

Everything posted by Uridium

  1. Tutorial: v1 - v2 Conversion
  2. Then ask for help im sure someone on here even myself will help out.
  3. Or try the easy way Look over every file of MCC and see how its put together. How it add things to database how it calls for things from database then mix n match your scripts if it dont work try again start with small snippets and you'll soon be on your way Just as i did .
  4. Whats the big fascination about competing with this site. Instead of competing against it make something thats Unique never been done and maybe the site your competing against may one day try to compete against you.
  5. Update to this mod.. 1 = Recoded so users Cant type in full URL they only add the Video ID... 2 = All Videos that users add are set to PENDING mode for Staff to view before releasing as Public... 3 = Visual Update looks better... 4 = Now supports Media from most well used Sites ( And can be edited to aquire more ) FOOTNOTE I havent updated the script on the topic as yet will probably create a new one so as to not confuse people
  6. That can be done also. Regards exsisting members a Link in loggedin will remedy that and will place them into a random group when they next login.
  7. Its just an idea to get everyone on your game to stay playing longer and have some reason to play whilst they level up better to be able to join Gangs... Ive been working with and watching mcc long enough to Realise that its boring as hell and can be daunting on new members few more ideas.. 1 = new user is assigned a level 5 protector for first 2 weeks of game if the protector fails to protect the new user then they are deducted 10 protection points. ( HOWEVER ) if new user fails to login to game after 72 hours then the protector is released from their protection duties for this player...
  8. Ok made an edit this   $q = $db->query("SELECT offline, online, reason, hour, minute, timenow, maintpage FROM maintenance WHERE maintpage='inventory.php'"); $t = $db->fetch_row($q); $db->query("SELECT * FROM users WHERE maintpage='inventory.php'"); if ($ir['maintpage']==$t['maintpage']) { echo'<h1>Inventory Closed for Maintenance</h1>'; echo' <font size=3>'.$t['reason'].'</font> this Page will be back online in '.$t['hour'].' Hour(s) And '.$t['minute'].' Minute(s) Time from when page was Placed in Maintenance mode at [b]'.$t[timenow].'[/b]'; echo " Time Now: [b]".date('g:i:s a')."[/b]"; die(); }   to this   $q = $db->query("SELECT offline, online, reason, hour, minute, timenow, maintpage FROM maintenance WHERE maintpage='inventory.php'"); $t = $db->fetch_row($q); $db->query("SELECT * FROM users WHERE maintpage='inventory.php'"); if ($ir['maintpage'] && $t['maintpage']) { echo'<h1>Inventory Closed for Maintenance</h1>'; echo' <font size=3>'.$t['reason'].'</font> this Page will be back online in '.$t['hour'].' Hour(s) And '.$t['minute'].' Minute(s) Time from when page was Placed in Maintenance mode at [b]'.$t[timenow].'[/b]'; echo " Time Now: [b]".date('g:i:s a')."[/b]"; die(); }   Working fine now for me...
  9. I'll have a look at my Original script and see if ive missed any thing out whilst posting..
  10. so here my idea.. Admin creates 4 new groups or how ever many they want.. For instance im going to use rivers in the UK,, Swale, Wharfe, Aire, Nidd When a new users registers than are randomly selected for one of the above groups,,, They stay with that group for the duration of game play.. The idea is that any attack wins from anyone in the group then that group gains points, This will be a team effort...
  11. Almost every game created using mcc has some sort of gang or another but what about those poor souls that join the game and are sided out cos of their ability... So my suggestion is if the game is for everyone why not create something as a subgame for the less fortunate to take part in.
  12. I would personally make a new table called Staff thats not part of the user table. so something like this would work.. [mysql]CREATE TABLE IF NOT EXISTS `staff` ( `staff_id` int(11) NOT NULL auto_increment, `staff_level` int(11) NOT NULL, `staff_status` varchar(20) NOT NULL, `staff_duties` varchar(100) NOT NULL, `staff_vacation` varchar(3) NOT NULL, `staff_killer` varchar(3) NOT NULL, PRIMARY KEY (`staff_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;[/mysql]
  13. Pages will only close if in users the offline or maint is set to 1
  14. This was fixed for KC on msn but for those having problems heres the solution when adding this part to each page as suggested on page 1 of this topic... FOR INVENTORY.PHP $q = $db->query("SELECT offline, online, reason, hour, minute, timenow, maintpage FROM maintenance WHERE maintpage='inventory.php'"); $t = $db->fetch_row($q); $db->query("SELECT * FROM users WHERE maintpage='inventory.php'"); if ($ir['maintpage']==$t['maintpage']) { echo'<h1>Inventory Closed for Maintenance</h1>'; echo' <font size=3>'.$t['reason'].'</font> this Page will be back online in '.$t['hour'].' Hour(s) And '.$t['minute'].' Minute(s) Time from when page was Placed in Maintenance mode at [b]'.$t[timenow].'[/b]'; echo " Time Now: [b]".date('g:i:s a')."[/b]"; die(); }   FOR FORUMS.PHP   $q = $db->query("SELECT offline, online, reason, hour, minute, timenow, maintpage FROM maintenance WHERE maintpage='forums.php'"); $t = $db->fetch_row($q); $db->query("SELECT * FROM users WHERE maintpage='forums.php'"); if ($ir['maintpage']==$t['maintpage']) { echo'<h1>Forums Closed for Maintenance</h1>'; echo' <font size=3>'.$t['reason'].'</font> this Page will be back online in '.$t['hour'].' Hour(s) And '.$t['minute'].' Minute(s) Time from when page was Placed in Maintenance mode at [b]'.$t[timenow].'[/b]'; echo " Time Now: [b]".date('g:i:s a')."[/b]"; die(); }   As you can see from the above all ive done is altered the name inventory.php to forums.php Continue this task until all files are done except globals.php global_func.php and any class files.
  15. I think he means the day to day running of it
  16. You seem to be swearing at yourself. not exactly sure why
  17. If anyone wishes to improve on this Mod i dont mind you taking the credit for it. Youve probably got the start of a decent mod so im okies about anyone wishing to expand or remodify it.
  18. 1 mod out of 45 that ive done cant be too bad ;)
  19.   Thats quite true Pudda but at moment i havent got the time i used to have to make things more impressive :(
  20. [mysql]CREATE TABLE IF NOT EXISTS `maintenance` ( `offline` varchar(7) NOT NULL, `online` varchar(6) NOT NULL, `reason` text NOT NULL, `hour` int(11) NOT NULL, `minute` int(11) NOT NULL, `timenow` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, `maintpage` varchar(255) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; INSERT INTO `maintenance` (`offline`, `online`, `reason`, `hour`, `minute`, `timenow`, `maintpage`) VALUES ('', 'Online', '', 2, 4, '2010-05-08 20:01:30', 'No Pages Are being Worked On'); [/mysql] Second MYSQL for users table [mysql]ALTER TABLE `users` ADD `offline` INT( 2 ) NOT NULL default '0'; ALTER TABLE `users` ADD `maintpage` VARCHAR( 255 ) NOT NULL;[/mysql]   Call this file staff_maintenance.php   <?php /* Maintenance mode illusions 2010 * for [email][email protected][/email] */ include "sglobals.php"; switch($_GET['site_mode']) { case 'maintain': maintenance_mode_on(); break; case 'maintainoff': maintenance_mode_off(); break; case 'maintaindo': maintenance_do_on(); break; case 'maintaindeact': maintenance_do_off(); break; case 'maintainpage': maintenance_do_page(); break; case 'maintainpageacc': maintenance_do_page_now(); break; default: print "Error: This script requires an action."; break; } function maintenance_mode_on() { global $db,$ir, $maint, $c; if($ir['user_level'] != 2) { die("<h1><center>Hmmm this page is clean maybe you should not be here</h1></center>"); } $q = $db->query("SELECT offline, online, reason, maintpage FROM maintenance where offline=Offline"); $t = $db->fetch_row($q); echo'Current site Status = <font size=2>'.$t['online'].''.$t['offline'].'</font> '; echo'Current Page Closed = <font size=2>'.$t['maintpage'].'</font>'; echo' '; print "<h3>Turn Site Maintenance On</h3> <form action='staff_maintenance.php?site_mode=maintaindo' method='post'> <input type='hidden' name='online' value='Online' /> <input type='submit' value='Reopen Page/Site' /></form> Or Give Reason For Closure <form action='staff_maintenance.php?site_mode=maintaindeact' method='post'> <input type='hidden' name='offline' value='Offline'/> <textarea rows='6' cols='40' name='reason'></textarea> Expected Time to Re-Open site to Public: Hour/s: <input type='text' name='hour' maxlength='2' style='width:20px;'/> Minutes: <input type='text' name='minute' maxlength='2' style='width:20px;'/> <input type='hidden' name='timenow' > <input type='submit' value='Close Site' /></form> <h3>Close a Particular Page</h3> <form action='staff_maintenance.php?site_mode=maintainpageacc' method='post'> <input type='hidden' name='online' value='Online' /> Reason For Page Closure <form action='staff_maintenance.php?site_mode=maintaindeact' method='post'> <input type='hidden' name='offline' value='Offline'/> <textarea rows='6' cols='40' name='reason'></textarea> Expected Time to Re-Open site to Public: Hour/s: <input type='text' name='hour' maxlength='2' style='width:20px;'/> Minutes: <input type='text' name='minute' maxlength='2' style='width:20px;'/> <input type='hidden' name='timenow' > Close a Page: <input type='text' name='maintpage' maxlength='100' style='width:100px;'/>[size="1"] [Leave Blank to Close Every Page][/size] <input type='submit' value='Close Page' /></form>"; } function maintenance_do_on() { global $db,$ir, $c, $maint, $reason; if($ir['user_level'] != 2) { die("<h1><center>Hmmm this page is clean maybe you should not be here</h1></center>"); } if($maint['online'] = 'Online') { //$db->query("TRUNCATE TABLE maintenance;"); $db->query("UPDATE maintenance SET offline='', online='{$_POST['online']}', reason='', maintpage='[b]No Pages Are being Worked On[/b]'"); $db->query("UPDATE users SET offline=0"); $db->query("UPDATE users SET maintpage=''"); print "<h2>Mode Changed Successfully</h2> Site is now [b]'{$_POST['online']}'[/b]"; if($t['reason'] = '') { print"[b]No Reason was given[/b]"; die(); } } } function maintenance_do_off() { global $db,$ir, $c, $maint, $reason; if($ir['user_level'] != 2) { die("<h1><center>Hmmm this page is clean maybe you should not be here</h1></center>"); } if($maint['offline'] = 'Offline') { //$db->query("UPDATE maintenance SET offline='{$_POST['offline']}', online='', reason='{$_POST['reason']}', hour='{$_POST['hour']}', minute='{$_POST['minute']}', unix_timestamp()"); $db->query("TRUNCATE TABLE maintenance;"); $db->query("UPDATE users SET offline=1 WHERE user_level=1 "); $db->query("INSERT INTO maintenance VALUES('{$_POST['offline']}', '', '{$_POST['reason']}', '{$_POST['hour']}', '{$_POST['minute']}', NOW(), '[b] All Pages are closed to Public View [/b]')"); $db->query("UPDATE users SET maintpage='' WHERE user_level=1 "); print "<h2>Mode Changed Successfully</h2> Site is now [b]'{$_POST['offline']}' $offline[/b] For the following Reason: [b]'{$_POST['reason']}'[/b] Expected Downtime = {$_POST['hour']} hour(s) and {$_POST['minute']} minute(s)"; echo " ".date('g:i:s a'); if($t['timenow'] > 0) { $ll=time()-$t['timenow']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } echo ''.$_POST['timenow'].''.$str2.''; if($t['reason'] = '') { print"[b]No Reason was given[/b]"; die(); } } } function maintenance_do_page_now() { global $db,$ir, $c, $maint, $reason; if($ir['user_level'] != 2) { die("<h1><center>Hmmm this page is clean maybe you should not be here</h1></center>"); } if($maint['offline'] = 'Offline') { //$db->query("UPDATE maintenance SET offline='{$_POST['offline']}', online='', reason='{$_POST['reason']}', hour='{$_POST['hour']}', minute='{$_POST['minute']}', unix_timestamp()"); $db->query("TRUNCATE TABLE maintenance;"); $db->query("UPDATE users SET offline=0 WHERE user_level=1 "); $db->query("INSERT INTO maintenance VALUES('', '{$_POST['online']}', '{$_POST['reason']}', '{$_POST['hour']}', '{$_POST['minute']}', NOW(), '{$_POST['maintpage']}')"); $db->query("UPDATE users SET maintpage='{$_POST['maintpage']}'"); print "<h2>Mode Changed Successfully</h2> Current Page [b]'{$_POST['maintpage']}' [/b] Has been Closed For the following Reason: [b]'{$_POST['reason']}'[/b] Expected Downtime = {$_POST['hour']} hour(s) and {$_POST['minute']} minute(s)"; } } $h->endpage(); ?>   Now open up header.php and add and where the CSS PART ends add   if($ir['offline'] > 0) { $q = $db->query("SELECT offline, online, reason, hour, minute, timenow FROM maintenance where offline=Offline AND NOW()"); $t = $db->fetch_row($q); echo'<h1>Currently Closed for Maintenance</h1>'; echo' <font size=3>'.$t['reason'].'</font> Site will be back online in '.$t['hour'].' Hour(s) And '.$t['minute'].' Minute(s) Time from when Site was Placed in Maintenance mode at [b]'.$t[timenow].'[/b]'; echo " Time Now: [b]".date('g:i:s a')."[/b]"; die(); }   now the Boring part and yes sorry but this is needed for everything to work add this Piece of code under each page that users can view... after the include"globals.php";   $q = $db->query("SELECT offline, online, reason, hour, minute, timenow, maintpage FROM maintenance WHERE maintpage='inventory.php'"); $t = $db->fetch_row($q); $db->query("SELECT * FROM users WHERE maintpage='inventory.php'"); if ($ir['maintpage']==$t['maintpage']) { echo'<h1>Inventory Closed for Maintenance</h1>'; echo' <font size=3>'.$t['reason'].'</font> this Page will be back online in '.$t['hour'].' Hour(s) And '.$t['minute'].' Minute(s) Time from when page was Placed in Maintenance mode at [b]'.$t[timenow].'[/b]'; echo " Time Now: [b]".date('g:i:s a')."[/b]"; die(); }   The above is for Inventory Where the mention of inventory is you need to replace that to match the script it will be going into... Final part for smenu.php   <hr />[b]Maintenance Mode[/b] > [url='staff_maintenance.php?site_mode=maintain']Maintenance Mode[/url]   And your done
  21. Sorry for delay was editing the admin page so it showed moe details... Will post up when finished
  22. There is a mod that closes pages which can be found here Websters Mod But I decided to make some adjustments to my own mod which i never released so this mod will allow 1 = Reason for closure of page or Site.. 2 = Timestamp is included when page/site is closed so users know what time it shut down 3 = Admins can add A Reopening time so users can come back at that time to view.. 4 = Actual time is given so users can see what is the current time... 5 = Users above level 1 can still access pages even when closed... 6 = One click Function to reopen entire site or page... Few Screenies Staff Section all site offline staff all pages online Staff Page with 1 file offline Onfirmation on page closure Let me get my edits together and i will post...
  23. I made a mod like this havent released it (which is probably a good job cos theres one here lol ) My version was slightly different It has a One Press function to shut down every page ( admin can add reason why for downtime + when its closed the page is timestamped when users view the closed page it tells them what time it was closed and what time its expected to be reopened ) Forgot to mention you could also close down seperate pages...
  24. Mcc styled games are only as good as the effort, Thought, Stamina you put into it. You could have 800 users Logged into your game but it dont mean that 800 are paying customers. Ive read your ranges from (A - G) and none of them mention Security which with a game your planning on Creating would be (A) on your list of priorities. A few factors to concider. there are thousands of mcc styled games out there even ones not coded with mcc but they reflect the same image. Torn City's Members are quite large but how many of them are Fictional Characters made up by Chedburn to make the game look well used....
  25. */5 * * * * curl http://$path/cron_fivemins.php?code=$code * * * * * curl http://$path/cron_minute.php?code=$code 0 * * * * curl http://$path/cron_hour.php?code=$code 0 0 * * * curl http://$path/cron_day.php?code=$code   Not sure if this is what ya want $path = Your domain $code = As furn stated look inside your config.php for the long code Or make one up and add it to the $code in your config.php Bare in mind the $code for the CURL needs to match that of your new code
×
×
  • Create New...