-
Posts
2,701 -
Joined
-
Last visited
-
Days Won
88
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
The houses on MCC are always at a set price even though i made a mod so when you sell them you could sell them at half the amount. so my thinknig is if a house can be bought new at say $50,000 and sold at $25,000 then why cant a user buy the house which was sold at $25,000 with reduced will as its now second hand :)
-
Re: Quests!! I'll +1 ya :) i havent tried it but looked over it
-
[Mccodes V2] [BIG MOD] Trading Card Game [$15]
Uridium replied to Joel's topic in Paid Modifications
Re: [Mccodes V2] [bIG MOD] Trading Card Game [$15] Damn joel lol your killing my way of thinking its great when it becomes obsessive Excellent Addition, Excellent Aspect and finally An original Idea Tru to form :) +1 -
Re: [v2] Viewuser Visual Update Nice addition Sniko deffo +1 from me :)
-
[MCcode V2 or V1] raDiO's Raffle Script [$10 USD]
Uridium replied to radio_active's topic in Paid Modifications
Re: [MCcode V2 or V1] raDiO's Raffle Script [$10 USD] For those having issues with the cron_weekly cron adding events then get rid of the evnt section completely and look inside your staff.php for this line $db->query("INSERT INTO announcements VALUES('{$_POST['text']}', unix_timestamp())"); $db->query("UPDATE users SET new_announcements=new_announcements+1"); after removing the event_add from the cron_weekly then add this $db->query("INSERT INTO announcements VALUES('The following people have won this weeks raffle: $message There is \$$extra in the pot to start off the new week. ', unix_timestamp())"); $db->query("UPDATE users SET new_announcements=new_announcements+1"); This will add to your Announcements rather than cluttering up your Events -
Re: [MMCODES V2] HACKING ATTEMPTS LOGGED Cheers for the addon matey +1
-
open up staff_punit.php and where the function ip_search_submit() starts over write with this.. function ip_search_submit() { global $db,$ir,$c,$h,$userid, $domain; print "Searching for users with the IP: [b]{$_POST['ip']}[/b] <table width=75%><tr style='background:gray'> <th>Track User</th><th>User</th> <th>Level</th> <th>Money</th> </tr>"; $q=$db->query("SELECT * FROM users WHERE lastip='{$_POST['ip']}'"); $ids=array(); while($r=$db->fetch_row($q)) { $ids[]=$r['userid']; print "\n<tr> <td> [url='http://whatismyipaddress.com/staticpages/index.php/ip-details?ip={$_POST[']Track {$_POST['ip']}[/url]</td> <td> [url='viewuser.php?u={$r[']{$r['username']}[/url]</td> <td> {$r['level']}</td> <td>{$r['money']}</td> </tr>"; } print "</table> [b]Mass Jail[/b] <form action='staff_punit.php?action=massjailip' method='post'> <input type='hidden' name='ids' value='".implode(",",$ids)."' /> Days: <input type='text' name='days' value='300' /> Reason: <input type='text' name='reason' value='Same IP users, Mail fedjail@{$domain} with your case.' /> <input type='submit' value='Mass Jail' /></form>"; } You can now track your users IP by country
-
Re: [MCCODES v2] Trivia Quiz Creator I forgot all about the addition to this mod oops
-
Re: Maintenance mode? oops my bad it should have been if($ir['mainmode] = 1) snd underneath it should have been else if($ir['user_level'] = 2) you get the idea lol
-
Re: Maintenance mode? You could just create a sql in the user table alter table users add mainmode INT (11) default 0; add to each script if($ir['user_level'] = 1) { die("<h1>Maintenance Mode Come Back Later</h1>"); } The above will allow staff to go on line rather than members
-
[mcCodes v2] Donator Pack About to Expire Warning
Uridium replied to CainFool's topic in Free Modifications
Re: [mcCodes v2] Donator Pack About to Expire Warning You can add a staff section for this which will inform Donators of new and upcoming functions well before non paying members get to know. or use it for somthing completley different,, -
[mcCodes v2] Donator Pack About to Expire Warning
Uridium replied to CainFool's topic in Free Modifications
Re: [mcCodes v2] Donator Pack About to Expire Warning was messing with this might come in useful might not.... create SQLS CREATE TABLE IF NOT EXISTS `donevents` ( `donevID` int(11) NOT NULL auto_increment, `donevUSER` int(11) NOT NULL default '0', `donevTIME` int(11) NOT NULL default '0', `donevREAD` int(11) NOT NULL default '0', `donevTEXT` text NOT NULL, PRIMARY KEY (`donevID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; add this to your events.php before the final endpage statement if($ir['donatordays'] == 0) { exit(); $h->endpage(); } $_GET['delete1'] = abs((int) $_GET['delete1']); if($_GET['delete1']) { $db->query("DELETE FROM donevents WHERE donevID={$_GET['delete']} AND donevUSER=$userid"); print "[b]Event Deleted[/b] "; } if($_GET['delall31']) { print "This will delete all your events. There is [b]NO[/b] undo, so be sure. > [url='events.php?delall231=1']Yes, delete all my events[/url] > [url='events.php']No, go back[/url] "; $h->endpage(); exit; } if($_GET['delall231']) { $am=$db->num_rows($db->query("SELECT * FROM donevents WHERE donevUSER=$userid")); $db->query("DELETE FROM donevents WHERE donevUSER=$userid"); print "All [b]{$am}[/b] donevents you had were deleted. > [url='events.php']Back[/url] "; $h->endpage(); exit; } print "<h1>[b]Latest 10 Donator events</h1>[/b]<hr /> > [url='events.php?delall31=1']Delete All Events[/url]<hr />"; $q=$db->query("SELECT * FROM donevents WHERE donevUSER=$userid ORDER BY donevTIME DESC LIMIT 10;"); print "<table width=75% cellspacing=1 class='table'> <tr style='background:gray;'> <th>Time</th> <th>Event</th><th>Links</th> </tr>"; while($r=$db->fetch_row($q)) { print "<tr><td>".date('F j Y, g:i:s a',$r['donevTIME']); if (!$r['donevREAD']) { print " [b]New![/b]"; } print "</td><td>{$r['donevTEXT']}</td><td>[url='events.php?delete1={$r[']Delete[/url]</td></tr>"; } print "</table>"; if($ir['new_events'] > 0) { $db->query("UPDATE donevents SET donevREAD=1 WHERE donevUSER=$userid"); $db->query("UPDATE users SET new_events=0 WHERE userid=$userid"); } add this to global_func.php below the events function donevent_add($userid,$text,$connection=0) { global $db; $text=mysql_escape($text); $db->query("INSERT INTO donevents VALUES('',$userid,UNIX_TIMESTAMP(),0,'$text')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$userid}"); return 1; } open up index.php and add near top if($ir['donatordays'] == 7) { donevent_add($ir['userid'],"You have {$ir['donatordays']} Donator Days Remaining <a href=donator.php>Renew Days </a>"); } if($ir['donatordays'] == 1) { donevent_add($ir['userid'],"Your Donator Days Expires Tomorrow <a href=donator.php>Renew Days </a>"); } -
Re: Hospital Java Countdown Excellent Addition Shrek :) Deffo gonna +1 ya.
-
call this file botfinder.php <?php $deactive = 1; //Deactive wether it will be in a new page or not.... 1 => on || 0 => off if($deactive == 1) { include("sglobals.php"); } else { //Do nothing } //count $males = mysql_num_rows(mysql_query("SELECT username, gender FROM users WHERE gender='male' AND user_level='0'")); $females = mysql_num_rows(mysql_query("SELECT username, gender FROM users WHERE gender='female' AND user_level='0'")); //list $dip_m = mysql_query("SELECT userid,username,gender FROM users WHERE user_level='0'"); //Display male & Female echo '<H2>You Currently have </H2> '.$males.' [b]Male: Bot(s)[/b] '.$females.' [b]Female: Bot(s)[/b] Click on a BOTS name to Edit..'; //Display males online $c = 0; while($soc = mysql_fetch_assoc($dip_m)) { $c++; echo '- <table border=10 width=80% cellpadding=4 cellspacing=5><tr><td align=center>[url="staff_battletent.php?action=editbot&step=1?u='.$soc['userid'].'"]<h2>'.$soc['username'].'</h2>[/url] Gender '.$soc['gender'].' [url="staff_battletent.php?action=addbot"][ Add to game ][/url][url="staff_battletent.php?action=delbot"] [ Delete from game ][/url] </td></tr></table> '; } print""; $h->endpage(); ?>
-
Re: [v2] Approval System Im drawn to a new conclusion and that conclusion being that if staff were rewarded for ther effectiveness this system just might actually work. So an idea would be to get the users involved with monthly Polls on their fav staff. Just a thought
-
Re: [v2] Approval System I have to Agree with Radio on this one if the staff dont do there job correctly you could lose more rather than gain
-
Re: marriage, sharing housing? on your v1 version find and remove. session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); replace with include "globals.php"; also you may need to change mysql_query to $db->query which isnt always the case
-
Re: [MMCODES V2] HACKING ATTEMPTS LOGGED
-
Re: marriage, sharing housing? Easiest way would be to make a new SQL for newlyweds marriageID userID willBEFORE willAFTER willTOTAL marriageDATE, marriageTIMES. marriageDAYS. And implement that into your marriage scripts :)
-
[MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error Just to note the error you was getting was caused by this line.. stafflog_add("Deleted topic {$topic['ft_name']}");recache_forum($topic['ft_forum_id']); Always make sure you break after ; Example stafflog_add("Deleted topic {$topic['ft_name']}"); recache_forum($topic['ft_forum_id']); -
[MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error try <? function deletopic() { global $db; $q=$db->query("SELECT * FROM forum_topics WHERE ft_id={$_GET['topic']}"); $topic=$db->fetch_row($q); $db->query("DELETE FROM forum_topics WHERE ft_id={$_GET['topic']}"); $db->query("DELETE FROM forum_posts WHERE fp_topic_id={$_GET['topic']}"); print "Deleting topic... Done "; stafflog_add("Deleted topic {$topic['ft_name']}"); recache_forum($topic['ft_forum_id']); } ?> -
[MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error for the other error SELECT FROM should be SELECT * FROM -
[MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error Look above 593 is there a globals statement if so make sure theres a $db in there aswell for the other error SELECT FROM should be SELECT * FROM -
[MCCODES V2] File Creator and Editor ingame
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] File Creator and Editor ingame SCREENIES -
[MCCODES V2] File Creator and Editor ingame
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] File Creator and Editor ingame add these links to smenu.php [url="illusions.php?action=startfile"]CREATE NEW FILE[/url] [url="filedata.php"]EDIT EXSISTING FILE[/url] This system will allow the admin to create Files of which are sent straight to the FTP and named as chosen by the person creating it. The filedata.php will allow you to EDIT any files on your server the format can be of any type from html to javascript....... *FOOTNOTE* Think carefully when using this editor as in the wrong hands it CAN do fatal damage to your site...