t_rob76,
The fix for the dropdown menu was pretty simple as well, the file guildpvp.php needed two changes to correct the dropdown form bug.
1. add the full url to the form action on line 56 (if you have an older copy of this file you'll also need to change the method from "get" to "post")
2. On lines 36 and 37 replace the $_GET with $_REQUEST
I'll include the first 60 lines of code here with the changes made;
- Code: Select all
<?php
/******************************
* WoWRoster.net Roster
* Copyright 2002-2006
* Licensed under the Creative Commons
* "Attribution-NonCommercial-ShareAlike 2.5" license
*
* Short summary
* http://creativecommons.org/licenses/by-nc-sa/2.5/
*
* Full license information
* http://creativecommons.org/licenses/by-nc-sa/2.5/legalcode
* -----------------------------
*
* $Id: guildpvp.php 62 2006-06-14 22:26:47Z mathos $
*
******************************/
if ( !defined('ROSTER_INSTALLED') )
{
exit('Detected invalid access to this file!');
}
//---[ Check for Guild Info ]------------
$guild_info = $wowdb->get_guild_info($roster_conf['server_name'],$roster_conf['guild_name']);
if( empty($guild_info) )
{
die_quietly( $wordings[$roster_conf['roster_lang']]['nodata'] );
}
// Get guild_id from guild info check above
$guildId = $guild_info['guild_id'];
include_once (ROSTER_BASE.'lib'.DIR_SEP.'menu.php');
if (isset($_REQUEST['type']))
$type = $_REQUEST['type'];
else
$type = 'guildwins';
$choiceArray = array(
'guildwins' => 'Wins by Guild',
'guildlosses' => 'Losses by Guild',
'enemywins' => 'Wins by Enemy',
'enemylosses' => 'Losses by Enemy',
'purgewins' => 'Guild Member Kills',
'purgelosses' => 'Guild Member Deaths',
'purgeavewins' => 'Best Win/Level-Diff Average',
'purgeavelosses' => 'Best Loss/Level-Diff Average',
'pvpratio' => 'Solo Win/Loss Ratios',
'playerinfo' => 'Player Info',
'guildinfo' => 'Guild Info',
);
$choiceForm = '<form action="' . $roster_conf['roster_dir'] . '&op=indexpvp" method="post" >
'.$wordings[$roster_conf['roster_lang']]['pvplist'].':
<select name="type">
';
As well as attaching the entire guildpvp.php file
Vlorn