no avatar

Started by sattninja, September 30, 2010, 10:34:45 AM

Previous topic - Next topic

Hj Ahmad Rasyid Hj Ismail

Sorry, I was not attentive enough. I took this from your code above. Your code has no closing for flag mod "{" must be closed with "}". Try replace it with this one of which I just added } at the end of the flag mod.

[code]// Show the country they hail from!
            if (isset($message['member']['country_flag']) && !empty($modSettings['country_flag_show']) && !empty($message['member']['country_flag']))
            {
                $flags = country_flags();
                echo '
                                <li class="gender">', $txt['country_flag'], ': <img src="', $settings['images_url'], '/flags/', $message['member']['country_flag'], '.png" alt="', $message['member']['country_flag'], '" title="', $flags[$message['member']['country_flag']], '" /></li>';
            }
            // Show their personal text?
            if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
                echo '
                                <li class="blurb">', $message['member']['blurb'], '</li>';
            // Show a activitybar.
            if(!empty($modSettings['activitybar_enable']) && !empty($modSettings['activitybar_show_in_posts']))
                echo '
                        <li><br />', !empty($modSettings['activitybar_label']) ? $modSettings['activitybar_label'] : $txt['activitybar_standardlabel'], '
                        <div class="activity_holder" style="width: ', !empty($modSettings['activitybar_max_width']) ? $modSettings['activitybar_max_width'] : 139, 'px;"><div class="activity_bar" style="width: ', $message['activitybar']['width'], 'px;"><div class="activity_percentage smalltext">', $message['activitybar']['percentage'], '%</div></div></div></li><p/>';
                       // Show the member's gender icon?
            if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
                echo '
                                <li class="gender">', $txt['gender'], ': ', $message['member']['gender']['image'], '</li><p/>';

            if ($message['member']['last_login'] != '')                echo '<li>', $txt['last_login'], ':', $message['member']['last_login'], '</li><p/>';       
            [/code]

sattninja

thanks man appreciate the help
Running Rc4

sattninja

sorry man i added the } like you posted but i get template error now

i have attached the file that i edited that gives he error if i use it please take a look

the edit is on line 486
Running Rc4

Hj Ahmad Rasyid Hj Ismail

I'm on my mobile now. I'll look into it when I'm on my laptop.

sattninja

Running Rc4

Hj Ahmad Rasyid Hj Ismail

I have checked the file and the relevant lines. Basically, the original flag mod do have the opening and closing { } at the respective lines. I don't know why at first yours doesn't have the closing. I was right when I pointed out it needs closing but I am not sure how that can be a template error. My suggestion is to restore your original i.e. without the closing { and uninstall the mod and arantors' avatar mod above.

Then install the flag mod again and see whether is working fine. If it is working fine that means arantors mod have somehow disturb the loading of the flag mod. If that is so, do consult arantor regarding this matter since you want to use his mod.

Advertisement: