Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: lukas24 - elokuu 17, 2011, 04:08:56 IP

Otsikko: Remove Header Avatar
Kirjoitti: lukas24 - elokuu 17, 2011, 04:08:56 IP
I have played about with the Board.indextemplate but not having much sucess.

Can anyone let me know the code to edit?

http://bsmbsmtest.com/forum/index.php

I have enabled the forum for immediate registration so if someone wouldnt mind could they sign up and upload a default avatar and you will see what I mean when you go to the

http://bsmbsmtest.com/forum/index.php how the avatar messes up the page

TIA as always
Otsikko: Re: Remove Header Avatar
Kirjoitti: Hj Ahmad Rasyid Hj Ismail - elokuu 19, 2011, 02:28:48 AP
Please provide an image. I dont want to register to help...
Otsikko: Re: Remove Header Avatar
Kirjoitti: Ricky. - elokuu 19, 2011, 05:24:40 AP
Header avatar is in index.template.php
Remove following lines or comment them out!


if (!empty($context['user']['avatar']))
echo '
<p class="avatar">', $context['user']['avatar']['image'], '</p>';


Otsikko: Re: Remove Header Avatar
Kirjoitti: lukas24 - elokuu 20, 2011, 07:19:31 IP
unable to find that in the index template.

I know it is something to do with here but not sure:


<div id="wrapper">
    <div id="header">
        <div id="head-l">
            <div id="head-r">
                <div id="userarea" class="smalltext">';
                if (!empty($context['user']['avatar']))
               echo '
                    <div id="my-avatar" class="clearfix">
                  '.$context['user']['avatar']['image'].'
               </div>';
Otsikko: Re: Remove Header Avatar
Kirjoitti: Hj Ahmad Rasyid Hj Ismail - elokuu 20, 2011, 09:22:24 IP
Lainaus käyttäjältä: lukas24 - elokuu 20, 2011, 07:19:31 IP
                if (!empty($context['user']['avatar']))
               echo '
                    <div id="my-avatar" class="clearfix">
                  '.$context['user']['avatar']['image'].'
               </div>';
If you really need it, just remove the above code only.

However, your problem is due to the avatar that messes your site, thus, it is not wise to remove it but clean it css so it won't mess around again.