Jump to content
MakeWebGames

Ghetto

Members
  • Posts

    413
  • Joined

  • Last visited

    Never

Everything posted by Ghetto

  1. Re: Looking for a username change log database script Why dont you just make it so they have to pay to change there name? Or heres a quick username log for you. V2 staff_logs.php Find: case 'stafflogs': view_staff_logs(); break; Add after: case 'usernamelogs': view_name_logs(); break;   Find: $h->endpage();   Add befor: function view_name_logs() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } $_GET['st']=abs((int) $_GET['st']); $rpp=100; echo "<h3>Username Logs</h3> <table width=100% cellspacing='0' border='1' class='table'><tr> <th>Userid</th> <th>Old Name</th> <th>New Name</th><th>Time</th> <th>IP</th> </tr>"; $q=$db->query("SELECT n.*, u.* FROM namelogs n LEFT JOIN users u ON n.user=u.userid ORDER BY n.time DESC LIMIT {$_GET['st']},$rpp"); while($r=$db->fetch_row($q)) { echo "<tr><td>{$r['user']}</td> <td>{$r['oldname']}</td> <td>{$r['newname']}</td><td>".date('F j Y g:i:s a', $r['time'])."</td><td>{$r['ip']}</td></tr>"; } echo "</table> "; $mypage=floor($_GET['st']/$rpp)+1; $q2=$db->query("SELECT id FROM namelogs"); $rs=$db->num_rows($q2); $pages=ceil($rs/$rpp); echo "Pages: "; for($i=1;$i<=$pages;$i++) { $st=($i-1)*$rpp; echo "[url='staff_logs.php?action=usernamelogs&st=$st']$i[/url] "; if($i % 7 == 0) { echo " \n"; } } }   Open preferences.php Fine: $_POST['newname']=str_replace(array("<", ">", "\\\'"), array("<", ">", "'"), $_POST['newname']);   Add befor $db->query("INSERT INTO namelogs VALUES('',$userid,'{$ir['username']}','{$_POST['newname']}', unix_timestamp(), '{$ir['lastip']}')");   SQL: CREATE TABLE `namelogs` ( `id` int(11) NOT NULL auto_increment, `user` int(11) NOT NULL default '0', `oldname` varchar(255) NOT NULL default '', `newname` varchar(255) NOT NULL default '', `time` int(11) NOT NULL default '', `ip` varchar(15) NOT NULL default '', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;   I have not tested this but it should work.
  2. Re: Guess the next poster Yep 8-) younggolds going to be next again.
  3. Ghetto

    WWI

    Re: WWI USA-10 Germany-19 Russia-13 Great Britan-46 France-12 Well everyone knows its Great Britan that saved the world in both the world wars :-D Even tho i dont live in england lol.
  4. Re: (New) Feature Vip News [V1]   You cant talk much, Half of your posts are spams just to get your credits/posts up.
  5. Re: Counting (nr game) 1702
  6. Ghetto

    WWI

    Re: WWI USA-8 Germany-21 Russia-13 Great Britan-45 France-13
  7. Re: Guess the next poster Nope younggold
  8. Re: Counting (nr game) 1698
  9. Ghetto

    WWI

    Re: WWI USA-9 Germany-22 Russia-13 Great Britan-43 France-13
  10. Re: Updated Personal Details [V2]   Fixed. I've updated the first post.
  11. Re: New items page [V2] Well it doesn't take a rocket scientist to know that if you have a mod like donator pack you would need to add the link and if statement. e.g: if($i['itmname']=='Donator Pack') { echo " [[url='itemuse.php?ID={$i[']Use[/url]]"; }   But of course you couldn't do the color codes so i would understand if you didn't know :lol:
  12. Re: New items page [V2] Then edit them in. Stop being ungrateful for free things! As you can see in the code if($i['effect1_on'] || $i['effect2_on'] || $i['effect3_on']) { echo " [[url='itemuse.php?ID={$i[']Use[/url]]"; }   It is there so i dont know what your problem is.
  13. Re: 3 Word Game When he was
  14. Re: Counting (nr game) 1696
  15. Ghetto

    WWI

    Re: WWI USA-10 Germany-22 Russia-13 Great Britan-42 France-13
  16. Re: Guess the next poster Nope Templar
  17. Re: New items page [V2] Screenshot added in first post. Also gunna be updating it soon found some small errors in there.
  18. Re: Counting (nr game) 1694
  19. Re: Guess the next poster Yep. :-D Redeye
  20. Re: Counting (nr game) 1686
  21. Ghetto

    WWI

    Re: WWI USA-21 Germany-18 Russia-16 Great Britan-29 France-16 Great Britan Rules :evil:
  22. Re: Counting (nr game)   Yeah i think thats right now :lol: .... 1684
  23. Re: Counting (nr game) Now its 1679 lol.
  24. Ghetto

    WWI

    Re: WWI USA-22 Germany-18 Russia-16 Great Britan-27 France-17
  25. Re: Quantify Mod for V2! Also V2 already has a auto quantify already on the it.
×
×
  • Create New...