Manutencao wrote:DoubleDoom wrote:
Your board is a 2.0.1 version. Have you installed the 2.0.2 code on your board or have you installed the 2.0.0 version?
Ny my board is 2.0.2 version, but is prolem! No help!
Code: Select all
#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('catrow', array(
'CAT_ID' => $cat_id,
'CAT_DESC' => $category_rows[$i]['cat_title'],
'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))
);
Code: Select all
$template->assign_block_vars("catrow", array(
'CAT_ID' => $cat_id,
'CAT_DESC' => $cat_title,
'CAT_REDUCED_IMG' => $cat_reduced_img,
'U_CAT_REDUCED' => $cat_reduced_url,
'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))
);
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_admin.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT MAX(p.post_id) AS last_post, COUNT(p.post_id) AS total
FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t
WHERE p.forum_id = $id
AND t.topic_id = p.topic_id
AND t.topic_status <> " . TOPIC_MOVED;
Code: Select all
$sql = "SELECT MAX(post_id) AS last_post, COUNT(post_id) AS total
FROM " . POSTS_TABLE . "
WHERE forum_id = $id";
Code: Select all
$sql = "SELECT COUNT(topic_id) AS total
FROM " . TOPICS_TABLE . "
WHERE forum_id = $id
AND topic_status <> " . TOPIC_MOVED;
Code: Select all
$sql = "SELECT COUNT(topic_id) AS total
FROM " . TOPICS_TABLE . "
WHERE forum_id = $id";
Code: Select all
\templates\subSilver\index_body.tpl
## \templates\subSilver\jumpbox.tpl
## \templates\subSilver\overall_header.tpl
## \templates\subSilver\posting_body.tpl
## \templates\subSilver\viewforum_body.tpl
## \templates\subSilver\viewtopic_body.tpl
## \templates\subSilver\admin\category_edit_body.tpl
## \templates\subSilver\admin\forum_admin_body.tpl
## \templates\subSilver\admin\forum_delete_body.tpl
## \templates\subSilver\admin\forum_edit_body.tpl
## \templates\subSilver\admin\page_header.tpl
tuck wrote: I was thinking if there can be a conflict between hierarchies and Reduced categories (by moonbase http://www.phpbb.kicks-ass.net/forum/index.php)
Code: Select all
$template->assign_block_vars('catrow', array(
'CAT_ID' => $cat_id,
'CAT_DESC' => $category_rows[$i]['cat_title'],
'CAT_REDUCED_IMG' => $cat_reduced_img,
'U_CAT_REDUCED' => $cat_reduced_url,
'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))
);
Code: Select all
$sql = "SELECT MAX(p.post_id) AS last_post, COUNT(p.post_id) AS total
FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t
WHERE p.forum_id = $id
AND t.topic_id = p.topic_id
AND t.topic_status <> " . TOPIC_MOVED;
Code: Select all
$sql = "SELECT MAX(post_id) AS last_post, COUNT(post_id) AS total
FROM " . POSTS_TABLE . "
WHERE forum_id = $id";
Code: Select all
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /usr/local/psa/home/vhosts/mysite.net/httpdocs/phpBB2/includes/functions_admin.php on line 131
Code: Select all
Could not query categories list
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near 'FROM phpbb_categories c WHERE c.cat_hier_level = 0 AND c.parent_forum_i' at line 4
SELECT c.cat_id, c.cat_title, c.cat_order FROM phpbb_categories c FROM phpbb_categories c WHERE c.cat_hier_level = 0 AND c.parent_forum_id = 0 ORDER BY c.cat_order
Line : 148
File : /usr/local/psa/home/vhosts/mysite.net/httpdocs/phpBB2/index.php
Code: Select all
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT c.cat_id, c.cat_title, c.cat_order
FROM " . CATEGORIES_TABLE . " c
ORDER BY c.cat_order";
#
#-----[ REPLACE WITH ]------------------------------------------
#
// DJ-Begin, 21.3.02
$sql = "SELECT c.cat_id, c.cat_title, c.cat_order
FROM " . CATEGORIES_TABLE . " c
WHERE c.cat_hier_level = " . $hierarchie_level . "
AND c.parent_forum_id = " . $parent_forum . "
ORDER BY c.cat_order";
// DJ-End
Code: Select all
#
#-----[ OR ]------------------------------------------
#
# if you want to use the hierarchy mod with the favorites mod
#
// mp+dj-begin 26.03.02
if( isset($HTTP_GET_VARS['fav']) )
{
$userdata['user_usefavorites'] = ( $HTTP_GET_VARS['fav'] ) ? TRUE : 0;
}
$sql = "SELECT c.cat_id, c.cat_title, c.cat_order ";
if( $userdata['user_id'] == ANONYMOUS || !$userdata['user_usefavorites'] || $hierarchie_level != 0 )
{
$sql .= "FROM " . CATEGORIES_TABLE . " c
WHERE c.cat_hier_level = " . $hierarchie_level . "
AND c.parent_forum_id = " . $parent_forum;
}
else
{
$sql .= "FROM " . USER_FAVORITES_TABLE . " uf, " . CATEGORIES_TABLE . " c
WHERE uf.cat_id = c.cat_id
AND " . $userdata['user_id'] . " = uf.user_id ";
}
$sql .= " ORDER BY c.cat_order";
// mp+dj-end
Code: Select all
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /usr/local/psa/home/vhosts/mysite.net/httpdocs/phpBB2/includes/functions_admin.php on line 131
Fatal error: Call to undefined function: sync() in /usr/local/psa/home/vhosts/mysite.net/httpdocs/phpBB2/admin/admin_attachments.php on line 571
Code: Select all
sync('all topics');