Descriere:Acest tutorial va ajuta sa separati Sticky Topics de Topics si de Announcements.
Intrati pe host in folderul unde aveti bagat forumul si deschideti language/en/viewforum.php si cautati urmatoare linie :
Code:
?>
si inaintea lui adaugati
Cod:
$lang = array_merge($lang, array(
'STICKY' => 'Sticky topics'
));
Dupa aceea intrati in Styles/Tema Ta/Templates/viewforum_body.html
Cautati :
Code:
<!-- BEGIN topicrow -->
<!-- IF topicrow.S_TOPIC_TYPE_SWITCH eq 1 -->
<tr>
<td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->"><b class="gensmall">{L_ANNOUNCEMENTS}</b></td>
</tr>
<!-- ELSEIF topicrow.S_TOPIC_TYPE_SWITCH eq 0 -->
<tr>
<td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->"><b class="gensmall">{L_TOPICS}</b></td>
</tr>
<!-- ENDIF -->
le inlocuiti cu
Code:
<!-- DEFINE $TOPIC_NORMAL = 0 -->
<!-- DEFINE $TOPIC_STICKY = 0 -->
<!-- BEGIN topicrow -->
<!-- IF topicrow.S_TOPIC_TYPE_SWITCH eq 1 -->
<tr>
<td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->"><b class="gensmall">{L_ANNOUNCEMENTS}</b></td>
</tr>
<!-- ELSEIF topicrow.S_POST_STICKY and $TOPIC_STICKY eq 0 -->
<!-- DEFINE $TOPIC_STICKY = 1 -->
<tr>
<td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->"><b class="gensmall">{L_STICKY}</b></td>
</tr>
<!-- ELSEIF topicrow.S_TOPIC_TYPE eq 0 and $TOPIC_NORMAL eq 0 -->
<!-- DEFINE $TOPIC_NORMAL = 1 -->
<tr>
<td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->"><b class="gensmall">{L_TOPICS}</b></td>
</tr>
<!-- ENDIF -->
Iar pentru romana nu trebuie decat sa traduceti aici
Code:
'STICKY' => 'Sticky topics'
si repuneti cu
Code:
'STICKY' => 'Subiecte Importante'