Jump to content
MakeWebGames

peterisgb

Members
  • Posts

    738
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by peterisgb

  1. ok this is not very big but its good and works. This mod Allows you to add a Lastpage View where you want it to, i made this for my usersonline which is located here http://makewebgames.io/showthread.php/41526-My-Usersonline-php Add lastpage to your database user users. Add this to every page global $db,$ir,$r,$c,$userid,$h,$li; $db->query("UPDATE users SET lastpage='Attacking' WHERE userid=$userid"); under globals on all pages :S put this {$r['lastpage'} on anypage you want the last page to show eg, in viewuser.php If you have my Users online mod (above link) then this works for it.
  2.   the sqls aint hard to guess and about staying online, well yeah thats the idea. having usersonline all the time goes alot furhter in the game, plus not everyone stays online anyway, the system is good.
  3. ok done. Post Above Updated.
  4. Ok i have made a usersonline page, its really good i think, Its Defo needs cleaning up. :s i'm abit of a messy worker. usersonline.php   <?php require "globals.php"; global $db,$ir,$c,$r,$userid,$h; $db->query("UPDATE users SET lastpage='Users Online' WHERE userid=$userid"); $urlRefresh = "usersonline.php"; header("Refresh: 30; URL=\"" . $urlRefresh . "\""); // redirect in 30 seconds if ($_GET['time']) { $time=$_GET['time']; } else { $time=60; } $cn=0; $lk=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-1440*60"); $aa=mysql_num_rows($lk); $ll=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-60*60"); $ab=mysql_num_rows($ll); $lm=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-45*60"); $ac=mysql_num_rows($lm); $ln=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-30*60"); $ad=mysql_num_rows($ln); $lo=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-15*60"); $ae=mysql_num_rows($lo); $he=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-1*60"); $hu=mysql_num_rows($he); $q=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-{$time}*60 ORDER BY laston DESC"); ?> <center><a id='button1a' href='usersonline.php'>Manual Refresh</a></center> <table border="0" class=table width="100%" cellpading="0" cellspacing="0"> <tr> <td class=table> <h3>Statistics</h3> Users online in the last minute: <?php print"{$hu}"; ?><br /> Users online in the last 15 minutes: <?php print"{$ae}"; ?><br /> Users online in the last 30 minutes: <?php print"{$ad}"; ?><br /> Users online in the last 45 minutes: <?php print"{$ac}"; ?><br /> Users online in the last hour: <?php print"{$ab}"; ?><br /> Users online in the last 24 hours: <?php print"{$aa}"; ?><br /> </td> <td class=table> <h3>Time Selecter</h3> <a href='usersonline.php?time=1'>(1 Min)</a><br /> <a href='usersonline.php?time=15'>(15 Mins)</a><br /> <a href='usersonline.php?time=30'>(30 Mins)</a><br /> <a href='usersonline.php?time=45'>(45 Mins)</a><br /> <a href='usersonline.php?time=60'">(60 Mins)</a><br /> <a href='usersonline.php?time=1440'>(24 Hours)</a> <br /> </td> <td class=table> <h3>Legend</h3> <img src='images/admin.gif' alt='Game Owner' /> - Game Owner<br /> <img src='images/owner.gif' alt='Game Staff' /> - Game Staff<br /> <img src='images/donator.gif' alt='Donator' /> - Donators<br /> <img src='specialdonator.gif' alt='Donator' /> - Top Donators<br /> </td> <tr> </table> <table border="0" class=table width="100%" cellpading="0" cellspacing="0"> <tr> <td class=table> <h3></h3> </td> <td class=table> <h3>Level</h3> </td> <td class=table> <h3><center>User</center></h3> </td> <td class=table> <h3>Rate</h3> </td> <td class=table> <h3>Last Page Viewed</h3> </td> <td class=table> <h3>Last Action</h3> </td> <td class=table> <h3>Time Online</h3> </td> <td class=table> <h3>-</h3> </td> <td class=table> <h3>Action</h3> </td> </tr><br /><hr /> <?php while($r=mysql_fetch_assoc($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $cn++; $name=$r['username']; $gangtag=$r['yourgangPREF']; if($r['donatordays'] > 0) { $donator="<img src='images/donator.gif' alt='Donator: {$r['donatordays']} Days Left' title='Donator: {$r['donatordays']} Days Left' />"; } if($r['donatordays'] == 0) { $donator=""; } if($r['user_level']== 2) { $staff="<img src='images/owner.gif' alt='Game Staff' alt='Admins' title='Admin'/>"; } if($r['user_level']== 3) { $staff="<img src='images/owner.gif' alt='Game Staff' alt='Staff' title='Secretary'/>"; } if($r['user_level']== 4) { $staff="<img src='images/owner.gif' alt='Game Staff' alt='Staff' title='Forum Moderator'/>"; } if($r['user_level']== 5) { $staff="<img src='images/owner.gif' alt='Game Staff' alt='Staff' title='Assistant'/>"; } if($r['user_level']== 1) { $staff=""; } if($r['userid']==1) { $staff="<img src='images/admin.gif' title='Owner'/><img src='images/owner.gif' title='Staff'/>"; } $r['username']="<b>$staff $donator<a href='viewuser.php?u={$r['userid']}'><font color='{$r['colour']}'> $name</b></font></a>"; print "<tr> <td class=table> $cn. </td> <td class=table> ({$r['level']}) </td> <td class=table> {$r['username']} ({$r['userid']}) </td> <td class=table bgcolor='#000000'> <a href=rating.php?change=up&ID={$r['userid']}><img src=positive.gif height='12' width='12'></a> <font size='2' color='yellow'><b>{$r['rating']}</b></font> <a href=rating.php?change=down&ID={$r['userid']}><img src=negative.gif height='12' width='12'></a> </td> <td>"; if($r['pageprivacy'] == 1) { print "<a href='donator.php'><font color='{$r['colour']}'><b>Donator Privacy</b></font></a>"; } else { print "<a href='{$r['lastpage']}'><font color='{$r['colour']}'><b>{$r['lastpage']}</b></font></a>"; } print ""; if($ir['user_level'] == 2) { print "(<small><b>{$r['lastpage']}</b></small>)"; } else { print ""; } print "</td> <td class=table> ($la $unit) </td> <td class=table>"; $lb=time()-$r['last_login']; $units="secs"; if($lb >= 60) { $lb=(int) ($lb/60); $units="mins"; } if($lb >= 60) { $lb=(int) ($lb/60); $units="hours"; if($lb >= 24) { $lb=(int) ($lb/24); $units="days"; } } if($r['laston'] <= time()-60*60) { $lb="offline"; $unit=""; } print "{$lb} {$units}</td> <td>"; $zom=$db->query("SELECT * FROM hvzstats"); $hvz=$db->fetch_row($zom); if($ir['user_level'] > 1) { if($hvz['hvz'] ==1) { if($r['humanorzombie'] == 1) { $zomb="<font color='red'><b>(Z)</b></font>";} if($r['humanorzombie'] == 0) { $zomb="<font color='#33CC33'><b>(H)</b></font>"; } $ztext= "Status: $zomb $kills"; } } print " $zomb </td> "; if($r['hospital'] > 0) { print"<td> <small> [<a href='nudge.php?ID={$r['userid']}'><font color='{$r['colour']}'>Nudge</font></a>] [<a href='mailbox.php?action=compose&ID={$r['userid']}'><font color='{$r['colour']}'>Mail</font></a>] In Hospital</small> </td>"; } if($r['jail'] > 0) { print"<td><small> [<a href='nudge.php?ID={$r['userid']}'><font color='{$r['colour']}'>Nudge</font></a>] [<a href='mailbox.php?action=compose&ID={$r['userid']}'><font color='{$r['colour']}'>Mail</font></a>] In Jail</small> </td>"; } if($r['hospital'] == 0 AND $r['jail'] == 0) { print"<td> <small> [<a href='nudge.php?ID={$r['userid']}'><font color='{$r['colour']}'>Nudge</font></a>] [<a href='attack.php?ID={$r['userid']}'><font color='{$r['colour']}'>Attack</font></a>] [<a href='mailbox.php?action=compose&ID={$r['userid']}'><font color='{$r['colour']}'>Mail</font></a>]</small> </td> "; } print"</tr>"; } ?> </td> </tr> </table><hr /> <table width=75% border=3 bordercolor=#BDBDBD cellspacing=0 bgcolor=#FBFBE0 frame=border rules=none> <tr> <td width=75> <img src=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> <center> <b>Users Online</b> </center> <font color=#000000 size=2> <u><b>Note</b></u><br /> This Page AutoRefreshes Every 30 Seconds<br /> Click [<a href="helponlinerefresh.php"><font color='red'>HERE</font></a>] to find out out why this page AutoRefreshes every 30 seconds. </font></td></tr></table><br> <?php $h->endpage(); ?>   The Users Online page has. Owner Image, Staff Image, Donator Image, Donator Privacy, (LINK) Last Page View, (LINK) Admin Auto Bypass Donator Privacy, Good Layout Etc,   Mods you will need to make this work 100%. Rating Mod, Nugde Mod, Human VS Zombie (Optional). thanks,
  5. ok :s, css is my weakest point
  6. ypu i just tried that, it didnt work.
  7. good mod, tho i am having some problems, here are the screen shots Normally http://www.world-wars.co.uk/before.bmp on the gallery page http://www.world-wars.co.uk/after.bmp
  8.   ok, i'll try and find something else to waste my bordom lol/
  9. i know that, but i want to do this now, tbh i cant think to well as i had an op a few days ago, and cant think to well.
  10. i posted a snip of the bottom of my header. which link in there would i go, i know how to do the other menu, but i will be doing it iframe. i just am not sure on which line to put it.
  11. that post didnt help much, still not sure where to start when putting the 3rd colloum in
  12. i'm still learning this, but could i just have a pointer, i want to add a third collum into header, this is what i have   '; } function endpage() { global $db,$ir,$set,$c,$userid,$h; if($ir['chatactive'] == 0) { require_once('chat_globals.php'); } else { print ""; } print <<<OUT </center> </td> </tr> </table> </td> <td width='0%' bgcolor='' valign='top'> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="dgradl"> </td> <td class="dgrad"> </td> <td class="dgradr"> </tr> </table> </td> </tr> </table> <i><center>World-Wars. Game Copyright ©2011-2012 Peter Greenacre.({$db->num_queries}) queries. </center></i></body> </html> OUT; } } ?>   Could someone just put a line or a test or somthing of where abouts i need to place the third collum, thanks.
  13. sure no probs, This is Firefox http://www.world-wars.co.uk/aaa/firefox.bmp the Iframe interactive menu works and the chat works now this is IE http://www.world-wars.co.uk/aaa/IE.bmp The iframe hardly works and the chat is all over the place.
  14. i've tired to emulate it already, it dont work.
  15. i tried the compatibility mod and its still the same :(
  16. hey again guys/girls I'm having this problem with layout, chat and iframes in internet explorer. on firefox and chrome the site loads fine and great but when it comes to internet explorer the game becomes really crap and not worth playing, Alot of people wont change to firefox or chrome and are stubborn to stay with IE, If there any code or fix to sort out the Ie problems with layouts and that?
  17. iron bronze silver copper tin crystals
  18. well file changes, well none, i made the mining seperate, i need these 2 pages to complete it and the meterials are iron bronze silver copper tin and crystals
  19. my my budget at the very minute is $10 but this will go up depending on if anyone will charge more, but the cheaper the better really lol
  20. well it depends on how much the person who makes it wants really.
  21. my knowlegde isnt upto doing that :s i'm still a learner, i learn by people doing it, basically, pay someone to make it and then edit it to suit my needs and learn from reading it
  22. i got someting like that, i got the workshop by cronus, but neither of them can do this, the meterials are like the money in the game, you collect them from the mines which i've made, both of them are items to make items, this is currency made into bars to upgrade weapons which are already in the game and in the players inventory, this mod is so that these items can be upgraded over time,
  23. hello, i am looking for a mod that can upgrade weapons, i've done the first half which is the meterials Iron, Bronze, Silver, Copper, Tin and crystals ( gold in my case now). The part i am looking for is 2 pages, Page 1 is: Options to Merge Iron, Bronze, Silver, Copper, Tin and Gold into bars, E.G. Iron and Copper = Iron bar or something. Page 2 is: using the bars which have been made in page 1 to upgrade the players Weapons and armour to make them better. For more information please mail me here or e-mail me at [email protected] with your price on how much you would do this for. Thanks.
  24. hense why i originally ask if anyone has done an update for this, in return for this i'll post a mod i have done,
  25. works a charm now, thanks so much
×
×
  • Create New...