Jump to content

GRooVeZ

Members
  • Posts

    34
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

GRooVeZ's Achievements

Member

Member (2/5)

0

Reputation

  1. cool man thx allot, that works again im gonna try to make the form validate myself, thx for the directions there is one small bug in the vote system, but im not sure whats causing this when u first select two the same options. the thirth will be not selectable, but if u change ur fist two choises, its still not selectable, but this is totally no big deal im really happy with how its working now u can check it here http://www.acidleague.com/League/ffachoosemaps.php?match=3 thx !
  2. hey man that works really nice got two things that i cant figure out how to make it so that u can choose an option two times? but not 3? also i added a line to my code to get as first option '- Choose Map -' how to make it check that u selected a map? now u can press submit when u didnt select 3 maps. appreciate ur help THX
  3. hi im looking into matches with a match id and a player id, and i want as result in wich place the player ended $playerresult=mysql_query("SELECT id,points FROM ffa_points where matchid=$matchid order by points desc"); can i directly select the nr of the row? or do i have to make a while loop, and count every time wich place he ended?
  4. if u use this for one condition if ($nr > 5) how would u check if the nr is between 5 and 50 thx !
  5. thx. im gonna look if i can get that to work !
  6. i found this javascript if (select_box.value == ’0′){ alert(“You must select an option”); return false; } how to make it check for 3 the same options? or two? if (select_box.value == select_box2.value){ alert(“You cant choose the same options”); return false; } is this correct for two? and how do i do 3? thanks !
  7. hi people can vote 3 times with 3 select menus but i want them not to be able to choose 3x the same select option the options in the select menus come out of the database this is how i let them vote <?php include("./includes/egl_inc.php"); $secure = new secure(); $secure->secureGlobals(); session_start(); if (isset ($_GET['match'])) { $matchid = (int)$_GET['match']; $_SESSION['matchid'] = $matchid; $matchmaps = mysql_fetch_array(mysql_query("SELECT maps,game FROM ffa_matches WHERE id=$matchid")); $matchmapschecker = $matchmaps[maps]; $matchgamechecker = $matchmaps[game]; $maps=mysql_query("SELECT id,map FROM ffa_maplists where gameid = $matchgamechecker"); while(list($id,$map)=mysql_fetch_row($maps)) { $maplist.="<option value='$id'>$map</option>\n"; } $out[body].="<table width='98%' border='0' cellspacing='0' cellpadding='0' style='border:1px solid black'> <tr style='color:#cccccc; background-color:black;'> <td valign='middle' background='$config[bg2]' align='center' colspan='10'> <br/>Choose Maps<br/> </td> </tr></table><table width='98%' border='0' cellspacing='0' cellpadding='0' style='border:1px solid black'> <tr style='background-color:black;'> <td> <form action='ffainsertmapvote.php' method='post'> <select name='map1'>$maplist</select> <select name='map2'>$maplist</select> <select name='map3'>$maplist</select> <input type='hidden' name='match' value='$matchid' /> <input type='submit' value='Vote' /> </form> </td> </tr></table>"; } include("$config[html]"); ?> do i need jquery to fix this? i dont want the user to be able to go to a next screen without having max 2 the same options selected thx in advance !
  8. hi on my page i have a widget (the globe where every visitor leaves a dot on. revolvermaps) i also use a facebook like chat, thats displayes as a bar that sticks at the bottom of the window when u open the friendlist or chatwindows, the globe is covering the chatwindows ... and this only happens in IE u can test urself, scroll down at the homepage www.acidleague.com is there any way to get around this? any help would be greatly appreciated this is the code for the globe echo "<script type='text/javascript' src='http://jj.revolvermaps.com/r.js'></script><script type='text/javascript'>rm_f1st('5','298','true','false','523310','9g55o96hy6l','true','ff8a00');</script><noscript><applet codebase='http://rj.revolvermaps.com/j' code='core.RE' width='298' height='298' archive='g.jar'><param name='cabbase' value='g.cab' /><param name='r' value='true' /><param name='n' value='false' /><param name='i' value='9g55o96hy6l' /><param name='m' value='5' /><param name='s' value='298' /><param name='c' value='ff8a00' /><param name='v' value='true' /><param name='b' value='523310' /><param name='rfc' value='true' /></applet></noscript>";
  9. hi i want to add some content to my site using xml rss i have a feed i want to show, and the only thing i can find to show it on my page or widgets but they dont look like i want it to look, so i want to make a php script that reads the xml file and then parses it into my website dont know if this is even possible ... but if its possible, is it also possible to filter the feed on certain keywords?
  10. sorry cant edit my first anymore, i quoted by accident this is my most recent code <?php header("Content-Type: application/xml; charset=utf-8"); include("./includes/egl_inc.php"); $secure = new secure(); $secure->secureGlobals(); $rssurl = 'http://www.acidleague.com/League/index_rss.php'; $rssname = 'AcID FFA RSS'; $rssdes = 'Free For All Matches Agenda'; $xml = '<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel>'; $xml.='<title>'. $rssname .'</title><description>'. $rssdes .'</description><link>'. $rssurl .'</link>'; $query_items = "SELECT id,date FROM ffa_matches where status=0"; $result_items = mysql_query ($query_items) or die("Query failed with error: ".mysql_error()); while($row = mysql_fetch_array($result_items)) { $result = $row[id]; $resultdate = $row[date]; $matchurl = $row[date]; $xml .= '<item><title>'. $result .'</title><link>'. $matchurl .'</link><description>'. $resultdate.'</description></item>'; } $xml .= '</channel>'; $xml .= '</rss></xml>'; echo $xml; ?>
  11. hi ive been writing my own RSS feed, and after a few hours i finally got the xml string to show correctly after that i went to a rss validator, and fixed some other stuff, but now im stuck on the last 3 actually ive been to two and they both say different things http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.acidleague.com%2FLeague%2Findex_rss.php http://www.ivalidation.net/html.php?uri=http%3A%2F%2Fwww.acidleague.com%2FLeague%2Findex_rss.php this is my file <?php header("Content-Type: application/xml; charset=ISO-8859-1"); $secure = new secure(); $secure->secureGlobals(); $rssurl = 'http://www.acidleague.com/League/index_rss.php'; $rssname = 'AcID FFA RSS'; $rssdes = 'Free For All Matches Agenda'; $xml = '<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel>'; $xml.='<title>'. $rssname .'</title><description>'. $rssdes .'</description><link>'. $rssurl .'</link>'; $query_items = "SELECT id FROM ffa_matches where status=0"; $result_items = mysql_query ($query_items) or die("Query failed with error: ".mysql_error()); while($row = mysql_fetch_array($result_items)) { $result = $row[id]; $resultdate = $row[date] $matchurl = 'http://www.acidleague.com/League/ffamatch.php?match=' . $result; $xml .= '<item><title>'. $result .'</title><link>'. $matchurl .'</link><description>'. $resultdate.'</description></item>'; } $xml .= '</channel>'; $xml .= '</rss></xml>'; echo $xml; ?>[code=php:0]
  12. hi guys i am building a voting system for my gaming website people sign up for matches, and those will be played at 3-5 different maps people can vote for wich maps they want to play each player can choose 3 maps, also 3 x the same map now the results of that voting system are shown on the page like this There is 1 vote for Map 1 There are 5 votes for Map 2 There is 1 vote for Map 3 There are 2 votes for Map 7 There is 1 vote for Map 4 There is 1 vote for Map 5 There are 8 votes for Map 8 now i want to make a script that picks the maps that will be played, so only show the 3-5 best results in the example above it woud be 2 x map 8 and 1x map 2 but im not sure how to start on this the db table of the votes is built like this id matchid playerid mapid mapname 1 113 195 1 NukeTown 2 113 195 2 Grid 3 113 195 1 NukeTown 4 114 195 1 NukeTown 5 114 195 1 NukeTown any advice or thoughts on this? thanks
  13. i replaced the line, and it worked ! thx man !
  14. the problem is it giving me a 0 as value instead of the id wich has been inserted ... but thx for that
×
×
  • 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.