[Risolto]Post importanti

Started by Elisa, May 31, 2004, 06:47:47 AM

Previous topic - Next topic

Elisa

Esiste un modo per far si che compaiano in grassetto oltre che in alto rispetto a tutti gli altri post normali?

Ezechiele


Elisa

Il grande FaSan ha fatto una modifica su un file! Se lui volesse pubblicarla... credo che il diritto spetti a lui!!!!

FaSan

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

scibilo

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)

FaSan

Ciao, funziona benissimo anche con RC2 ;)

Riguardo la suddivisione quarda quì :

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


FaSan

scibilo

grazie funzionano perfettamente :D

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

grazie ancora

Advertisement: