SET cat_name = '$cat_name', cat_description = '$cat_description', cat_parent_id = $cat_parent_id, cat_order = $cat_order, cat_hits = $cat_hits, auth_viewcat = $auth_viewcat, auth_viewimage = $auth_viewimage, auth_download = $auth_download, auth_upload = $auth_upload, auth_directupload = $auth_directupload, auth_vote = $auth_vote, auth_sendpostcard = $auth_sendpostcard, auth_readcomment = $auth_readcomment, auth_postcomment = $auth_postcomment
Replace it with: SET cat_name = '$cat_name', cat_description = '$cat_description', cat_parent_id = $cat_parent_id, cat_order = $cat_order, cat_hits = $cat_hits, auth_viewcat = $auth_viewcat, auth_viewimage = $auth_viewimage, auth_download = $auth_download, auth_upload = $auth_upload, auth_directupload = $auth_directupload, auth_vote = $auth_vote, auth_sendpostcard = $auth_sendpostcard, auth_readcomment = $auth_readcomment, auth_postcomment = $auth_postcomment, cat_password = '$cat_password', cat_hide = $cat_hide
1 (#post_tweak1). | If you don't want passwords be saved in the database and only in the session, then in the code from Step 8. (#post_step8) replace: Code: [Select] $user_info['cat_password_db'] = true; //set to false to use only sessions to store passwords With:Code: [Select] $user_info['cat_password_db'] = false; //set to false to use only sessions to store passwords |
2 (#post_tweak2). | If you don't want visited hidden categories be saved in the database and only in the session, then in the code from Step 8. (#post_step8) replace: Code: [Select] $user_info['cat_hide_db'] = true; //set to false to use only sessions to store visited hidden categories With:Code: [Select] $user_info['cat_hide_db'] = false; //set to false to use only sessions to store visited hidden categories |
3 (#post_tweak3). | If you want when visiting a hidden subcategory (only when "hidden" setting inherited from parent) automatically unhide parent category, then in the code from Step 6. (#post_step6) replace: Code: [Select] // cat_unhide($cat_cache[$cat_id]['cat_parent_id'], $save); With:Code: [Select] cat_unhide($cat_cache[$cat_id]['cat_parent_id'], $save); |
4 (#post_tweak4). | If you want hide subcategories and it's content in password protected categories and make it inaccessible for the visitors until they unlocked the parent category, find in includes/auth.php: Code: [Select] if (!$cat_cache[$val2]['cat_password'] && $cat_cache[$key]['cat_password']) //all subcategories also should obbey cat password from parent Insert ABOVE:Code: [Select] if (!cat_pass_check($key)) |
5 (#post_tweak5). | If you don't want subcategories inherit passwords from parent categories in includes/auth.php find: Code: [Select] $cat_cache[$val2]['cat_password'] = $cat_cache[$key]['cat_password']; Replace it with:Code: [Select] // $cat_cache[$val2]['cat_password'] = $cat_cache[$key]['cat_password']; |
//define("PRINT_STATS", 1);
//define("PRINT_QUERIES", 1);
//define('PRINT_CACHE_MESSAGES', 1);
... and remove all " // " ...
I don't have a php.cgi file?This is interesting...try redownload the package and replace includes/catpass.php with the new version.
Any advice welcome.
It's the same fault :cry:Can you PM me with a link to phpinfo() on your site?
Also, When I type the password straight into the database in the users table under the name of the user I'm logged in as, I still come to the password page? I would think I should go straight to the category if I have the password in the database already?it depends on how you typed it ;) its not just simple password, it's in this format:
<?php
phpinfo();
?>
if (!$cat_cache[$val2]['cat_hide'] || ($cat_cache[$val2]['cat_hide'] && isset($user_info['cat_hide'][$val2])))
Replace it with: if ($cat_cache[$val2]['auth_viewcat'] < $cat_cache[$cat_id]['auth_viewcat']
&& (!$cat_cache[$val2]['cat_hide']
|| ($cat_cache[$val2]['cat_hide'] && isset($user_info['cat_hide'][$val2]))))
(or re-do Step 6 (http://www.4homepages.de/forum/index.php?topic=23202.0#post_step6) - only one step)If you want hide subcategories, edit each subcategory and set it to be hidden.
I don't understand what you are trying to do...you don't want show subcategories, but want to see them?
if (!$cat_cache[$val2]['cat_password'] && $cat_cache[$key]['cat_password']) //all subcategories also should obbey cat password from parent
insert above: if (!cat_pass_check($key))
{
$cat_cache[$val2]['auth_viewcat'] = ADMIN;
continue;
}
DB Error: Bad SQL Query: UPDATE 4images_categories SET cat_name = 'Firmware', cat_description = 'Hier findet Ihr sämtliche Firmware Files für euer SE handy', cat_parent_id = 0, cat_order = 5, cat_hits = 31, auth_viewcat = 0, auth_viewimage = 0, auth_download = 2, auth_upload = 3, auth_directupload = 9, auth_vote = 0, auth_sendpostcard = 3, auth_readcomment = 0, auth_postcomment = 2, cat_password = '', cat_hide = 1, cat_image = WHERE cat_id = 1
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 'WHERE cat_id = 1' at line 3
Warning: Cannot modify header information - headers already sent by (output started at O:\htdocs\includes\db_mysql.php:190) in O:\htdocs\includes\functions.php on line 114
When you click on category edit on the ACP, you get a list of the categories. After the name of cat you can put something like:Done.
My fotos (ID: 2) [Open] [delete] [Add subcategory] (Hidden & password protected)
My videos (ID: 3) [Open] [delete] [Add subcategory] (Hidden)
My friends (ID: 4) [Open] [delete] [Add subcategory] (password protected)
Bei mir läuft das auch reibungslos, und ich hab SEHR viele MODs :wink:
Oh man wie ich mich darüber ärgere!
Naja egal jetzt ist es raus =)
Vielen Dank !
(Grübel gerade wie der Farbcode darein gekommen ist.....)
if (!function_exists("get_self"))
{
function get_self()
{
$list = get_included_files();
return $list[0];
}
}
if (!function_exists("get_self_full"))
{
function get_self_full()
{
global $HTTP_GET_VARS;
$q = $HTTP_GET_VARS;
$query = array();
foreach($q as $key => $val)
{
$query[] = $key . "=" . $val;
}
return ROOT_PATH.basename(get_self()).(!empty($query) ? "?".implode("&", $query) : "");
}
}
if (!function_exists("get_self"))
{
function get_self()
{
global $self_url;
return $self_url;
}
}
if (!function_exists("get_self_full"))
{
function get_self_full()
{
global $script_url;
return $script_url."/".get_self();
}
}