SimplePortal

SimplePortal => Site Discussion => Topic started by: Nothingness on April 29, 2010, 10:56:00 PM

Title: Custom profile bug?
Post by: Nothingness on April 29, 2010, 10:56:00 PM
As posted at SMF.org and sounds somewhat related to SP. Can I ask what mods are installed here? There might be a simliar mod we have that may have cause this somehow. It's not really a SP mod as I have tested it on my localhost.

http://www.simplemachines.org/community/index.php?topic=378770.0
Title: Re: Custom profile bug?
Post by: [SiNaN] on April 30, 2010, 02:39:19 AM
Not an SMF but, but you could say it's SP bug, a very minor one though. You can only reproduce it if you have User Info block displayed in topics. That block will call loadMemberContext() without custom profile fields. So when it comes to loading the member context in posts, it won't load it again since it's already loaded by User Info block. This will fix it:

Source/PortalBlocks.php

Code: (Find) [Select]
loadMemberContext($user_info['id']);
Code: (Replace) [Select]
loadMemberContext($user_info['id'], true);
Title: Re: Custom profile bug?
Post by: Nothingness on April 30, 2010, 02:55:48 AM
Yay! Fixed! Another SP bug. ;D
Title: Re: Custom profile bug?
Post by: Nothingness on April 30, 2010, 02:58:19 AM
BTW...shouldn't this add to the tracker?
Title: Re: Custom profile bug?
Post by: Eliana Tamerin on April 30, 2010, 08:59:14 PM
Reported: http://simpleportal.net/index.php?issue=373.0
SimplePortal 2.3.8 © 2008-2024, SimplePortal