Видимо я совсем тугой...
Весь вечер ставил вручную и подкатегории впринципе создаются, но загрузка, коментарии и еще что-то с ошибками.
Найти, что не так у меня просто сил нет.
Easymod, дает ошибки....
Люди добрые! Поделитесь файликами или ссылочкой уже с измененной галереей.
Добавлено спустя 2 часа 24 минуты 24 секунды:
Я все исправил!
Кроме коментариев.
вот, что он мне выдает
Код: Выделить всё
Could not query pic information
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.user_id, u.username, COUNT(c.comment_id) as comments_count F
SELECT p.*, cat.* u.user_id, u.username, COUNT(c.comment_id) as comments_count FROM fofrforum_album_cat AS cat, fofrforum_album AS p LEFT JOIN fofrforum_users AS u ON p.pic_user_id = u.user_id LEFT JOIN fofrforum_album_comment AS c ON p.pic_id = c.comment_pic_id WHERE pic_id = '1' AND cat.cat_id = p.pic_cat_id GROUP BY p.pic_id LIMIT 1
Line : 128
File : album_comment.php
А вот, что у меня в album_coment.php в районе 128 строки
Код: Выделить всё
//--- Album Category Hierarchy : begin
//--- version : 1.1.0
// ------------------------------------
// Get this pic info and current category info
// ------------------------------------
// NOTE: we don't do a left join here against the category table
// since ALL pictures belong to some category, if not then it's database error
$sql = "SELECT p.*, cat.* u.user_id, u.username, COUNT(c.comment_id) as comments_count
FROM ". ALBUM_CAT_TABLE ." AS cat, ". ALBUM_TABLE ." AS p
LEFT JOIN ". USERS_TABLE ." AS u ON p.pic_user_id = u.user_id
LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id
WHERE pic_id = '$pic_id'
AND cat.cat_id = p.pic_cat_id
GROUP BY p.pic_id
LIMIT 1";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql);
}
$thispic = $db->sql_fetchrow($result);
$cat_id = $thispic['pic_cat_id'];
$album_user_id = $thispic['cat_user_id'];
$total_comments = $thispic['comments_count'];
$comments_per_page = $board_config['posts_per_page'];
if( empty($thispic) )
{
message_die(GENERAL_ERROR, $lang['Pic_not_exist'] . ' -> ' . $pic_id);
}
// ------------------------------------
// Check the permissions
// ------------------------------------
$check_permissions = ALBUM_AUTH_VIEW|ALBUM_AUTH_COMMENT|ALBUM_AUTH_EDIT|ALBUM_AUTH_DELETE;
$auth_data = album_permissions($album_user_id, $cat_id, $check_permissions, $thispic);
//--- Album Category Hierarchy : end
Помогите пожалуйста, а то я в этом мало понимаю.
Заранее спасибо!