4images Modifications / Modifikationen > Tutorials

[TUT] Neue Kategorie Rechte, New categories permission

(1/1)

bildergallery:
- zunächst einmal nur in deutsch ...
- a englisch version is coming soon ... or later ...  ;) ... meanwhile use this  English-Google-Translation ...
     - 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: ---$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
);
--- End code ---

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: ---  "auth_viewcat" => AUTH_ALL,
--- End code ---

ersetze

--- Code: ---  "auth_viewcat" => AUTH_ACL,
--- End code ---

qBass17:
Super, klasse Arbeit :D

mediteran13:
Perfect tutorial, it's saving a hundred clicks a day. Thank you!

Navigation

[0] Message Index

Go to full version