Non Xoops addons in wowrosterX module

Xoops / eXoops integration forum

Non Xoops addons in wowrosterX module

Postby boniggy » Sat Apr 28, 2007 6:01 am

I'm a newb here and i did try to look thru the forum but was unable to find anything on this.

QUESTION:
Is there a way to get non wowrosterx addons to work correctly in the frame of Xoops? All the addons work (the ones ive used so far) but they all kick all the way to the bottom of the entire Xoops site.

Its been a while since i was editing php code and i cant remember where or what to do.

Any help here would be bigtime greatful. If i could figure this out then i could populate the Xoops area with addons. Theres currently none :(

Thanks!
Boniggy
Last edited by boniggy on Sat Apr 28, 2007 6:02 am, edited 1 time in total.
boniggy
WR.net Apprentice
WR.net Apprentice
 
Posts: 10
Joined: Sat Apr 28, 2007 5:50 am

Re: Non Xoops addons in wowrosterX module

Postby mdeshane » Sun Apr 29, 2007 6:37 am

Most Roster Addons should work with WoWRosterX, there are a few that currently do not work. If you have found some that do not work please post the here. For a list of known working addons please go here.

I would prefer to not have to recode any individual addons, I would rather make the wowrosterx code work for all roster addons. If you can give me more info as to addons that won't work or display incorrectly please post it in the Addons category in the Xoops/eXoops Integration category linked above.


* Admins please move this to the Xoops/eXoops category. *
Image
Accounts Addon - Roster v2 User Account Addon

PKC Dev Site - http://dev.pkcomp.net
My Roster Dev Site - http://myroster.dontexist.net
User avatar
mdeshane
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 204
Joined: Sun Dec 10, 2006 4:54 am
Location: Grand Rapids, MI USA
Realm: Khadgar (PvE) - US

Re: Non Xoops addons in wowrosterX module

Postby boniggy » Sun Apr 29, 2007 4:19 pm

I understand that these are "semi working" but the addons post/show at the bottom of the screen. The user would have to know its down there after the footer.php file.

Goto my website and you'll see what i mean when i somebody clicks on one of the addons. I'm sure theres a way to fix this i just need to know what the code is and where i would put it.

Thanks
-Bo
boniggy
WR.net Apprentice
WR.net Apprentice
 
Posts: 10
Joined: Sat Apr 28, 2007 5:50 am

Re: Non Xoops addons in wowrosterX module

Postby mdeshane » Sun Apr 29, 2007 11:36 pm

Yes, I see your problem, I'm not exactly sure why it's displaying all the addons below the footer. However I have just noticed that my guild's site is having the same problem. I'm not sure what causes it at this time, but I will get it fixed before the next release.
Image
Accounts Addon - Roster v2 User Account Addon

PKC Dev Site - http://dev.pkcomp.net
My Roster Dev Site - http://myroster.dontexist.net
User avatar
mdeshane
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 204
Joined: Sun Dec 10, 2006 4:54 am
Location: Grand Rapids, MI USA
Realm: Khadgar (PvE) - US

Re: Non Xoops addons in wowrosterX module

Postby boniggy » Mon Apr 30, 2007 1:34 am

Shaweet! if you need any help pls let me know. Like i said, ive worked in PHP a lot but ive been off of it for about a year or so. I would be glad to help you modify the addons to make them work properly.

-Bo
boniggy
WR.net Apprentice
WR.net Apprentice
 
Posts: 10
Joined: Sat Apr 28, 2007 5:50 am

Non Xoops addons in wowrosterX module

Postby PleegWat » Mon Apr 30, 2007 3:36 am

At a guess, take a look at the output buffering. If the xoops port also uses output buffering, the two buffers may conflict.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Non Xoops addons in wowrosterX module

Postby mdeshane » Mon Apr 30, 2007 4:24 am

Ok I've found the problem and PleegWat is right. The xoops header and footer are called were the output buffer is called, the problem is that it's already called later in the code when the output is displayed. So, the fix is below.

Line 105 in addon.php:
Code: Select all
    // The addon will now assign its output to $content
    
include_once (XOOPS_ROOT_PATH."/header.php"); //WRX - Header
    
ob_start();
        include_once( 
$addonFile );
        
$content ob_get_contents();
    
ob_end_clean();
    include_once (
XOOPS_ROOT_PATH."/footer.php"); //WRX - Footer
 

Change to:
Code: Select all
    // The addon will now assign its output to $content
    
ob_start();
        include_once( 
$addonFile );
        
$content ob_get_contents();
    
ob_end_clean();
 


That should make the addons display inside Xoops properly. If you have any other problems let me know.
Image
Accounts Addon - Roster v2 User Account Addon

PKC Dev Site - http://dev.pkcomp.net
My Roster Dev Site - http://myroster.dontexist.net
User avatar
mdeshane
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 204
Joined: Sun Dec 10, 2006 4:54 am
Location: Grand Rapids, MI USA
Realm: Khadgar (PvE) - US

Re: Non Xoops addons in wowrosterX module

Postby boniggy » Mon Apr 30, 2007 2:01 pm

dude... if this works (gonna try it right now) then you are freakin awesome... ill let you know how it works.

Thanks for lookin into this.

-Bo

We have a touchdown! Its working... Thanks a ton.. i appreciate it.
Last edited by boniggy on Mon Apr 30, 2007 2:13 pm, edited 1 time in total.
boniggy
WR.net Apprentice
WR.net Apprentice
 
Posts: 10
Joined: Sat Apr 28, 2007 5:50 am


Return to Xoops / eXoops

Who is online

Users browsing this forum: No registered users and 1 guest

cron