FIX: get wowroster addons working in wowrosterdf

Dragonfly integration forum

FIX: get wowroster addons working in wowrosterdf

Postby robvan3 » Fri Mar 02, 2007 5:22 pm

A lot of addons call the wowroster addon.php which is not in the same absolute path. To resolve this, a redirector to call the page the proper way can be done.

A file called "addon.php" needs to be added to the root directory of Dragonfly with the following contents:
Code: Select all
<?php

require_once 'HTTP.php';

$uri $_SERVER[REQUEST_URI];
$old "/addon.php?";
$new "/index.php?name=WoWRosterDF&file=addon&";

$uri str_replace($old$new$uri);

HTTP::redirect($uri);

?>


With this fix, I was able to use all of the addons that I wanted for my site. I hope you have the same experience.
Last edited by robvan3 on Fri Mar 02, 2007 5:51 pm, edited 1 time in total.
robvan3
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Wed Jan 24, 2007 10:25 pm

FIX: get wowroster addons working in wowrosterdf

Postby robojerk » Fri Mar 02, 2007 5:42 pm

I'm not sure that would work if Leo is enabled..

Also can you link your site so we can see it working.
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

FIX: get wowroster addons working in wowrosterdf

Postby zanix » Fri Mar 02, 2007 5:52 pm

If this does indeed work
Using LEO, it would be like this

Code: Select all
<?php

require_once 'HTTP.php';

$uri $_SERVER[REQUEST_URI];
$old "/addon.php?";
$new "/WoWRosterDF/addon/";

$uri str_replace($old$new$uri);

HTTP::redirect($uri);

?>
Last edited by zanix on Fri Mar 02, 2007 5:53 pm, edited 1 time in total.
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

FIX: get wowroster addons working in wowrosterdf

Postby robojerk » Fri Mar 09, 2007 8:00 pm

I tried creating a char.php file to do the same so I wont have to rewrite some addons.

Code: Select all
<?php

require_once 'HTTP.php';

$uri $_SERVER[REQUEST_URI];
$old "/char.php?";
$new "/index.php?name=Roster&file=char&";

$uri str_replace($old$new$uri);

HTTP::redirect($uri);

?>


Didn't work.
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


Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 1 guest

cron