Jump to content

Alienware

Members
  • Posts

    98
  • Joined

  • Last visited

    Never

Everything posted by Alienware

  1. yes... i followed them 100%.... what can i post that will help to to understand the problem? unfortunately it doesnt have an error_log :|
  2. every time i try to install a new gme script on my server im getting a Internal server error (500). I have no idea why its doing this... the scripts should work fine :| I really dunno what to do.
  3. Thanks for the link Dan, much appreciated.. but i have already been there.... nothing worked that i could find.. perhaps its me doing it wong... realy dunno.
  4. Ok so im pretty sure this doesnt fall under PHP... but then again im not sure what it does fall under.. given this is the most active forum and i need help urgently so i can go to bed and sleep after staying up all night trying to complete the website... ill post it here... sorry to upset anyone by posting off topic... I have made a form.... its one i got from the internet and have altered all the information for... the only problem is i want it to open the selected pages in new windows!!! I have tried loads of things and the havn't worked.... perhaps someone here could help me solve this so i can go to bed lol... <FORM ACTION="../cgi-bin/redirect.pl" METHOD=POST onSubmit="return dropdown(this.gourl)"> TARGET= <SELECT NAME="gourl"> <OPTION VALUE="">Please select a Game... <OPTION VALUE="10ball.html">10 BALL <OPTION VALUE="2vs2bestof3.html">2 VS 2 BEST OF 3 <OPTION VALUE="69seconds.html">69 SECONDS <OPTION VALUE="abc.html">ABC <OPTION VALUE="arabian.html">ARABIAN <OPTION VALUE="bankofone.html">BANK OF ONE <OPTION VALUE="bank8.html">BANK 8 <OPTION VALUE="bank8andcue.html">BANK 8 AND CUE <OPTION VALUE="bank8andlastpocket.html">BANK 8 AND LAST POCKET <OPTION VALUE="bank8suicide.html">BANK 8 SUICIDE <OPTION VALUE="bankcueonly.html">BANK CUE ONLY <OPTION VALUE="bankrobbery.html">BANK ROBBERY <OPTION VALUE="banksandcombos.html">BANKS AND COMBOS <OPTION VALUE="bankspecificcolor.html">BANK SPECIFIC COLOR <OPTION VALUE="barpool.html">BAR POOL <OPTION VALUE="battleship.html">BATTLESHIP <OPTION VALUE="blackandblue.html">BLACK AND BLUE <OPTION VALUE="blackjack.html">BLACKJACK <OPTION VALUE="bootem.html">BOOTEM <OPTION VALUE="bootemblacklast.html">BOOTEM - BLACK LAST <OPTION VALUE="bootemmagic8.html">BOOTEM – MAGIC 8 <OPTION VALUE="bootembomb.html">BOOTEM - BOMB <OPTION VALUE="bootemmole.html">BOOTEM - MOLE <OPTION VALUE="bootemweakestlink.html">BOOTEM – WEAKEST LINK <OPTION VALUE="callafriend.html">CALL A FRIEND <OPTION VALUE="centerpocketsonly.html">CENTER POCKETS ONLY <OPTION VALUE="copycat.html">COPYCAT <OPTION VALUE="crazy8.html">CRAZY 8 <OPTION VALUE="defaultpocket.html">DEFAULT POCKET <OPTION VALUE="dynamite.html">DYNAMITE <OPTION VALUE="fewestshots.html">FEWEST SHOTS <OPTION VALUE="fireandsmoke.html">FIRE AND SMOKE <OPTION VALUE="firstpocket.html ">FIRST POCKET <OPTION VALUE="flawless.html">FLAWLESS <OPTION VALUE="forbiddenpocket.html">FORBIDDEN POCKET <OPTION VALUE="fourcorners.html">FOUR CORNERS <OPTION VALUE="fourplay.html">FOUR PLAY <OPTION VALUE="frozencueball.html">FROZEN CUE BALL <OPTION VALUE="fullenglish.html">FULL ENGLISH <OPTION VALUE="fullpower.html">FULL POWER <OPTION VALUE="golf.html">GOLF <OPTION VALUE="guysandgals.html">GUYS AND GALS <OPTION VALUE="highlow.html">HIGH LOW <OPTION VALUE="inviterschoice.html">INVITERS CHOICE <OPTION VALUE="killer.html">KILLER <OPTION VALUE="ladiesandgents.html">LADIES AND GENTS <OPTION VALUE="lastpocket.html">LAST POCKET <OPTION VALUE="lastpocketreversed">LAST POCKET - REVERSED <OPTION VALUE="lowpower.html">LOW POWER <OPTION VALUE="mystery8.html">MYSTERY 8 <OPTION VALUE="merrygoround.html">MERRY GO ROUND <OPTION VALUE="musicalchairs.html">MUSICAL CHAIRS <OPTION VALUE="nerveracker.html">NERVE RACKER <OPTION VALUE="noenglish.html">NO ENGLISH <OPTION VALUE="onepocket.html">ONE POCKET <OPTION VALUE="oneshot.html">ONE SHOT <OPTION VALUE="onlypocket.html">ONLY POCKET <OPTION VALUE="perfectenglish.html">PERFECT ENGLISH <OPTION VALUE="personalpanpocket.html">PERSONAL PAN POCKET <OPTION VALUE="pickyourpocket.html">PICK YOUR POCKET <OPTION VALUE="pool.html">P.O.O.L <OPTION VALUE="posterbed.html">POSTER BED <OPTION VALUE="ratedballlast.html">RATED BALL LAST <OPTION VALUE="reg8.html">REGULAR 8 <OPTION VALUE="racknrun.html">RACK N RUN <OPTION VALUE="rodeo.html">RODEO <OPTION VALUE="scrambledeggs.html"> SCRAMBLED EGGS <OPTION VALUE="scratchless.html">SCRATCHLESS <OPTION VALUE="screwyourneighbor.html">SCREW YOUR NEIGHBOR <OPTION VALUE="seekanddestroy.html">SEEK AND DESTROY <OPTION VALUE="speedball.html">SPEEDBALL <OPTION VALUE="suicide.html">SUICIDE <OPTION VALUE="suicidebank8.html">SUICIDE BANK 8 <OPTION VALUE="trafficlights.html">TRAFFIC LIGHTS <OPTION VALUE="triplethreatsuicide.html">TRIPLE THREAT SUICIDE <OPTION VALUE="tugofwar.html">TUG OF WAR <OPTION VALUE="vshapedtourney.html">V SHAPED TOURNEY <OPTION VALUE="yellowballtwist.html">YELLOW BALL TWIST </SELECT> <INPUT TYPE=SUBMIT VALUE="FIND RULES"> </FORM> </th> </tr> </table> <br><center> <table width="35%" border="2"> <tr><th> i REALLY need your help guys. Thanks in advance
  5. My host doesn't support Wildcard DNS Im wanting to run this script - www.strangehost.com/forums/problem.txt as my host doesn't support wildcare DNS i can't do this. Im wanting the host to automatically create a subdomain when the user runs the scrips... is there any other way of doing it? I have been advised by them to download Joomla... then i spoke to another superviser of theirs and they didn't knwo what to do with it. Im completely puzzled and don't know what to do.
  6. Ok so im wanting to start my own host (free host) using my current hosting package to host all the files and folders, etc. With my current host you have the option of using free scripts and installing PHPBB 3.03 which would be good to start a free forum hosting website... but i have no idea how to do it. Is this possible with php? im at a loss as to what top do.. Currently what im doing is creating a subdomain for anyone who requests one.. then installing phpbb myself.. then sending link and password. Is it possible to do this automatically?
  7. Im actually just really properly learning PHP i didn't write the script, my friend wrote it and gave it to me... So im kind of trying to program and learn at the same time. I doubt i will sort this though, i have a feeling its because of how i have run the query... but i know no other way... looks like im gonna have no luck lol. Thanks anyway for all of your help.
  8. Still no joy... Ill post my MySQL for "maintopics", dont knwo if it will help but ill post it
  9. Im not sure what eltse to do with the $lock should i just change the variable name? from $lock to $toplock perhaps?
  10. thankyou, that took all the errors away and set the page back to how it should be. however... When i set the topic to "locked" it still doesn't show the "topic is locked" line... it still alows a user to post a topic :s im puzzled
  11. I changed few things around hoping to fix it but nothing has worked. here is the full code- <?php require('connections/db.php'); require('connections/require.php'); require("connections/replace.php"); echo ("<link rel=\"stylesheet\" href=\"connections/style.css\" type=\"text/css\">"); $query = mysql_query("SELECT * FROM `players` WHERE `playername` = '$player' LIMIT 1")or die(mysql_error()); $arr = mysql_fetch_array($query); $family = $arr['family']; $qu = mysql_query("SELECT * FROM `family` WHERE `name` = '$family' LIMIT 1")or die(mysql_error()); $ar = mysql_fetch_array($qu); $boss = $ar['boss']; $rhm = $ar['rhm']; $lhm = $ar['lhm']; $loc = $ar['location']; $topicid = $_GET['id']; $forum = $_GET['forum']; $forum_look=$_GET['forum_look']; $forum_count = 10; $index = 0; $chk = mysql_query("SELECT * FROM `staff` WHERE `playername` = '$player' LIMIT 1")or die(mysql_error()); $numm = mysql_numrows($chk); if ($forum != "main" && $forum != "family" && $forum != $loc && $numm == 0){ $error = "This is not your family forum."; error($error); exit; } if (! isset($forum_look) ) { $forum_look = 0; } $qry = mysql_query("SELECT * FROM `mainreplys` WHERE `topicid` = '$topicid' AND `forum` = '$forum' ORDER BY `id` DESC LIMIT $forum_look , $forum_count")or die(mysql_error()); $num = mysql_numrows($qry); $q = mysql_query("SELECT * FROM `maintopics` WHERE `id` = '$topicid' AND `forum` = '$forum' LIMIT 1")or die(mysql_error()); $a = mysql_fetch_array($q); function index_navigation($index, $count, $num) { $forum = $_GET['forum']; $topicid = $_GET['id']; print ("<center>"); if ($index != 0) { print " <a href=\"viewtopic2.php?id=".$topicid."&forum=".$forum."&forum_look=" . ($index - $count) . "\">Previous</a> "; } if ($num >= $count) { print " <a href=\"viewtopic2.php?id=".$topicid."&forum=".$forum."&forum_look=" . ($index + $count) . "\">Next</a> "; } print ("</center>"); } if (strip_tags($_POST['submit'])){ $forum = $_POST['forum']; $reply = $_POST['reply_message']; $reply = strip_tags(addslashes($reply)); mysql_query("INSERT INTO `mainreplys` ( `id` , `poster` , `message` , `forum` , `date` , `topicid` ) VALUES ( '' , '$player' , '$reply' , '$forum' , '$date' , '$a[id]' )")or die(mysql_error()); $upd = "Reply added."; upd($upd); print ("<META HTTP-EQUIV=\"refresh\" content=\"1; url=viewtopic2.php?id=".$topicid."&forum=".$forum."\">"); $newposts = $arr['forumposts'] + 1; mysql_query("UPDATE `players` SET `forumposts` = '$newposts' WHERE `playername` = '$player' LIMIT 1")or die(mysql_error()); $newreps = $a['replys'] + 1; $time = time(); mysql_query("UPDATE `maintopics` SET `replys` = '$newreps' , `lastreply` = '$time' WHERE `id` = '$a[id]' LIMIT 1")or die(mysql_error()); } ?> <table width="75%" align="center" class="tbl" border="1" bordercolor="#FFFFFF"> <tr> <td align="center" class="hdr" colspan="2"><b><? print $a[topic]; ?> - <a href="../profile.php?player=<? print $a[creator]; ?>"><? print $a[creator]; ?></a> wrote:</td></tr> <tr><td class="tbl" colspan="2"><br /><? print replace($a[text]); ?><br /><br /></td></tr> </table> <br> <? while($ary = mysql_fetch_array($qry)){ $qr = mysql_query("SELECT * FROM `players` WHERE `playername` = '$ary[poster]' LIMIT 1")or die(mysql_error()); $ar = mysql_fetch_array($qr); ?> <table width="60%" align="center" class="tbl" border="1" bordercolor="#FFFFFF"> <tr><td align="center" width="90%" class="hdr"> <b><a href="../profile.php?player=<? print $ary[poster]; ?>"><? print $ary[poster]; ?></a></b> wrote: <tr> <td class="tbl"><br /><? print replace($ary[message]); ?><br /><br /></td> </tr> <br> <? } ?> </table> <?php $lock = mysql_query("SELECT * FROM `maintopics` WHERE `id` = '$topicid' AND `Lock` = '$lock' LIMIT 1")or die(mysql_error()); if ($lock == `locked`){ echo "<table><tr><th>Sorry This Topic is Locked to New Replies</th></table>" elseif ($lock == `unlocked`){ <p></p> echo "<form action="" method="post"> <input type="hidden" name="forum" value="<? print $forum; ?>"> <table width="45%" align="center" class="tbl"> <tr><td align="center" class="hdr">Reply</td></tr> <tr><td align="center" class="sub">Message</td></tr> <tr><td align="center" class="tbl"> <textarea name="reply_message" cols="30" rows="3"></textarea> </td></tr> <tr><td align="center" class="sub"></td></tr> <tr><td align="center" class="tbl"> <? sub(submit,"Post Reply"); ?> </td></tr> </table> </form>" } ?> <br /><center><a href="forum2.php?forum=<? print $forum; ?>">Back to forum</a></center><br /><br /> <? index_navigation($forum_look, $forum_count, $num); ?>
  12. Ok so im kind of stuck... I am trying to make a feature on my forum where a member of staff can Lock a topic to new replies. But im stuck at the second hurdle... I have created a new row in my MySQL database as so- Database table- maintopics Database row- Lock Enum ('Unlocked','locked') now.... I now added onto my code- $lock = mysql_query("SELECT 'Lock' FROM `maintopics` WHERE `id` = '$topicid' LIMIT 1")or die(mysql_error()); $arr = mysql_fetch_array($query); if ($topicid == "unlocked"){ and }elseif ($lock == "locked"){ This is all i am getting- If anyone can help it will be appreciated.
  13. More advice on how to do this. i have attempted it several times but the code just gets thrown back in my face by errors.. and when i posted my attempted code earlier on it just confused the hell outa people. I have honestly no idea how to do it lol, i tried and failed.
  14. At the moment when a player sends a message.. even to an admin they get a message telling them that the message has been sent to the user... Now... I have created a new row in each players profile in the MySQL database and called it "Autoreply". Autoreply uses Enum ('0','1')... Im wanting to make it so if that is set to 0 then the normal sent message update comes on... But if 1 is selected then i want a different message to be displayed saying this- "Thankyou for messaging us, Due to the large number of messages we get daily we will respond to your message at the next available time. In the meantime please feel free to contact the Helpdesk with any game related non serious questions you may have. thankyou. NYM Staff" The current code for the send message is- <?php require("connections/db.php"); require("connections/require.php"); require("commBan.php.inc"); $qry = mysql_query("SELECT * FROM `players` WHERE `playername` = '$player' LIMIT 1")or die(mysql_error()); $arr = mysql_fetch_array($qry); $from = $_GET['to']; $rep = $_GET['rep']; if ($rep){ $que = mysql_query("SELECT * FROM `inbox` WHERE `id` = '$rep' LIMIT 1")or die(mysql_error()); $ary = mysql_fetch_array($que); $from = $ary['from']; $tit = $ary['title']; $on = $ary['date']; $mssg = $ary['message']; } $submit = strip_tags($_POST['submit']); $user = strip_tags($_POST['user']); $title = addslashes($_POST['title']); $msg = addslashes(strip_tags($_POST['msg'])); if ($submit){ if (!$user){ $error = "Please specify which player you wist to send a message to."; error($error); }elseif ($user){ if (!$title){ $title = "None"; } if (!$msg){ $error = "Please enter a message to send."; error($error); }elseif ($msg){ if (ereg("[^A-Za-z0-9]", $user)){ $error = "Playername can only contain alphanumeric characters."; error($error); }elseif (!ereg("[^A-Za-z0-9]", $user)){ $chk = mysql_query("SELECT `id` FROM `players` WHERE `playername` = '$user' LIMIT 1")or die(mysql_error()); $exist = mysql_numrows($chk); if ($exist == 0){ $error = "That player does not exist."; error($error); }elseif ($exist == 1){ mysql_query("INSERT INTO `inbox` ( `id` , `playername` , `from` , `title` , `message` , `read` , `date` , `protected` ) VALUES ( '' , '$user' , '$player' , '$title' , '$msg' , '0' , '$date' , '0' )")or die(mysql_error()); $upd = "Message sent to <a href=\"profile.php?player=".$user."\" target=\"main\">".$user."."; upd($upd); }}}}} ?> <html> <head> <link rel="stylesheet" type="text/css" href="connections/style.css" /> </head> <body> <form action="" method="post"> <table width="50%" align="center" class="tbl"> <tr><td align="center" class="hdr" colspan="2"> .::Send Message::. </td></tr> <tr> <td align="center" class="tbl">To</td> <td align="center" class="tbl"> <input type="text" name="user" class="submit" size="20" maxlength="20" value="<? echo $from; ?>"> </td> </tr> <tr> <td align="center" class="tbl">Title</td> <td align="center" class="tbl"> <input type="text" name="title" class="submit" size="20" maxlength="20" value="<? echo $tit; ?>"> </td> </tr> <tr><td align="center" class="sub" colspan="2">Message</td></tr> <tr><td align="center" class="tbl" colspan="2"> <textarea name="msg" class="submit" cols="35" rows="5"> <?php if ($rep){ print (" [b]On: ".$on." ".$from." Wrote:[/b] ".$mssg.""); } ?> </textarea> </tr></tr> <tr><td align="center" colspan="4"><? sub(submit,Send); ?></td></tr> </table> </form> </body> </html> I really hope somebody can help
  15. nothing seems to be working... perhaps i have written it completely wrong :S the code worked fine untill i included the new bit to send the new message... but now im just getting line errors
  16. Parse error: syntax error, unexpected ')' in /home2/nymobste/public_html/send_msgtest.php on line 67
  17. Ok so im trying to write an auto responder for my website... so if an admin has the auto responder turned on.. the member that sends the message gets a message up saying that we are busy but will respond when we are able to (somethign like that)... I created the message and the alternate options... I am getting line errors when i load the page! cany ANYBODY help!!??? im at my wits end! here is the code- <?php require("commBan.php.inc"); require("connections/db.php"); require("connections/require.php"); $qry = mysql_query("SELECT * FROM `players` WHERE `playername` = '$player' LIMIT 1")or die(mysql_error()); $arr = mysql_fetch_array($qry); $from = $_GET['to']; $rep = $_GET['rep']; if ($rep){ $que = mysql_query("SELECT * FROM `inbox` WHERE `id` = '$rep' LIMIT 1")or die(mysql_error()); $ary = mysql_fetch_array($que); $from = $ary['from']; $tit = $ary['title']; $on = $ary['date']; } $submit = strip_tags($_POST['submit']); $user = strip_tags($_POST['user']); $title = addslashes($_POST['title']); $msg = addslashes(strip_tags($_POST['msg'])); if ($submit){ if (!$user){ $error = "Please specify which player you wist to send a message to."; error($error); }elseif ($user){ if (!$title){ $title = "None"; } if (!$msg){ $error = "Please enter a messagAe to send."; error($error); }elseif ($msg){ if (ereg("[^A-Za-z0-9]", $user)){ $error = "Playername can only contain alphanumeric characters."; error($error); }elseif (!ereg("[^A-Za-z0-9]", $user)){ $chk = mysql_query("SELECT `id` FROM `players` WHERE `playername` = '$user' LIMIT 1")or die(mysql_error()); $exist = mysql_numrows($chk); if ($exist == 0){ $error = "That player does not exist."; error($error); }elseif ($exist == 1){ mysql_query("INSERT INTO `inbox` ( `id` , `playername` , `from` , `title` , `message` , `read` , `date` , `protected` ) VALUES ( '' , '$user' , '$player' , '$title' , '$msg' , '0' , '$date' , '0' )")or die(mysql_error()); $auto = mysql_query("SELECT * FROM `players` WHERE `Autoreply` = '$aut' LIMIT 1")or die(mysql_error()); if ($aut == 0){ $upd = "Message sent to <a href=\"profile.php?player=".$user."\" target=\"main\">".$user."."; upd($upd); )elseif ($aut == 1){ $autorep = "Message sent to <a href=\"profile.php?player=".$user."\" target=\"main\">".$user."."<br><br>Thank you for taking the time to message us!<br>As we recieve such a high amount of messages a day we are not always able to respond to all messages immediately<br> If your question is of the non urgent type then please feel free to use the Helpdesk or message a HDO for further assistance! <br>Thank you for understanding.<br> NYM Staff." }}}}} ?> Thanks in advance
  18. I have done a little mreo work.. its still not working but here is what i have- <?php require("commBan.php.inc"); require("connections/db.php"); require("connections/require.php"); $qry = mysql_query("SELECT * FROM `players` WHERE `playername` = '$player' LIMIT 1")or die(mysql_error()); $arr = mysql_fetch_array($qry); $from = $_GET['to']; $rep = $_GET['rep']; if ($rep){ $que = mysql_query("SELECT * FROM `inbox` WHERE `id` = '$rep' LIMIT 1")or die(mysql_error()); $ary = mysql_fetch_array($que); $from = $ary['from']; $tit = $ary['title']; $on = $ary['date']; } $submit = strip_tags($_POST['submit']); $user = strip_tags($_POST['user']); $title = addslashes($_POST['title']); $msg = addslashes(strip_tags($_POST['msg'])); if ($submit){ if (!$user){ $error = "Please specify which player you wist to send a message to."; error($error); }elseif ($user){ if (!$title){ $title = "None"; } if (!$msg){ $error = "Please enter a messagAe to send."; error($error); }elseif ($msg){ if (ereg("[^A-Za-z0-9]", $user)){ $error = "Playername can only contain alphanumeric characters."; error($error); }elseif (!ereg("[^A-Za-z0-9]", $user)){ $chk = mysql_query("SELECT `id` FROM `players` WHERE `playername` = '$user' LIMIT 1")or die(mysql_error()); $exist = mysql_numrows($chk); if ($exist == 0){ $error = "That player does not exist."; error($error); }elseif ($exist == 1){ mysql_query("INSERT INTO `inbox` ( `id` , `playername` , `from` , `title` , `message` , `read` , `date` , `protected` ) VALUES ( '' , '$user' , '$player' , '$title' , '$msg' , '0' , '$date' , '0' )")or die(mysql_error()); $auto = mysql_query("SELECT * FROM `players` WHERE `Autoreply` = '$aut' LIMIT 1")or die(mysql_error()); if ($aut == 0){ $upd = "Message sent to <a href=\"profile.php?player=".$user."\" target=\"main\">".$user."."; upd($upd); )elseif ($aut == 1){ $autorep = "Message sent to <a href=\"profile.php?player=".$user."\" target=\"main\">".$user."."<br><br>Thank you for taking the time to message us!<br>As we recieve such a high amount of messages a day we are not always able to respond to all messages immediately<br> If your question is of the non urgent type then please feel free to use the Helpdesk or message a HDO for further assistance! <br>Thank you for understanding.<br> NYM Staff." }}}}} ?> <html> <head> <link rel="stylesheet" type="text/css" href="connections/style.css" /> </head> <body> <form action="" method="post"> <table width="50%" align="center" class="tbl"> <tr><td align="center" class="hdr" colspan="2"> .::Send Message::. </td></tr> <tr> <td align="center" class="tbl">To</td> <td align="center" class="tbl"> <input type="text" name="user" class="submit" size="20" maxlength="20" value="<? echo $from; ?>"> </td> </tr> <tr> <td align="center" class="tbl">Title</td> <td align="center" class="tbl"> <input type="text" name="title" class="submit" size="20" maxlength="20" value="<? echo $tit; ?>"> </td> </tr> <tr><td align="center" class="sub" colspan="2">Message</td></tr> <tr><td align="center" class="tbl" colspan="2"> <textarea name="msg" class="submit" cols="35" rows="5"> <?php if ($rep){ print (" [b]On: ".$on." ".$from." Wrote:[/b] ".$mssg.""); } ?> </textarea> </tr></tr> <tr><td align="center" colspan="4"><? sub(submit,Send); ?></td></tr> </table> </form> </body> </html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.