EndGame for DF

Addons for WoWRosterDF

Re: EndGame for DF

Postby Dawnhawk » Tue Jul 31, 2007 3:47 am

Hey I got this working, here's the code that I changed in index.php:

php:
Code: Select all
$selfurl = htmlentities($_SERVER['PHP_SELF'] . "?roster_addon_name=EndGame$authurl");
if ($zone != '') $selfurl .= "&zone=$zone";
if ($sort != 'name') $selfurl .= "&sort=$sort";
if ($sortdir == 'DESC') $selfurl .= "&dir=DESC";

$all_zones = array('AQ20','AQ40','BWL','MC','NAX','WBS','ZG','ONY','GL','ML','KRZ','EYE','SSC');
$form = '';
$form .= '<form action="'.$_SERVER['PHP_SELF'].'" method="GET" name="zoneform">';
$form .= '<input type="hidden" name="roster_addon_name" value="EndGame" />';
$form .= '<input type="hidden" name="sort" value="'.htmlentities($sort).'" />';
$form .= '<input type="hidden" name="dir" value="'.htmlentities($sortdir).'" />';


to

php:

Code: Select all
$selfurl = "name=".$name."&file=".$file."&roster_addon_name=".$_GET['roster_addon_name'];
if ($zone != '') $selfurl .= "&zone=$zone";
if ($sort != 'name') $selfurl .= "&sort=$sort";
if ($sortdir == 'DESC') $selfurl .= "&dir=DESC";

$all_zones = array('AQ20','AQ40','BWL','MC','NAX','WBS','ZG','ONY','GL','ML','KRZ','EYE','SSC');
$form = '';
$form .= '<form action="'.$_SERVER['PHP_SELF'].'" method="GET" name="zoneform">';
$form .= '<input type="hidden" name="name" value="WowRosterDF" />';
$form .= '<input type="hidden" name="file" value="addon" />';
$form .= '<input type="hidden" name="roster_addon_name" value="EndGame" />';
$form .= '<input type="hidden" name="sort" value="'.htmlentities($sort).'" />';
$form .= '<input type="hidden" name="dir" value="'.htmlentities($sortdir).'" />';


Note: you'll need to add the fields to a few forms in order for the edit function to work.

Note2: You'll also need to fix $images in perentBar.php if you want the health bar image to show up.

Hope that helps you.
Last edited by Dawnhawk on Tue Jul 31, 2007 4:27 am, edited 4 times in total.
Dawnhawk
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Wed Dec 27, 2006 12:25 am

Previous

Return to WoWRosterDF Addons

Who is online

Users browsing this forum: No registered users and 0 guests

cron