Pagina 1 din 1

Salut - Modificare Subforum

Scris: 12-Dec-2010, 02:44:56
de yOz
salut. as dori sa stiu cum pot face: Imagine exact asa sa arate si intre paranteze nr de posturi/topicuri daca se poate. multumesc.

Re: Salut - Modificare Subforum

Scris: 12-Dec-2010, 06:28:56
de N3@mTzZzU
Pare interesant... am sa caut si eu pe phpbb.com ceva... daca gasesc revin cu un edit :)

Re: Salut - Modificare Subforum

Scris: 12-Dec-2010, 22:48:58
de bogdan
Unde ai vazut exemplul de mai sus?

Pentru subforumuri in coloane: http://www.phpbb.com/customise/db/mod/l ... in_columns

Pentru afisarea subiectelor/mesajelor: http://www.phpbb.com/community/viewtopi ... &t=1332925

Re: Salut - Modificare Subforum

Scris: 12-Dec-2010, 23:20:31
de Sufletel
Deci zice sa adaugam in SQL: ALTER TABLE phpbb_forums ADD forum_subforumslist_type TINYINT(4) DEFAULT '0';

Am adaugat dar imi apare:
#1060 - Duplicate column name 'forum_subforumslist_type'
Din ce cauza?

Re: Salut - Modificare Subforum

Scris: 13-Dec-2010, 16:35:54
de bogdan
Exista coloana respectiva in tabela. Vad 3 motive:
- fie ai rulat comanda de 2 ori
- fie ai instalat MOD-ul anterior
- fie exista un alt MOD care foloseste coloana cu pricina

Treci la urmatorul pas. Nu uita sa incerci MOD-urile pe un forum de test si sa faci backup la forum si la baza de date.

Re: Salut - Modificare Subforum

Scris: 15-Dec-2010, 22:39:14
de Sufletel
bogdan scrie:- fie ai rulat comanda de 2 ori
Asta a fost problema :D
Dar problema e rezolvata!

Re: Salut - Modificare Subforum

Scris: 22-Dec-2010, 19:55:19
de yOz
bogdan scrie:Unde ai vazut exemplul de mai sus?

Pentru subforumuri in coloane: http://www.phpbb.com/customise/db/mod/l ... in_columns

Pentru afisarea subiectelor/mesajelor: http://www.phpbb.com/community/viewtopi ... &t=1332925
este ideea de la vbulletin.

al 2-lea mod cu sub/mes nu gasesc link de down acolo..

Re: Salut - Modificare Subforum

Scris: 22-Dec-2010, 20:07:01
de bogdan
yOz scrie:
bogdan scrie:Pentru afisarea subiectelor/mesajelor: http://www.phpbb.com/community/viewtopi ... &t=1332925
al 2-lea mod cu sub/mes nu gasesc link de down acolo..
Vezi (nu stiu in ce masura mai merge)

Cod: Selectaţi tot

    ##############################################################
    ## MOD Title: Subforum's topic and post
    ## MOD Author: Nguyen Duy Nhan - nguyenduynhan@gmail.com -  www.nhanweb.com
    ## MOD Description: show subforum's total topic and post on main forum
    ## MOD Version: 0.0.1
    ##
    ## Installation Level: Easy
    ## Installation Time: 3 minutes
    ##
    ##  Files To Edit: includes/functions_display.php
    ## 
    ##
    ##############################################################
    ## For security purposes, please check: http://www.phpBB.com/mods/
    ## for the latest version of this MOD. Although MODs are checked
    ## before being allowed in the MODs Database there is no guarantee
    ## that there are no security problems within the MOD. No support
    ## will be given for MODs not found within the MODs Database which
    ## can be found at http://www.phpBB.com/mods/
    ##############################################################
    ##############################################################
    ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
    ##############################################################
    #
    #-----[ OPEN ]------------------------
    #
    includes/functions_display.php
    #
    #-----[ FIND ]------------------------
    #
             $subforums[$parent_id][$forum_id]['display'] = ($row['display_on_index']) ? true : false;
             $subforums[$parent_id][$forum_id]['name'] = $row['forum_name'];
    #
    #-----[ AFTER, ADD ]----------------
    #
             //Subforum topic and post by babyinternet - www.nhanweb.com
             $subforums[$parent_id][$forum_id]['topics'] = $row['forum_topics'];
             $subforums[$parent_id][$forum_id]['posts'] = $row['forum_posts'];
             //End Subforum topic and post by babyinternet - wwww.nhanweb.com
    #
    #-----[ FIND ]------------------------
    #
                      'link'      => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $subforum_id),
                      'name'      => $subforum_row['name'],
    #
    #-----[ AFTER, ADD ]----------------
    #
                      //Subforum topics and posts by babyinternet - www.nhanweb.com
                      'topics'      => $subforum_row['topics'],
                      'posts'         => $subforum_row['posts'],
                      //End Subforum topics and posts by babyinternet - wwww.nhanweb.com
    #
    #-----[ FIND ]------------------------
    #
             $s_subforums_list[] = '<a href="' . $subforum['link'] . '" class="subforum ' . (($subforum['unread']) ? 'unread' : 'read') . '" title="' . (($subforum['unread']) ? $user->lang['NEW_POSTS'] : $user->lang['NO_NEW_POSTS']) . '">' . $subforum['name'] . '</a>';
    #
    #-----[ REPLACE ]------------------------
    #
             $s_subforums_list[] = '<a href="' . $subforum['link'] . '" class="subforum ' . (($subforum['unread']) ? 'unread' : 'read') . '" title="' . (($subforum['unread']) ? $user->lang['NEW_POSTS'] : $user->lang['NO_NEW_POSTS']) . '">' . $subforum['name'] . '</a>'.' ('.$user->lang['TOPICS'] . ':' .$subforum['topics'].'/'.$user->lang['POSTS'] . ': '.$subforum["posts"].")";
    #
    #-----[ DIY INSTRUCTIONS ]------------------------------------------
    #
    Go to admin Panel and Purge the cache
    #
    #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
    #
    # EoM

Re: Salut - Modificare Subforum

Scris: 20-Noi-2013, 15:33:06
de sarambopx
http://nordcs.ro/forum/viewtopic.php?f=36&p=7#p7 pentru sub-forumuri în coloane