Cum separ anunturile globale de sticky/topicurile normale?

Pentru întrebări legate de facilităţile forumului phpBB 3.0.x, acest loc este cel mai potrivit.
Reguli forum
Aveti o problema si vreti sa primiti ajutor? Click aici ! Nu uitati si de regulamentul forumului !
Închis
byRo!?
Nou venit
Mesaje: 3
Membru din: 12-Feb-2012, 20:36:50
Versiune: 3.0.10
Ext: Da
Server: Windows
Nivel phpBB: Mediu
Nivel php: Experimentat

Cum separ anunturile globale de sticky/topicurile normale?

Mesaj de byRo!? »

Cum fac sa separ anunturile globale de sticky , si de topicurile normale
Avatar utilizator
x6IT32
Utilizator înregistrat
Mesaje: 373
Membru din: 28-Apr-2009, 20:47:28
Versiune: 3.0.11
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Experimentat

Re: Cum fac?

Mesaj de x6IT32 »

Deschide language/en/viewforum.php si cauti urmatoarea linie: Si inaintea lui adaugi asta:

Cod: Selectaţi tot

$lang = array_merge($lang, array(
        'STICKY'                => 'Sticky topics'
    ));
Apoi deschide styles/YourStyle/templates/viewforum_body.html si cauti:

Cod: Selectaţi tot

[<!-- 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 -->
Si le inlocuiesti cu astea:

Cod: Selectaţi tot

<!-- 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 -->
byRo!?
Nou venit
Mesaje: 3
Membru din: 12-Feb-2012, 20:36:50
Versiune: 3.0.10
Ext: Da
Server: Windows
Nivel phpBB: Mediu
Nivel php: Experimentat

Re: Cum separ anunturile globale de sticky/topicurile normal

Mesaj de byRo!? »

Cum pot rezolva treaba cu { STICKY }

http://postimage.org/image/4g4in2f9z/
Avatar utilizator
x6IT32
Utilizator înregistrat
Mesaje: 373
Membru din: 28-Apr-2009, 20:47:28
Versiune: 3.0.11
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Experimentat

Re: Cum separ anunturile globale de sticky/topicurile normal

Mesaj de x6IT32 »

byRo!? scrie:Cum pot rezolva treaba cu { STICKY }

http://postimage.org/image/4g4in2f9z/
Nu imi dau seama de ce iti apare asa..
Avatar utilizator
bogdan
AdministratorAdministrator
Mesaje: 10888
Membru din: 18-Oct-2002, 13:14:27
Versiune: 3.0.11
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Bucuresti
Contact:

Re: Cum separ anunturile globale de sticky/topicurile normal

Mesaj de bogdan »

Probabil nu e tradus. Verifica fisierele pentru limba romana (eventual suprascrie-le cu cele originale).
Avatar utilizator
x6IT32
Utilizator înregistrat
Mesaje: 373
Membru din: 28-Apr-2009, 20:47:28
Versiune: 3.0.11
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Experimentat

Re: Cum separ anunturile globale de sticky/topicurile normal

Mesaj de x6IT32 »

Verifica la traducere.
EN:

Cod: Selectaţi tot

'STICKY'                => 'Sticky topics'
RO:

Cod: Selectaţi tot

'STICKY'                => 'Subiecte importante'
Închis

Înapoi la “3.0.x Cum pot să...?”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator