Sortare ?
- seelview
- Fost coleg
- Mesaje: 2146
- Membru din: 13-Apr-2005, 21:24:50
- Versiune: 3.x
- Ext: Da
- Server: UNIX/Linux
- Nivel phpBB: Foarte experimentat
- Localitate: Cu curu' pe scaun
- Contact:
Deschide fisierul viewtopic.php, cauta codul si inlocuieste cu urmatorul
Cod: Selectaţi tot
if ( !empty($HTTP_POST_VARS['postorder']) || !empty($HTTP_GET_VARS['postorder']) )
{
$post_order = (!empty($HTTP_POST_VARS['postorder'])) ? htmlspecialchars($HTTP_POST_VARS['postorder']) : htmlspecialchars($HTTP_GET_VARS['postorder']);
$post_time_order = ($post_order == "asc") ? "ASC" : "DESC";
}
else
{
$post_order = 'asc';
$post_time_order = 'ASC';
}
Cod: Selectaţi tot
if ( !empty($HTTP_POST_VARS['postorder']) || !empty($HTTP_GET_VARS['postorder']) )
{
$post_order = (!empty($HTTP_POST_VARS['postorder'])) ? htmlspecialchars($HTTP_POST_VARS['postorder']) : htmlspecialchars($HTTP_GET_VARS['postorder']);
$post_time_order = ($post_order == "desc") ? "DESC" : "ASC";
}
else
{
$post_order = 'desc';
$post_time_order = 'DESC';
}
salut, mersi de ajutor.seelview scrie:Deschide fisierul viewtopic.php, cauta codulsi inlocuieste cu urmatorulCod: Selectaţi tot
if ( !empty($HTTP_POST_VARS['postorder']) || !empty($HTTP_GET_VARS['postorder']) ) { $post_order = (!empty($HTTP_POST_VARS['postorder'])) ? htmlspecialchars($HTTP_POST_VARS['postorder']) : htmlspecialchars($HTTP_GET_VARS['postorder']); $post_time_order = ($post_order == "asc") ? "ASC" : "DESC"; } else { $post_order = 'asc'; $post_time_order = 'ASC'; }
Cod: Selectaţi tot
if ( !empty($HTTP_POST_VARS['postorder']) || !empty($HTTP_GET_VARS['postorder']) ) { $post_order = (!empty($HTTP_POST_VARS['postorder'])) ? htmlspecialchars($HTTP_POST_VARS['postorder']) : htmlspecialchars($HTTP_GET_VARS['postorder']); $post_time_order = ($post_order == "desc") ? "DESC" : "ASC"; } else { $post_order = 'desc'; $post_time_order = 'DESC'; }
Dar problema e ca are efect si la asupra mesajelor din interiorul unui topic
eu as fi vrut doar topicurile sa fie sortate asa.
Acuma dupa aplicare din cauza ca are efect si asupra mesajelor daca pe unu o deschis un topic cu o intrebare anume si doi au raspuns intrebarea aceluia e ultima si apar prima data raspunsurile.
observatie-ca sa fie mai explicit
uite vreau sa fac exact cu e aici pe sectiunea cum pot sa?
adica topicurile sunt sortate in ordinea aparitiei lor adica cel mai nou
topic este cel mai de sus iar cand intri pe el mesajele din topic sunt sortate in ordinea crescatoare a aparitiei lor adica primul post pe un topic e cel mai de sus si raspunsurile in jos in ordiena postarii lor.
thx
adica topicurile sunt sortate in ordinea aparitiei lor adica cel mai nou
topic este cel mai de sus iar cand intri pe el mesajele din topic sunt sortate in ordinea crescatoare a aparitiei lor adica primul post pe un topic e cel mai de sus si raspunsurile in jos in ordiena postarii lor.
thx
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 2 vizitatori