Jump to content
MakeWebGames

The Spirit

Members
  • Posts

    334
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by The Spirit

  1. Your work looks great. Only thing on the first template the green "Game Name" just looks wrong to me anyway
  2. Theres so much that good be done! So much
  3. Is the demo the finished product?
  4. have you margin-top set to 0px? this may also help http://www.cssreset.com/scripts/eric-meyer-reset-css/
  5. Your designs are very impressive, well done!
  6. I live 30mins out of the city centre. Irelands internet services are just awful!
  7. These two links are in djk's article
  8. If I was too vague then you could of a) Ignored the post. b) Asked me for more detail. As for "What should it do" I posted what the problem was and what the script wasnt doing properly. This thread has become ridiculous IMO
  9. Looks really really awesome
  10. Got it thanks Djk :), it was indeed a problem with the limit at the end of the query i couldnt spot
  11. I did try to fix the file. If I had posted up 2,3,4 etc files I dont mind if people tell me to F off.
  12. Jesus Christ I asked for a little bit of help not an argument! Iv been a member since 2009 and its the first time iv done so. I dont think I was rude? If I was sorry. All I wanted was help on how to fix something, dont see why people had to get involved. You think I dont realise people are taken for granted here? there the only reason mccodes is what it is! There great, simple as. I tried to fix the script myself, couldnt. Did I demand help? no. No one had to post or help or do anything. All I wanted was if someone could see the error to point it out If a mod could lock this it would be great. Thanks to octarine and lucky for the help :)
  13. Yeah that syntax error is caused by this forum. The script shows no errors when run, just doesnt show the newest event. And yes thanks for the warning, I do appreciate it.
  14. This is a forum for people making web games.. I am one of those. If I wanted to contact mccodes, I would have. If you dont want to help fine just ignore the topic. If anyone could solve my problem I would be very greatful, thanks.
  15. Hey, I have a problem with my events page. It doesnt show the newest event, the event will then appear when you get another event. Thanks if you can help. :)   <?php include_once (DIRNAME(__FILE__). '/globals.php'); print "<br />"; if($ir['pagetutorials'] == 'ON') { print " <table width=100% border='3' bordercolor='#BDBDBD' cellspacing='0' bgcolor='#FBFBE0' frame='border' rules='none'> <tr> <td width='75px'><img src='images/lightbulb.gif'><br /><font color='#999999'><i>[<a href='preferences.php'><font color='#999999'><i>Turn Off</i></font></a>]</i></font></center></td> <td><br /> <center><h3 style='color:orange'>Events Tutorial</h3></center> <p align='justify' style='margin-right:10px;margin-left:10px'><font color='#000'> The events section is where all current news that has happened to you will be displayed. This could include events such as being attacked, being sent money or being rescued from jail. Again, events are displayed in chronological order, and can be easily deleted by using the Delete link. The events section also has a Delete all events, which clear the list of all your events.</font><br /><br /></td> </tr></table><br />"; } //Create Page Number's. $limit = 10; $page = abs(@intval($_GET['page'])); $page = !isset($page) ? $_GET['page'] : 1; $by = 'evTIME'; $order = 'DESC'; $rows = mysql_query("SELECT `evID` FROM `events` WHERE `evUSER` = ".$ir['userid']); $rows = mysql_num_rows($rows); $pages = ceil($rows/$limit); if($rows % $limit == 0) { $pages++; } 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).'; } } $pg = 'Page: '; echo '<h2 align=center style=color:orange;font-family:arial>Player Events</h2> <b>Note:</b> If you click on the check box and go to next page. The checkbox will be cleared. <br> So delete the event\'s you want to delete before going to next page.<br><br> <form action="'.$_SERVER['PHP_SELF'].'" method="post">'.$pg; for($i = 1; $i <= $pages; $i++) { $next = ($i * $limit); if ($i != 0) { echo '<a href="'.$_SERVER['PHP_SELF'].'?page='.$next.'">'.$i.'</a> - '; } } echo '<br><br> <table width=95% cellpadding="5" align="center" style="border-style:solid;border-width:1px;border-color:#303030;"> <tr bgcolor="#606060" style="color:orange;font-family:Arial"> <th>Time</th> <th>Event</th> <th>Links</th> </tr>'; if ($page >= 10) { $page=$page-10; } $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 = '<br><b>New!</b>'; } echo ' <tr bgcolor="#404040"> <td>'.$time.' '.isset($new).'</td> <td>'.$soc['evTEXT'].'</td> <td> <input type="checkbox" name="checkbox[]" value="'.$soc['evID'].'"> | '; if(isset($_GET['page']) ) { echo '<a href="'.$_SERVER['PHP_SELF'].'?page='.$_GET['page'].'&del='.$soc['evID'].'">Delete</a>'; } else { echo '<a href="'.$_SERVER['PHP_SELF'].'?del='.$soc['evID'].'">Delete</a>'; } echo ' </td> </tr> <tr bgcolor="#404040">'; } echo ' </tr> </table> <br>'.$pg; for($i = 1; $i <= $pages; $i++) { $next = ($i * $limit); if ($i != 0) { echo '<a href="'.$_SERVER['PHP_SELF'].'?page='.$next.'">'.$i.'</a> - '; } } echo '<br><br> <input type="submit" value="Delete Selected Events"> | <input name="del_all" id="del_all" type="submit" 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(); ?>
  16. Looks really good!
  17. What exactly is the point of this?
  18. Does it have all the mods that mccodes has? Does it have a community will to help to some extents? Mccodes is badly built we all know that but it has its good points and if it helps you learn in some shape or form then its worth it.
  19. This will be great thanks. also dont see it on the list http://codeacademy.org/
  20. You simply copy and paste. Post what your doing up
  21. Cool, always good to hear good feedback. Daves a pro, great to work with.
  22. 1. We dont care 2. Whats with all the games theses days starting in 'corrupted'?
  23. The Spirit

    Smarty

    Interesting opinions, thank you one and all.
  24. The Spirit

    Smarty

    What are the benefits/ disadvantages to using smarty as a template system? It seems to get a bad rap on here? so why? Just looking for general opinions on it.
  25. Started using sublimetext2( http://www.sublimetext.com/2) And must say its fantastic! Has anyone else used it? What did you think?
×
×
  • Create New...