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

forumul phpBB in limba romana. Opinii, implementari, ajutor, instructiuni si download.
https://phpbb3.ro/community/
Deci zice sa adaugam in SQL: ALTER TABLE phpbb_forums ADD forum_subforumslist_type TINYINT(4) DEFAULT '0';Pentru subforumuri in coloane: http://www.phpbb.com/customise/db/mod/l ... in_columns
Din ce cauza?#1060 - Duplicate column name 'forum_subforumslist_type'
Asta a fost problemabogdan scrie:- fie ai rulat comanda de 2 ori
este ideea de la vbulletin.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
Vezi (nu stiu in ce masura mai merge)yOz scrie:al 2-lea mod cu sub/mes nu gasesc link de down acolo..bogdan scrie:Pentru afisarea subiectelor/mesajelor: http://www.phpbb.com/community/viewtopi ... &t=1332925
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