DF_FactionRewards

Addons for WoWRosterDF

DF_FactionRewards

Postby robojerk » Wed Mar 21, 2007 3:40 pm

Someone will probably write a better port later, but here's my 10 minute work while watching TV with the wife.

I played with it a little and it seems to work..


Download Anaxent's port here.
Last edited by robojerk on Thu Mar 22, 2007 1:11 pm, edited 2 times in total.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

DF_FactionRewards

Postby Anaxent » Thu Mar 22, 2007 12:38 am

Thank you..
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

DF_FactionRewards

Postby robojerk » Thu Mar 22, 2007 3:59 am

I just realized I didn't make it LEO compatible. I have some chores to do today (going to Vegas tomorrow) so if I have time I'll see if I can look at it today.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

DF_FactionRewards

Postby Anaxent » Thu Mar 22, 2007 5:17 am

It was not hard to make leo compatiable just 2 file edits character and factions.
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

DF_FactionRewards

Postby robojerk » Thu Mar 22, 2007 9:04 am

If have already downloaded the addon and you want to just fix it for LEO then replace every line that has this
Code: Select all
value="index.php?name='.$module_name.'

to this
Code: Select all
value="'.getlink($module_name).'
.

The download on the first post now includes these fixes... My Host doesn't support LEO (lame cgi enabled PHP server) so please scream here or something if it doesn't work.
Last edited by robojerk on Thu Mar 22, 2007 9:05 am, edited 1 time in total.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Re: DF_FactionRewards

Postby Anaxent » Thu Mar 22, 2007 12:45 pm

factionrewards made for DF. everything should be working even leo linking

updated all links for leo
Code: Select all
$choiceForm .= '      <option value="'.getlink($script_filename.'&amp;mode=character&amp;characterfilter='.$row["name"].'&amp;factionfilter='.$ffold.'&amp;recipes_only='.$roold.'&amp;learnable_only='.$loold).'" selected="selected">'.$row["name"].'</option>\n';
Attachments
factionrewards.zip
(22.41 KiB) Downloaded 517 times
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

Re: DF_FactionRewards

Postby Karavirs » Thu Mar 22, 2007 3:18 pm

Change these lines to clear up url issue when clicking learnable checkbox...

Starting @ line 48 in character.php
Code: Select all
if ($loold == "true")
    $choiceForm .= '<input type="checkbox" name="learnable_only" value="'.getlink($script_filename.'&amp;mode=character&amp;characterfilter='.$cfold.'&amp;factionfilter='.$ffold.'&amp;recipes_only='.$roold.'&amp;learnable_only=false').'" onchange="top.location.href=this.value" checked> '.$wordings[$roster_conf['roster_lang']]['learnable_only'].' <br/>';
else
    $choiceForm .= '<input type="checkbox" name="learnable_only" value="'.getlink($script_filename.'&amp;mode=character&amp;characterfilter='.$cfold.'&amp;factionfilter='.$ffold.'&amp;recipes_only='.$roold.'&amp;learnable_only=true').'" onchange="top.location.href=this.value"> '.$wordings[$roster_conf['roster_lang']]['learnable_only'].' <br/>';


Line 97 of faction.php
Code: Select all
$tableBodyRows .= '<td class="membersRow'. (($striping_counter % 2) +1) .'"><a href="'.getlink($module_name.'&amp;file=char&amp;cname='.$row['mname'].'&server='.$server_name).'">'.$row['mname'].'</a><br/>'.$row['curr_rep'].' / '.$row['max_rep'].' ('.$row['standing'].')</td>';


FYI, I use LEO
Last edited by Karavirs on Thu Mar 22, 2007 3:25 pm, edited 3 times in total.
Image

Image
User avatar
Karavirs
WR.net Apprentice
WR.net Apprentice
 
Posts: 49
Joined: Mon Feb 26, 2007 6:33 pm
Location: Chicago


Return to WoWRosterDF Addons

Who is online

Users browsing this forum: No registered users and 0 guests

cron