11
ros256
Re: Hack for multi upload atavars
  • 2004/10/13 0:30

  • ros256

  • Just popping in

  • Posts: 3

  • Since: 2004/10/12


Found the problem. Apparently this hack didn't declare any instance of WfsLists, so I did it for it.

In the avatars/main.php file, go to line 58 where there's a call to WfsLists::getarray(). Insert before this line:

$wfslistsx = new WfsLists;

Then change the call to getarray() as such:

$wfslistsx->getarray( XOOPS_ROOT_PATH . "/uploads/cache");

This fixed it for me.

-Rosencrantz

12
ros256
Re: Hack for multi upload atavars
  • 2004/10/13 9:13

  • ros256

  • Just popping in

  • Posts: 3

  • Since: 2004/10/12


I found that the code in modules/wfsection/class/wfslists.php calls the getarray function of the object-type WfsLists, of which no instance had been created. So I added the line

$wfslistsx=new WfsLists;

and modified the call to getarray to read

$wfslistsx->getarray( XOOPS_ROOTR_PATH . "/uploads/cache");

Was this hack written for a different version of XOOPS perhaps? I'm using the latest (2.0.7.3)

That fixed that problem, but left me with another problem I had to work around. The module doesn't pull the information in user settings about limits when uploading avatars. It thinks the "avatar_maxsize" "avatar_width" and "avatar_height" values in $xoopsConfigUser are all null. Perhaps whatever function populates $xoopsConfigUser is not being called properly?

I was able to work around this by hardcoding my own limits to use but this is less than ideal. Any input?

-Rosencrantz

13
suico
Re: Hack for multi upload atavars
  • 2005/3/23 19:57

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


Does this hack for multiple avatars works with the new XOOPS 2.0.9.3 ?

14
Lualah
Re: Hack for multi upload atavars
  • 2005/3/28 21:19

  • Lualah

  • Just popping in

  • Posts: 30

  • Since: 2005/3/6 2


not working for me

Login

Who's Online

343 user(s) are online (250 user(s) are browsing Support Forums)


Members: 0


Guests: 343


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits