Simple Machines Community Forum

SMF Support => Language Specific Support => Italiano (Italian) => Topic started by: hollywood9111 on December 21, 2012, 06:46:22 AM

Title: frase sopra il nome dell'allegato
Post by: hollywood9111 on December 21, 2012, 06:46:22 AM
come posso fare per mettere una frase sopra il nome dell'allegato?
quindi una scritta
esempio download file e sotto ci sarà poi l'allegato
Title: Re: frase sopra il nome dell'allegato
Post by: hollywood9111 on December 21, 2012, 07:48:19 AM
e possibile farlo?
Title: Re: frase sopra il nome dell'allegato
Post by: emanuele on December 21, 2012, 07:52:25 AM
Cambia il tema ed aggiungi la stringa...Display.template.php

ETA: al solito un po' di pazienza non fa male, hai postato meno di un'ora fa... ::)
Title: Re: frase sopra il nome dell'allegato
Post by: hollywood9111 on December 21, 2012, 07:55:13 AM
uso il default dove cosa devo scrivere?=
perchè dovrei cambiare tema?
Title: Re: frase sopra il nome dell'allegato
Post by: emanuele on December 21, 2012, 07:56:27 AM
???
Chi ha parlato di cambiare tema?
Cosa vuoi scrivere?
Title: Re: frase sopra il nome dell'allegato
Post by: hollywood9111 on December 21, 2012, 08:05:45 AM
tu hai scritto
Cambia il tema ed aggiungi la stringa...Display.template.php

cosa significa?
voglio scrivere download
Title: Re: frase sopra il nome dell'allegato
Post by: emanuele on December 21, 2012, 08:22:53 AM
Che devi aprire il file Display.template.php del tuo tema ed aggiungere "download" sopra al blocco di codice che visualizza gli allegati. ;)

Cerca "attachments" nel file e troverai il blocco che ti interessa.
Per il "dove" di preciso puoi provare a piazzarlo in un punto e se non ti garba lo sposti un po' per volta.
Comunque credo che appena dopo il "if" dovrebbe andare...più o meno...
Title: Re: frase sopra il nome dell'allegato
Post by: hollywood9111 on December 21, 2012, 08:25:04 AM
e come scrivo download
echo'
download';
Title: Re: frase sopra il nome dell'allegato
Post by: hollywood9111 on December 21, 2012, 08:28:28 AM
// Assuming there are attachments...
if (!empty($message['attachment']))
{
echo '
<div id="msg_', $message['id'], '_footer" class="attachments smalltext">
<div style="overflow: ', $context['browser']['is_firefox'] ? 'visible' : 'auto', ';">';

$last_approved_state = 1;
foreach ($message['attachment'] as $attachment)
{
// Show a special box for unapproved attachments...
if ($attachment['is_approved'] != $last_approved_state)
{
$last_approved_state = 0;
echo '
<fieldset>
<legend>', $txt['attach_awaiting_approve'];

if ($context['can_approve'])
echo '&nbsp;[<a href="', $scripturl, '?action=attachapprove;sa=all;mid=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['approve_all'], '</a>]';

echo '</legend>';
}

// If we had unapproved attachments clean up.
if ($last_approved_state == 0)
echo '
</fieldset>';

echo '
</div>
</div>';
}
            if(!empty($message['disabled_attachments']))
{
echo '
<hr width="100%" size="1" class="hrcolor" />
<div style="overflow: auto; width: 100%;">
<span class="smalltext" style="color:#FF0000">',sprintf($txt['num_disabled_attachments'],$message['num_disabled_attachments']),'</span>';
foreach($message['disabled_attachments'] as $attachment)
echo '<div style="color:#FF0000">',$attachment['filename'],'</div>';
echo '</div>';
}

in questi due blocchi l'ho trovato ora come lo capisco?
Title: Re: frase sopra il nome dell'allegato
Post by: emanuele on December 21, 2012, 08:41:14 AM
Non so, per esempio:
// Assuming there are attachments...
if (!empty($message['attachment']))
{
echo '
<div id="msg_', $message['id'], '_footer" class="attachments smalltext">
Download:
<div style="overflow: ', $context['browser']['is_firefox'] ? 'visible' : 'auto', ';">';
Title: Re: frase sopra il nome dell'allegato
Post by: hollywood9111 on December 21, 2012, 08:43:49 AM
funzioan grazie :) e dove lo avevo messo.
Title: Re: frase sopra il nome dell'allegato
Post by: emanuele on December 21, 2012, 08:47:02 AM
;D