Simple Machines Community Forum

SMF Support => Language Specific Support => Italiano (Italian) => Topic started by: hollywood9111 on April 13, 2014, 07:33:42 PM

Title: problema post doppio
Post by: hollywood9111 on April 13, 2014, 07:33:42 PM
salve vi mostro screenshot:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi59.tinypic.com%2F157nk46.png&hash=7dc3e1072e0589a11e6a4d3794e04f6cb7489fe1)
praticamente il numero post viene mostrato due volte e possibile rimuovere e se si come il valore quello sotto?
uso il tema:
http://custom.simplemachines.org/themes/index.php?lemma=2667

ho provato cercando nei suoi file $txt['posts'] ma non funziona...magari sbaglio io...
voi sapete come fare?


ho notato ora anche che non mostra il gruppo che ho in base ai topic
esempio ho quelli di default (nuovo arrivato ecc)
non lo mostra come vedete come lo aggiungo?

grazie mille
Title: Re: problema post doppio
Post by: emanuele on April 15, 2014, 04:37:58 PM
Display.template.php:

// Show how many posts they have made.
if (!isset($context['disabled_fields']['posts']))
echo '
<span>', $txt['member_postcount'], ' ', $message['member']['posts'], '</span><br />';


// Show how many posts they have made.
if (!isset($context['disabled_fields']['posts']))
echo '
<li class="postcount"><hr class="divisorp" /><span class="number">', $message['member']['posts'], '</span><br />', $txt['member_postcount'], '</li>';
Title: Re: problema post doppio
Post by: hollywood9111 on April 15, 2014, 05:44:11 PM
devo sostituirlo?
Title: Re: problema post doppio
Post by: emanuele on April 15, 2014, 06:18:40 PM
Sono i due pezzi di codice dove il numero dei post viene visualizzato.
Dovrai toglierne uno dei due.
Title: Re: problema post doppio
Post by: hollywood9111 on April 16, 2014, 12:49:39 AM
ok i post li ho sistemati :)
e per quanto riguard a il grado nuovo arrivato ecc in base al numero di topic...siccome allo staff non l'ho mostra come faccio a farlo visualizzare anche a chi ha il gruippo admin mod ecc?
Title: Re: problema post doppio
Post by: emanuele on April 30, 2014, 05:51:03 PM
Questo se non ricordo male è un'impostazione, nelle opzioni del tema c'è "nascondi gruppi basati sui post per blabla" non ricordo di preciso tutta la dicitura.
Title: Re: problema post doppio
Post by: hollywood9111 on May 01, 2014, 08:28:23 AM
nelle impostazioni del mio tema non c'è questa opzione
Title: Re: problema post doppio
Post by: emanuele on May 01, 2014, 09:07:05 AM
Io nel MundoNet v2 che ho installato in locale la vedo, è l'ultima del penultimo gruppo di opzioni.
Title: Re: problema post doppio
Post by: hollywood9111 on May 01, 2014, 09:18:28 AM
ok ma quella opzione a me NON è spuntata
Title: Re: problema post doppio
Post by: emanuele on May 01, 2014, 02:43:10 PM
Tirando ad indovinare, in Display.template.php:
Code (trova) Select
// Show the member's primary group (like 'Administrator') if they have one.
if (!empty($message['member']['group']))
echo '
<li class="membergroup">', $message['member']['group'], '</li>';


Code (aggiungi dopo) Select
if ((empty($message['member']['group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
<li class="membergroup">', $message['member']['post_group'], '</li>';


Non testato.
Title: Re: problema post doppio
Post by: hollywood9111 on May 01, 2014, 05:16:12 PM
nel display template del mio tema che non e il default c'è questo
// Show the member's primary group (like 'Administrator') if they have one.
if (!empty($message['member']['group']))
echo '
<span class="membergroup">', $message['member']['group'], '</span>';
if ((empty($message['member']['group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
<span class="membergroup">', $message['member']['post_group'], '</span>';
echo '
<br />';