4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Tutorials => Topic started by: bildergallery on August 10, 2008, 09:33:43 PM

Title: [TUT] Neue Kategorie Rechte, New categories permission
Post by: bildergallery on August 10, 2008, 09:33:43 PM
(http://img517.imageshack.us/img517/1378/deu8yc.gif) - zunächst einmal nur in deutsch ...
(http://img517.imageshack.us/img517/7821/eng9tu.gif) - a englisch version is coming soon ... or later ...  ;) ... meanwhile use this  English-Google-Translation (http://translate.google.com/translate?u=http%3A%2F%2Fwww.4homepages.de%2Fforum%2Findex.php%3Ftopic%3D20748.0&langpair=en%7Cde&hl=de&ie=UTF-8) ...
     - but don't use the php-/html-code from this translation, use the php-/html-code from the original topic ...


Hallo zusammen,
Wie kann ich die Rechte, wenn ich eine neue Kategorie erstelle, als standard ändern?

admin/categories.php
suche
Code: [Select]
$access_field_array = array(
  "auth_viewcat" => AUTH_ALL,
  "auth_viewimage" => AUTH_ALL,
  "auth_download" => AUTH_USER,
  "auth_upload" => AUTH_USER,
  "auth_directupload" => AUTH_ADMIN,
  "auth_vote" => AUTH_ALL,
  "auth_sendpostcard" => AUTH_ALL,
  "auth_readcomment" => AUTH_ALL,
  "auth_postcomment" => AUTH_USER
);

Erklärung:
"auth_viewcat" = Kategorie sehen
"auth_viewimage" = Bilddetails sehen
"auth_download" = Download
"auth_upload" = Upload
"auth_directupload" = Direkter Upload
"auth_vote" = Bewerten
"auth_sendpostcard" = Postkarten versenden
"auth_readcomment" = Kommentare lesen
"auth_postcomment" = Kommentare posten

AUTH_ALL = Alle
AUTH_ADMIN = Administratoren
AUTH_USER = Registrierte User
AUTH_ACL = Privat

Wie kann ich nun "Kategorie sehen" auf Privat stellen?

Beispiel:
suche
Code: [Select]
  "auth_viewcat" => AUTH_ALL,
ersetze
Code: [Select]
  "auth_viewcat" => AUTH_ACL,
Title: Re: [TUT] Neue Kategorie Rechte, New categories permission
Post by: qBass17 on August 10, 2008, 10:37:32 PM
Super, klasse Arbeit :D
Title: Re: [TUT] Neue Kategorie Rechte, New categories permission
Post by: mediteran13 on January 03, 2010, 10:08:14 AM
Perfect tutorial, it's saving a hundred clicks a day. Thank you!