Simple Machines Community Forum

SMF Support => Language Specific Support => Italiano (Italian) => Topic started by: Elisa on May 31, 2004, 06:47:47 AM

Title: [Risolto]Post importanti
Post by: Elisa on May 31, 2004, 06:47:47 AM
Esiste un modo per far si che compaiano in grassetto oltre che in alto rispetto a tutti gli altri post normali?
Title: Re: [Risolto]Post importanti
Post by: Ezechiele on June 07, 2004, 07:38:45 AM
Come hai risolto ?  ;)
Title: Re: [Risolto]Post importanti
Post by: Elisa on June 07, 2004, 03:27:16 PM
Il grande FaSan ha fatto una modifica su un file! Se lui volesse pubblicarla... credo che il diritto spetti a lui!!!!
Title: Re: [Risolto]Post importanti
Post by: FaSan on August 31, 2004, 05:04:45 PM
in Sources/MessageIndex.php, sostituire questo codice :



$context['topics'][$row['ID_TOPIC']] = array(
'id' => $row['ID_TOPIC'],
'first_post' => array(
'member' => array(
'username' => $row['firstMemberName'],
'name' => $row['firstDisplayName'],
'id' => $row['firstID_MEMBER'],
'href' => !empty($row['firstID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] : '',
'link' => !empty($row['firstID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] . '" title="' . $txt[92] . ' ' . $row['firstDisplayName'] . '">' . $row['firstDisplayName'] . '</a>' : $row['firstDisplayName']
),
'time' => timeformat($row['firstPosterTime']),
'timestamp' => $row['firstPosterTime'],
'subject' => $row['firstSubject'],
'preview' => $row['firstBody'],
'icon' => $row['firstIcon'],
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0',
'link' => $linkf
),



con questo :



$linkf = '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0">' . $row['firstSubject'] . '</a>';

if ($modSettings['enableStickyTopics'] == 1 && $row['isSticky'] == 1)
$linkf = '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0"><b>' . $row['firstSubject'] . '</a></b>';

$context['topics'][$row['ID_TOPIC']] = array(
'id' => $row['ID_TOPIC'],
'first_post' => array(
'member' => array(
'username' => $row['firstMemberName'],
'name' => $row['firstDisplayName'],
'id' => $row['firstID_MEMBER'],
'href' => !empty($row['firstID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] : '',
'link' => !empty($row['firstID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] . '" title="' . $txt[92] . ' ' . $row['firstDisplayName'] . '">' . $row['firstDisplayName'] . '</a>' : $row['firstDisplayName']
),
'time' => timeformat($row['firstPosterTime']),
'timestamp' => $row['firstPosterTime'],
'subject' => $row['firstSubject'],
'preview' => $row['firstBody'],
'icon' => $row['firstIcon'],
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0',
'link' => $linkf
),




Perdonate il ritardo ma mi erano sfuggiti gli ultimi post.



FaSan
Title: Re: [Risolto]Post importanti
Post by: scibilo on October 16, 2004, 09:49:44 AM
riprendo questo vecchio post perche' mi interessa... :P
ho provato la modifica sulla RC2 e funziona, ma ho notato che parti del codice come nei Links sono diverse; questa modifica sulla RC2 puo' creare problemi? Ripeto funziona, ma non ho ancora idea se modificando ho rinunciato a nuove implementazione che non erano previste al rilascio della modifica da parte di Fasan :o

Un'altra cosa...sarebbe possibile per questi tipo di post staccarli dal resto per metterli in maggiore evidenza? A dire il vero ho gia' visto questa implemetazione in http://www.forumzoneru.18.com1.ru/ ma non ho capito come fare

grazie

ciao 8)
Title: Re: [Risolto]Post importanti
Post by: FaSan on October 16, 2004, 10:24:07 AM
Ciao, funziona benissimo anche con RC2 ;)

Riguardo la suddivisione quarda quì :

http://www.simplemachines.org/community/index.php?topic=17230.0


FaSan
Title: Re: [Risolto]Post importanti
Post by: scibilo on October 16, 2004, 11:24:18 AM
grazie funzionano perfettamente :D

per la seconda richiesta, ho implementato la prima soluzione che veniva proposta :P

grazie ancora