Jump to content
MakeWebGames

peterisgb

Members
  • Posts

    727
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by peterisgb

  1. can anyone do this, its only little.?
  2. well for me the whole lot just comes up as codes in the e-mail in my inbox   <center><img src=http://www.xxxxxx.com/images/title.png></center> Hello username! Test Please Do NOT Reply to this E-mail If you Want to Reply Please Login via <a href=http://www.xxxxxx.com>HERE</a>
  3. nope, running it on the server and that code failed.
  4. well after i tried them and when it e-mails me and doesnt work i put it back to default so i only have the above code now.
  5. that dont seem to be working either.
  6. follow what it said, tweeked a few tings it said and tested it,
  7. i've just read that, i tried that and it dont work for me for some reason.
  8. below is a e-mail form, the form sends e-mails fine and good but i cant get the html stuff to work in the e-mail, the section in question is in //====== //======= Can i have some help. I want the image and links to work in an e-mail, Can anyone help   <?php require "globals.php"; global $c; print "<html> <head> <title>Infamous Wars</title> </head> <body><center>"; $tt=mysql_query("SELECT * FROM users",$c) or die(mysql_error()); while($gh=mysql_fetch_array($tt)) { $to = $gh['email']; $subject = "Infamous Wars"; $headers = "From: Infamous Wars Staff"; $body = " //====== <center><img src=http://www.xxxxxx.com/images/title.png></center> <br/> <br/> Hello {$gh['username']}! Test <br/><br/><br/> Please Do NOT Reply to this E-mail<br/> If you Want to Reply Please Login via <a href=http://www.xxxxxx.com>HERE</a><br/> //====== "; mail($to, $subject, $body, $headers); print "Email sent to {$gh['username']}!<br />"; } ?>
  9. I'm looking for a mod which allows Daily Questions. Daily Question Page should include: Questions, 4 Possible Answers. Daily Cron Which Resets Questions and selects a new random question while deleting the last question used. and resets Users Question Answer back to 0 A Staff Page which allows to upload Several Questions and answers into the database. Database Sql for the questions (its own Table) Users Sql +1 for question answered.(users table) I think that covers everything, can anyone do this and if so how much are you gunna charge, I was thinking of something like $5 to $10.
  10. well i use a interactive menu system on my game which all the pages in there dont require globals
  11. some pages i put this one it needed it, removie it accourding to the pages.
  12. i'm not very good at secureing, you can secure it if you like.
  13. This is the Last Page Privacy. used in conjunction with these 2 mods http://makewebgames.io/showthread.php/41526-My-Usersonline-php http://makewebgames.io/showthread.php/41541-Last-Page-View Links Expired 😞 You can find these mods on my Mod Directory PeterisGB's Mod Directory add pageprivacy to the Users in the Database. Add this to the case section of Preferences.php case 'prichange2': do_pri_change(); break; case 'prichange': conf_pri_change(); break; Add this further down the page. function conf_pri_change() { global $ir,$c,$userid,$h; print "<h3>Page Privacy</h3><br /> <form action='preferences.php?action=prichange2' method='post'> <select name='newnameg' type='dropdown'> <option value='1'>ON</option> <option value='0'>OFF</option></select> <input type='submit' value='Change Info' /></form>"; } function conf_pri_change() { global $ir,$c,$userid,$h; print "<h3>Page Privacy</h3> <form action='preferences.php?action=prichange2' method='post'> <select name='privacy' type='dropdown'> <option value='1' ". ($ir['pageprivacy'] == 1 ? "selected" : NULL) .">ON</option> <option value='0' ". ($ir['pageprivacy'] == 0 ? "selected" : NULL) .">OFF</option></select> <input type='submit' value='Change Privacy' /></form>"; } function do_pri_change() { global $db,$ir,$c,$userid,$h; $_POST['privacy'] = 1 ? 1 : 0; $db->query("UPDATE users SET `pageprivacy`=". $_POST['privacy'] ." WHERE userid=". $userid); print "Privacy ". ($_POST['privacy'] ? "is on" : "is off"); } } open up header and find this <a href='friendslist.php'>Friends List</a> <a href='blacklist.php'>Black List</a> Add this <a href='preferences.php?action=prichange'>Page View Privacy</a>
  14. Both mods that i made have been linked to the main post, click the LINK button to get the other 2 mods. hope that helps
  15. 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.
  16.   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.
  17. ok done. Post Above Updated.
  18. 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,
  19. ok :s, css is my weakest point
  20. ypu i just tried that, it didnt work.
  21. 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
  22.   ok, i'll try and find something else to waste my bordom lol/
  23. 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.
  24. 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.
  25. that post didnt help much, still not sure where to start when putting the 3rd colloum in
×
×
  • Create New...