• [MOD] Apply permission to sub-categories from their parent category 5 0 5 1
Currently:  

Author Topic: [MOD] Apply permission to sub-categories from their parent category  (Read 84577 times)

0 Members and 1 Guest are viewing this topic.

Offline Gwydion

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Re: [MOD] Apply permission to sub-categories from their parent category
« Reply #30 on: April 25, 2006, 05:33:09 PM »
Easy to "install", works great - thanks!

Offline Mindze

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Apply permission to sub-categories from their parent category
« Reply #31 on: May 02, 2006, 02:15:11 PM »
PERFECT :)

Offline koikonut

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://www.konradin.net
Fatal Error
« Reply #32 on: May 06, 2006, 07:44:18 AM »
Quote
Fatal error: Cannot redeclare get_subcategories_id() (previously declared in /www/htdocs/v110298/galerie/admin/categories.php:331) in /www/htdocs/v110298/galerie/admin/categories.php on line 669

:-(

I have version 1.7.2 of the Script.What can I do?

Thx for helping

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Apply permission to sub-categories from their parent category
« Reply #33 on: May 06, 2006, 04:10:45 PM »
From Step 1.1 of this mod remove
Code: [Select]
function get_subcategories_id($cat_id = 0)
 {
 global $subcat_ids, $cat_parent_cache;
 
 if (!isset($cat_parent_cache[$cat_id]))
 {
 return false;
 }
 foreach ($cat_parent_cache[$cat_id] as $key => $val)
 {
 $subcat_ids[] = $val;
 get_subcategories_id($val);
 }
 return $subcat_ids;
 }
v1.7.2 already has this function.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline lukasinoooo

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [MOD] Apply permission to sub-categories from their parent category
« Reply #34 on: May 27, 2006, 04:34:27 PM »
I have problem in 1.72v

Step 1
Open admin/categories.php
Find:
Code:
  $auth_postcomment = $HTTP_POST_VARS['auth_postcomment'];

i found two
  $auth_postcomment = $HTTP_POST_VARS['auth_postcomment'];

in if ($action == "updatecat") and if ($action == "savecat") {

when insert   $subcats = (isset($HTTP_POST_VARS['subcats']) && $HTTP_POST_VARS['subcats']) ? 1 : 0; ?

in 1.72v doesn't work  :?

Offline Gwydion

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Re: [MOD] Apply permission to sub-categories from their parent category
« Reply #35 on: August 24, 2006, 07:18:56 PM »
Applied it to 1.7.2 without step 1.1. No error message but subcategories are not changed either.
Any ideas? I checked the code twice and am pretty sure I made no mistake with copy-paste.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Apply permission to sub-categories from their parent category
« Reply #36 on: August 25, 2006, 04:43:36 AM »
well, if you didnt do all the steps, then what are you complaining about? :roll:
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Gwydion

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Re: [MOD] Apply permission to sub-categories from their parent category
« Reply #37 on: August 26, 2006, 03:28:49 PM »
Ah, misread .. thought the whole 1.1. had to be skipped. My bad.
Thanks for fixing it on page 1. :)

Offline medo007

  • Newbie
  • *
  • Posts: 29
  • Internet addict
    • View Profile
Re: [MOD] Apply permission to sub-categories from their parent category
« Reply #38 on: September 17, 2006, 04:16:53 PM »
Great mode! It works perfectly!  :D
Thanks
mEDO

Offline paburmester

  • Full Member
  • ***
  • Posts: 244
    • View Profile
Re: [MOD] Apply permission to sub-categories from their parent category
« Reply #39 on: October 02, 2006, 10:54:53 PM »
Can this works with 1.7.3 ?

Offline LGeneration

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [MOD] Apply permission to sub-categories from their parent category
« Reply #40 on: July 26, 2007, 11:14:34 AM »
Zu früh gefreut :( Habe alles nach Anleitung gemacht, habe Version 1.7.3 (Link: klick).
Im Admin Menü erscheint zwar das Feld "Apply to all subcategories", aber es funktioniert einfach nicht. Er übernimmt die Änderungen nicht für die Subkategorien :?
« Last Edit: July 26, 2007, 11:27:35 AM by LGeneration »

Offline XxJakeBluesxX

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://www.digiclaudio.com
Re: [MOD] Apply permission to sub-categories from their parent category
« Reply #41 on: February 05, 2008, 04:47:37 PM »
Zu früh gefreut :( Habe alles nach Anleitung gemacht, habe Version 1.7.3 (Link: klick).
Im Admin Menü erscheint zwar das Feld "Apply to all subcategories", aber es funktioniert einfach nicht. Er übernimmt die Änderungen nicht für die Subkategorien :?

Bei mir geht es auch nicht trotz des Feldes "Apply to all subcategories" (Version 1.7.6). Kann mal einer eine funktionierende und angepasste categories.php zum Download bereitstellen oder den Code posten?
:) Ciao, Claudio :)

Offline silentg

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • WallpaperJoint
Re: [MOD] Apply permission to sub-categories from their parent category
« Reply #42 on: June 26, 2008, 04:26:06 PM »
Add this to your language file: admin.php

Find:
Quote
$lang['save_changes'] = "Save changes";

Insert it below:
Quote
$lang['sub_categories_permission'] = "Apply To All Subcategories";

Offline silentg

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • WallpaperJoint
Re: [MOD] Apply permission to sub-categories from their parent category
« Reply #43 on: June 26, 2008, 05:57:37 PM »
You forgot to mention where to edit for the language code. Please fix that also.

Offline Hagen-Roderich

  • Full Member
  • ***
  • Posts: 127
    • View Profile
    • Hof Jokers
Re: [MOD] Apply permission to sub-categories from their parent category
« Reply #44 on: July 30, 2009, 12:47:30 PM »
@Ivan:
Vielleicht könntest Du noch bei Punkt 1 vermerken das man die zweite Stelle der gefundenen Zeilen (ca. 610 -612 Zeile) in der "categories.php" darunter ergänzen muss. Steht zwar schon mal weiter vorn im Thread, aber so wäre die Installation leichter.

Thanks for your work V@no and Ivan.