News:

CPG Release 1.6.31
Minor maintenance release
Clean up remaining remnants of the .net CPG website
Improved installer_stub compatibility with various server configurations

Main Menu

Berechtigungen für Alben

Started by fichte_112, January 27, 2010, 05:18:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fichte_112

Hallo,
wie kann man es einstellen oder modifizieren, dass  die Option ,,Album kann angesehen werden von"  in der Albenverwaltung nur für Administratoren sichtbar ist und von den Benutzern nicht geändert werden kann. Am besten wäre es, wenn es für Benutzer ausgeblendet ist.
fichte_112

http://fotos-fichtner.pytalhost.de/fotos.php

Αndré

In modifyalb.php, suche
$data = array($lang_modifyalb_php['general_settings'],
    array($lang_modifyalb_php['alb_title'], 'title', 0),
    array($lang_modifyalb_php['alb_cat'], 'category', 2),
    array($captionLabel, 'description', 3),
    array($lang_modifyalb_php['alb_keyword'].$help_album_keywords, 'keyword', 0),
    array($lang_modifyalb_php['alb_thumb'], 'thumb', 4), $lang_modifyalb_php['alb_perm'],
    array($lang_modifyalb_php['can_view'], 'visibility', 5),
    array($lang_modifyalb_php['alb_password'].$help_album_password, 'alb_password', 6),
    array($lang_modifyalb_php['alb_password_hint'].$help_album_password, 'alb_password_hint', 7),
    array($lang_modifyalb_php['can_upload'].$notice1.$help_can_upload, 'uploads', 1),
    array($lang_modifyalb_php['can_post_comments'].$notice1, 'comments', 1),
    array($lang_modifyalb_php['can_rate'].$notice1, 'votes', 1),
    );

und füge danach folgendes ein
if (!GALLERY_ADMIN_MODE) {
    unset($data[7]);
}

Αndré

Weiterhin solltest du folgendes tun.

In db_input.php, suche
$visibility = (int)$_POST['visibility'];
und ersetze es durch
$visibility = GALLERY_ADMIN_MODE ? (int)$_POST['visibility'] : $USER_DATA['groups'][0];

fichte_112

Danke für die schnelle Hilfe!
fichte_112