SimplePortal
Development => Bugs => Fixed or Bogus Bugs => Topic started by: bisbebri on May 26, 2009, 07:10:06 PM
-
I have the color mod installed on my forums, but it seems with this version of simple portal (upgrading to 2.2.1 sunday) in the recent topics block the colors don't show. Is this fixed in 2.2.1 or is there some work around? Thanks!
-
Which color mod? What is it meant to do?
Did it work with the last version of SimplePortal?
-
It worked on the last version, when I switched to 2.2 it stopped working. Its called members color link.
I attached a screenshot... The colors of their name should show up on the recent topics but it doesn't.
-
Reported as bug:
http://simpleportal.net/index.php?issue=205.0
Quick Fix for the Recent Topics block only (I haven't tested it, but it should work):
Replace this code (SPortal2.php):
function sp_recentTopics($parameters, $id, $return_parameters = false)
{
global $context, $scripturl, $txt, $settings;
With this code:
function sp_recentTopics($parameters, $id, $return_parameters = false)
{
global $context, $scripturl, $txt, $settings, $color_profile;
Replace this code:
if (empty($topics))
{
echo '
', $txt['error_sp_no_topics_found'];
return;
}
With this code:
if (empty($topics))
{
echo '
', $txt['error_sp_no_topics_found'];
return;
}
$colorids = array();
foreach ($topics as $topic)
$colorids[] = $topic['poster']['id'];
if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($topics as $k => $topic)
{
if (!empty($color_profile[$topic['poster']['id']]['link']))
$topics[$k]['poster']['link'] = $color_profile[$topic['poster']['id']]['link'];
}
}
-
Thanks! Should this work when I upgrade to 2.2.1?
-
No, it hasn't been fixed with 2.2.1, you will have to apply the edits in my post above to add the colors.
It looks like this issue was introduced when those blocks were rewritten for 2.2. It should be fixed with the next bugfix release. :)
-
Ok, thanks for your quick responses! :D :D
-
Install SSI extension for Member Color Link mod.
-
Install SSI extension for Member Color Link mod.
SSI Extension?
-
Its attached to the post below: http://www.simplemachines.org/community/index.php?topic=32101.0
-
Yeah, this was intentional. We may add this back in future versions.