Nascondere avatar nella home page

Started by Attilio, November 11, 2014, 04:28:43 PM

Previous topic - Next topic

Attilio

Ciao a tutti, , mi chiamo Attilio, ho 49 anni (non proprio un giovane virgulto :D) e da un paio di settimane ho aperto un piccolo Forum.

Siccome non sono esperto e non ho particolari esigenze non apportato nessuna modifica se non l'installazione della lingua italiana.

Vorrei sapere se è possibile nascondere l'avatar nella home page (per spiegarmi meglio, non vorrei comparisse a sinistra del "Salve Attilio" in home page, ma ovviamente vorrei comparisse nei post delle discussioni).

Questo senza dovere ridurre/espandere la testata perche' vorrei rimanessero visibili i "Mostra i topic non letti" e "Mostra le nuove risposte ai topic ai quali hai partecipato".

Un grazie anticipato a chi avra' tempo e voglia di rispondere.



Ninja ZX-10RR

#1
Ciao! :D Flavio, 21 anni ;)

Dunque le alternative sono o modificare il file /themes/{tuo tema, probabilmente default}/index.template.php oppure installare un nuovo tema ;) però tieni presente che con i nuovi temi potresti avere dei problemi ad installare le mods (o pacchetti di smf), ed ecco spiegato il motivo per cui io stesso ho ancora il tema di default (pur avendolo radicalmente modificato).
Per la modifica del file apri il file e
Code (trova) Select

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


Code (sostituisci con) Select

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


Oppure cancella semplicemente la parte compresa tra /* e */ come vuoi :) ti direi di metterla solo tra quei due simboli nel caso volessi ripristinarla in seguito.

Il forum qui non è attivissimo, se vuoi la community italiana si sta un po' radunando qui (e ci sono anch'io sotto un altro nome! Nel caso ti registrassi te lo farò sapere): *link removed* ;)

P.s. Se il problema è risolto puoi marcare il topic come risolto cliccando il relativo pulsante in basso a sinistra :)




link removed by Relyana. Please do not redirect our users outside simplemachines.org. They are here to get help in here not elsewhere.
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Attilio

Grazie mille Flavio, finche' in Italia ci saranno giovani in gamba come te, noi "vecchietti" potremo dormire sonni tranquilli!  ;)

A breve mi iscrivero' all'Italian SMF!

Ancora grazie!


Ninja ZX-10RR

Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Advertisement: