News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

no avatar

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

Previous topic - Next topic

sattninja

hi all is there a way i can get rid of the no pic selection on my select an avatar list i want it to show the no avatar gif when someone doesn't select an avatar right now it shows nothing
Running Rc4

Oya

use http://arantormods.com/index.php?action=media;sa=item;in=8 and set the no avatar gif as the default avatar so if a user doesn't have one they get that

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Oya

the mod i linked uses no template edits

Joker™

Quote from: Oya on September 30, 2010, 10:45:29 AM
the mod i linked uses no template edits
The mods i linked are official :).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Oya

the only reason that one i linked isn't official is because it seems the author is very fed up with people here but it works great on my forum

sattninja

#6
well the first one installed but isnt working it didnt change anything and the second one shows a ton of errors so i didnt install something is broken but i have no idea where to start looking it is just weird that it has 2 options when selecting an avatar there is one that says no pic and one that says noavatar if i pick noavatar then i get the default.gif is i pick no pic it is just blank how can i get rid of the no pic cause then i could just upload whatever picture i want as the default

i do not know if this is related but i also have a problem where when a member does not pick a country when they post there is a bunch of stuff missing then i select a country for them and all the stuff appears it is weird 
Running Rc4

Joker™

By saying 1st one which mod are you referring to?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

sattninja

Running Rc4

Oya

so you add the url to the noavatar image in the settings for the mod and remove it from the list that people can select and when people select no avatar they get the image you picked for them... (at least with Arantors mod)

sattninja

here is my default display template just in case
Running Rc4

Oya

arantors mod doesnt modify that file

sattninja

i know what i am saying is there are weird thing going on related to that file aranator mod does not do anything it installed fine with no errors and i inserted a link for the no avatar selection and it changed nothing

i just want to get rid of the no pic selection on the select avatar list
Running Rc4

sattninja

well damn it is working i am sorry arantor mod worked

i still have the issue with things missing if you dont select a country flag something has to be broken there in the template
Running Rc4

Hj Ahmad Rasyid Hj Ismail

Some mods do conflict with another especially flag and avatar. You to see the lines the mods modify and manually fix them.

sattninja

yeah i know i have done that but it is weird cause if you do not select a country flag then everything after that does not show until you select a country flag  then it all appears
Running Rc4

Hj Ahmad Rasyid Hj Ismail

The line of codes might be combined when it supposed to be seperated. Try posting them here so we can see what we can do or is there any way around it.

sattninja

// 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/>';
            


and again what happens is if the member does not choose a country flagthen nothing below shows as soon as they select a country flag all shows up like  member activity and last log in but if they do not select a flag then it doesnt show
Running Rc4

Hj Ahmad Rasyid Hj Ismail

There is no line relating avatar here, so I cannot determine how it is related to your flag mod. Do attach your Display.template.php here so we can have a better overall look into it.

sattninja

ok here you go but i am not saying it has anything to do with the avatar that was the original post which i kinda hi jacked lol what happens is if you do not pick a country flag then nothing will show after that until you pick the flag for example member activity comes after country flag and if a member hasnt picked a flag then the member activity bar will not show
Running Rc4

Advertisement: