Jump to content
MakeWebGames

boggl

Members
  • Posts

    37
  • Joined

  • Last visited

boggl's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: [V2] Ignore User Mail [V2] Here it is converted for v1 Same steps as above for edits, my mailbox is totally different from the v1 original, so you'll have to find the similar areas for your edits to mailbox.php. SQL is the same Lite will probably need to remove the $cm references Tested and working.   <?php /*----------------------------------------------------- -- Ignore User For MC Code V2 -- Converted to V1 -- Free Mod -- [url]http://www.squangle.org[/url] -- By Tonka -- ignore.php -----------------------------------------------------*/ 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(); switch($_GET['action']) { case 'ignoreform': ignore_form(); break; case 'ignoresub': ignore_submit(); break; case 'unignore': unignore(); break; default; index(); break; } function index() { global $ir,$c,$userid,$h; echo "<h3>Mailbanning a user</h3> [url='ignore.php?action=ignoreform']Add User To Be Ignored[/url] <table width='85%' cellspacing='1' class='table'> <th>User ID</th> <th>username</th> <th>Remove?</th> <th>Status</th>"; $sql = sprintf(("SELECT `id`, `blocked` FROM `ignore` WHERE userid = %u"), $userid); $q = mysql_query($sql); while($r=mysql_fetch_array($q)) { $select = sprintf(("SELECT `username`, `laston` FROM `users` WHERE userid = %u"), $r['blocked']); $u2 = mysql_query($select); $u=mysql_fetch_array($u2); $username = $u['username']; $id = $r['id']; if($u['laston'] >= time()-15*60) { $on="<font color=green>[b]Online[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } echo '<tr><td>'; echo sprintf("%u", $r['blocked']); echo '</td><td>'; echo $username; echo '</td><td>'; echo "[url='ignore.php?action=unignore&id=$id']Remove[/url]"; echo '</td><td>'; echo $on; echo "</td></tr>"; } echo "</table>"; } function ignore_form() { echo "<h3>Ignore Mail From A Specified User</h3> The user will not be able to send you ingame mail. <form action='ignore.php?action=ignoresub' method='post'> ID of person to ignore: <input type='text' name='blid' /> <input type='submit' value='Ignore Future Mail' /></form>"; } function ignore_submit() { global $ir,$c,$h,$userid; if($_POST['blid'] == "") { echo "You did not enter a userid. [url='ignore']Back[/url]"; } else if ($_POST['blid'] == $userid) { echo "You can't ignore yourself"; } else { $insert = sprintf("INSERT INTO `ignore` (`id`, `userid`, `blocked`) VALUES ('NULL', '%u', '%u')", $userid, mysql_real_escape_string($_POST['blid'])); mysql_query($insert); echo "Users Mail will be Ignored. [url='mailbox.php']Return to Mail Box[/url]"; } } function unignore() { global $c,$userid; $delete = sprintf(("DELETE FROM `ignore` WHERE id=%u AND userid=%u"), mysql_real_escape_string($_GET['id']), $userid); mysql_query($delete); echo "User un-ignored."; } $h->endpage(); ?>   Nice job Tonka and illusions
  2. Re: times kicked from gangs I disagree....I like having it viewable to everyone...and in my game the players like it too...many relationships between players are based on loyalty and honesty, at least in mine, and a gang hopper finds himself a loner more often than not, without many friends. I can see how what you say may happen, but even if it does, does it matter? It shows their immaturity and lack of good judgment, and again, they wouldn't find too many good or great gangs that would accept them....
  3. Re: times kicked from gangs It's fine that you posted...but as this was such an easy fix, once you saw it, instead of saying I'm getting errors, then editing your post to say you're getting errors again after knowing what the problem was, you could have just fixed it....all you have to do is try, and then if you have issues, I or anyone else would be happy to help.
  4. Re: times kicked from gangs god this old...I edited it.... All you need to do is change it then, you saw the problem.......
  5. Re: [Free] MySQL Control Panel Yes ISO, a tip of the hat to you for this...saves time and the few memory cells I have left when I am not at my local machine, and scratching my head for the random jumble of stuff I use for passwords :) Also confirming it works on php 4 as well
  6. Re: Free 2 - Slots the word g r a p e s and the image were censored from the post because it contains the word "r a p e" just replace all g<censored>s with the correct fruit...I'm sure you know what it is now...and grab an image of them from somewhere. Make a copy of it grayscale, upload them both and you're set.
  7. Re: HelphelpHelphelpHelphelpHelphelpHelphelpHelphelpHelphelpHelphelpHelphelpHelp You have 2 choices... You can go into phpmyadmin or your database manager, and edit them directly, or you can change them thru admin.php if you have or install the mods to edit them...you can find some of them here just by searching..next time, just try a simple Help request, not a help spam title...it will get you better responses.
  8. Re: [V2] Reward the active. - Punish the inactive. Unix timestamp is seconds since january 1st, 1970....... really all you need to know to determine 1 day ago, or 50 days ago, is the number of seconds in a day, multiplied by however many days you need... fbiss, I don't see why it wouldn't work, it's used in other applications similar to that.
  9. Re: FREE ADVANCED USERSONLINE MOD <font color=putthefriggingcolorhere>
  10. Re: Debit/Credit Card Mod $15 I've been using a Mastercard on one of my games for awhile now....you can put money on it, you can't withdraw it, you can only use it for purchases. Adding money has a fee, much like a prepay card convenience fee. You can complete a certain step in the game that even allows you to earn a percentage of cash back on each purchase. Not everything can be purchased with it, so users need to keep cash on hand....players seem to love it, and mugging hasn't slowed down. Just make sure when you make the mod, you leave a reason to keep cash on hand :)
  11. Re: Crystal market exploit? originally I was going too.....but then I foresaw your pm filling up...even though you said not to ask...lol
  12. Re: Crystal market exploit? missed a , in the query:   CREATE TABLE `cheater_catcher` ( `cc_id` int(11) NOT NULL auto_increment, `cc_userid` int(11) NOT NULL default '0', `cc_count` int(11) NOT NULL default '0', PRIMARY KEY (`cc_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  13. Welcome back...thought you were down for good... :)
  14. Re: times kicked from gangs Why not track and let users see gang hoppers too :) SQL QUERY   ALTER TABLE `users` add timesleft int (11) default 0 not null   IN yourgang.php FIND mysql_query("INSERT INTO gangevents VALUES ('',{$ir['gang']},unix_timestamp(),'[url='']{$ir['username']}[/url] left the gang.');",$c);   UNDER ADD mysql_query("UPDATE users SET timesleft=timesleft+1 WHERE userid=$userid",$c);   ADD in viewuser under where ever you put Times Kicked Deserted: {$r['timesleft']} ";
  15. Re: [TGM] Crystal Gym [TGM] Well, this was a custom mod that I requested from Cronus and he created several months ago. It took quite a bit to get it the way I wanted, it's not a simple change energy to crystals. There was a lot of time getting the calculations right through out the range, and of all the advanced crystal gyms out there, this is by far the most accurate I have seen in any game, relative to stat gains vs mood drop per train and vs a standard 12 crystal refill/train.
×
×
  • Create New...