SimplePortal

Customization => Custom Coding => Topic started by: Hoodie on April 04, 2010, 01:50:17 AM

Title: Stars & Badges Mod
Post by: Hoodie on April 04, 2010, 01:50:17 AM
Hey everyone,

Love SimplePortal and would like to add the Stars & Badges mod to the User Info block. I can't quite figure out how to do it. Here's the link to the mod:

http://custom.simplemachines.org/mods/index.php?mod=1110

Here's the part that should display it but I'm not seeing anything after adding the code:

Code: [Select]
if (!empty($context['badges']['ownline'])
{
foreach($context['badges']['ownline'] AS $key)
for ($i = 0; $i < count($context['member']['additional_groups']['id']); $i++)
if ($context['member']['additional_groups']['id'][$i] == $key)
echo '<br>', $context['member']['additional_groups']['stars'][$i], '';
}
elseif (!empty($context['member']['additional_groups']['id']))
for ($i = 0; $i < count($context['member']['additional_groups']['id']); $i++)
echo '<br>', $context['member']['additional_groups']['stars'][$i], '';

I get no errors either.
SimplePortal 2.3.8 © 2008-2024, SimplePortal