Jump to content
MakeWebGames

Haunted Dawg

Members
  • Posts

    2,933
  • Joined

  • Last visited

    Never
  • Days Won

    1

Everything posted by Haunted Dawg

  1. Re: Round timer Yeah.. but i was not going to use javascript. More like ajax and php. You cared to make it for $10 go ahead. Because i am not going any lower. And it's up to him not you ;)
  2. Re: The last person to posts wins Um.. me post 30 time's a day.
  3. Re: [Mccodes v2] Voting System ($15) He started it!
  4. Re: [mccode v2] Events Page Updated. Karlos. I am not using mccode's class.. and therefor use my own.
  5. Re: [mccode v2] Events Page Updated. Ahh sorry.. forgot to change it around. Will do now.
  6. Any way.. havent really posted anything "good" lately. So here it is an updated event's page. What you can do is. Delete multiple events. Delete all events. Delete single events. This uses no javascript so you have no need to worry if your member's have javascript enabled or not. Soon To Come: Going to be adding a check all event's or uncheck all event's. To Install: Replace events.php with this:   <?php //Leave notice //Made by killah for ce community include('globals.php'); if( isset($_POST['del_all']) ) { mysql_query("DELETE FROM `events` WHERE `evUSER` = ".$ir['userid']) or die(mysql_error()); echo 'All events have been deleted.'; } if( isset($_GET['del']) ) { $id = abs(@intval($_GET['del'])); mysql_query("DELETE FROM `events` WHERE `evID` = ".$id." AND `evUSER` = ".$ir['userid']); echo 'Event deleted.'; } if( isset($_POST['checkbox']) ) { for($i = 0; $i < count($_POST['checkbox']); $i++) { mysql_query("DELETE FROM `events` WHERE `evID` IN(".$_POST['checkbox'][$i].") AND `evUSER` = ".$ir['userid']); $result = 1; } if($result == 1) { echo $i.' event(s) have been deleted.'; } else { echo 'Error occured while trying to delete the event(s).'; } } //Create Page Number's. $limit = 10; $page = abs(@intval($_GET['page'])); $page = isset($page) ? abs(@intval($_GET['page'])) : 0; $by = 'evTIME'; $order = 'DESC'; $rows = mysql_query("SELECT `evID` FROM `events` WHERE `evUSER` = ".$ir['userid']); $rows = mysql_num_rows($rows); $pages = abs(@intval(($rows / $limit) + 1)); if($rows % $limit == 0) { $pages--; } $pg = 'Pages: - '; echo '<h2>Events</h2> [b]Note:[/b] If you click on the check box and go to next page. The checkbox will be cleared. So delete the event\'s you want to delete before going to next page. <form action="'.$_SERVER['PHP_SELF'].'" method="post"> '.$pg; for($i = 0; $i <= $pages; $i++) { $next = ($i * $limit); echo '[url="'.$_SERVER['PHP_SELF'].'?page='.$next.'"]'.$i.'[/url] - '; } echo ' <table border="1" cellspacing="0" cellpadding="0" class="table" width="80%"> <tr> <th>Time</th> <th>Event</th> <th>Links</th> </tr>'; $myEvents = mysql_query("SELECT `evTIME`, `evREAD`, `evTEXT`, `evID` FROM `events` WHERE `evUSER` = ".$ir['userid']." ORDER BY ".$by." ".$order." LIMIT ".$page.",".$limit); while($soc = mysql_fetch_assoc($myEvents)) { $time = date('F j Y, g:i:s a', $soc['evTIME']); if(!$soc['evREAD']) { $new = ' [b]New![/b]'; } echo ' <tr> <td>'.$time.' '.isset($new).'</td> <td>'.$soc['evTEXT'].'</td> <td> <input type="checkbox" name="checkbox[]" value="'.$soc['evID'].'"> | '; if( isset($_GET['page']) ) { echo '[url="'.$_SERVER['PHP_SELF'].'?page='.$_GET['page'].'&del='.$soc['evID'].'"]Delete[/url]'; } else { echo '[url="'.$_SERVER['PHP_SELF'].'?del='.$soc['evID'].'"]Delete[/url]'; } echo ' </td> </tr> <tr>'; } echo ' </tr> </table> '.$pg; for($i = 0; $i <= $pages; $i++) { $next = ($i * $limit); echo '[url="'.$_SERVER['PHP_SELF'].'?page='.$next.'"]'.$i.'[/url] - '; } echo ' <input type="submit" value="Delete Selected Events"> <input name="del_all" id="del_all" type="button" value="Delete All Events"> </form>'; if( isset($ir['new_events']) > 0) { mysql_query("UPDATE `events` SET `evREAD` = 1 WHERE `evUSER` = ".$ir['userid']); mysql_query("UPDATE `users` SET `new_events` = 0 WHERE `userid` = ".$ir['userid']); } $h->endpage(); ?>   Enjoy.
  7. Re: The last person to posts wins Nyna is no longer staff if you can notice.
  8. Re: The last person to posts wins It will fool some people ;)
  9. Re: The last person to posts wins Can't you see? he is trying to boost up his post count. What a n00b
  10. Re: [Mccodes v2] Voting System ($15) I actualy dropped my price to $15 and i alway's give support. Why give support to some one who is backing my friend down and that never bought a mod? And me i alway's give support and free support. So if i was you. Get your facts right boy.
  11. Re: Round timer Eish.. you can read right? It does clearly say:  
  12. Re: [mccode]Multi alert And again. Where is the $_SESSION['detected_multi'] = 1; If you people are not going to do it then just do this in authenticate.php:   $select_multis = mysql_query("SELECT userid, username FROM users WHERE lastip='{$IP}' AND lastip_login='{$IP}'") or die(mysql_error()); if(mysql_num_rows($select_multis) > 1) { event_add(1,"ID <a href=\"viewuser.php?u=".$ir['userid']."\">".$ir['username']."</a> has another account check it out."); }
  13. Re: [mccodes v2] Advanced Voting Forgot to add to my description. This check's how many vote's were made in total and how many vote's were made today. Price dropped to $15
  14. Re: Login/register & header conversion help needed!   Better learn fast then and html then ey?
  15. Re: A Gun I Created. When i looked at the topic title. I was like woah he made a real gun xD. JK. Look's very good for first attempt. And joel.. have you got anything new?
  16. Re: Dogdy bussines Well.. that's when i tell them.. just you wait and see..
  17. Re: Round timer   Meaning it will just reset the user base. But more will be needed. Meaning adding round name, and round id. ETC..
  18. Re: Dogdy bussines   Staying on the computer for as long as we all do, i think we are alll referred to as geeks :P So you telling me some one who operate's on computer's daily is a geek when it is infact there job? PFFT
  19. Re: Shout Box Bluedevil. The one iamwicked made was based off mine. His is not ajax.
  20. Re: mccodes [best gang mod???] Radio Active told me that he was making a gang's mod for him.
  21. Re: Round timer For your information. I was not going to 'google'. And for your information. I was going to make my own script. But wait. Let's see. Does your script meet his regard's? Does it reset when it hit's that time? Are you going to provide a file that will basicly reset the entire user base and all? I am doing this for $10 which is rather cheap. So get your fact's right.
  22. Re: mccodes [best gang mod???] I think it was made onto www.downtown-to.com
  23. Re: Shout Box Why not look under paid game modification's? I have a ajax shoutbox modification at the price of $15. Contact me at [email protected].
  24. Re: mccodes [best gang mod???] I believe floydian's made the best gang mod out. I do not know what it has.
  25. Re: Round timer Is there any pay? as i can and am willing to do this for you.
×
×
  • Create New...