forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 permissions => Topic started by: allvip on September 17, 2013, 01:46:30 pm

Title: Visitors can post comments Visitors can rate files
Post by: allvip on September 17, 2013, 01:46:30 pm
I searched a lot but nothing.

non admins have the options to set Visitors can post comments Visitors can rate files to no.
I want them to not be able to change from yes to no.


Title: Re: Visitors can post comments Visitors can rate files
Post by: allvip on September 17, 2013, 01:48:45 pm
this plugin is nowhere:

http://forum.coppermine-gallery.net/index.php/topic,74214.msg357320.html#msg357320 (http://forum.coppermine-gallery.net/index.php/topic,74214.msg357320.html#msg357320)
Title: Re: Visitors can post comments Visitors can rate files
Post by: Αndré on September 17, 2013, 01:54:40 pm
It's the same approach as in your other thread (http://forum.coppermine-gallery.net/index.php/topic,76585.msg369598.html#msg369598).

Open modifyalb.php, find
Code: [Select]
$data = array($lang_modifyalb_php['general_settings'],
    array($icon_array['title'].$lang_modifyalb_php['alb_title'].$help['album_title'], 'title', 0),
    array($icon_array['album_category'].$lang_modifyalb_php['alb_cat'].$help['album_category'], 'category', 2),
    array($icon_array['description'].$captionLabel, 'description', 3),
    array($icon_array['keyword'].$lang_modifyalb_php['alb_keyword'].$help['album_keywords'], 'keyword', 0),
    array($lang_modifyalb_php['alb_thumb'], 'thumb', 4),
    $lang_modifyalb_php['alb_perm'],
    array($icon_array['view'].$lang_modifyalb_php['can_view'].$help['album_can_be_viewed_by'], 'visibility', 5),
    array($icon_array['password'].$lang_modifyalb_php['password_protect'].$help['album_password'], 'password_protect', 9),
    array($icon_array['blank'].$lang_modifyalb_php['alb_password'], 'alb_password', 6),
    array($icon_array['blank'].$lang_modifyalb_php['alb_password_hint'], 'alb_password_hint', 7),
    array($icon_array['upload'].$lang_modifyalb_php['can_upload'].$notice1.$help['can_upload'], 'uploads', 1),
    array($icon_array['comment'].$lang_modifyalb_php['can_post_comments'].$notice1.$help['can_post_comments'], 'comments', 1),
    array($icon_array['rate'].$lang_modifyalb_php['can_rate'].$notice1.$help['can_rate'], 'votes', 1),
);
and below, add
Code: [Select]
if (!GALLERY_ADMIN_MODE) {
    unset($data[12]);
    unset($data[13]);
}
Title: Re: Visitors can post comments Visitors can rate files
Post by: phill104 on September 17, 2013, 02:05:34 pm
this plugin is nowhere:

http://forum.coppermine-gallery.net/index.php/topic,74214.msg357320.html#msg357320 (http://forum.coppermine-gallery.net/index.php/topic,74214.msg357320.html#msg357320)

All complete plugins are placed in this board - http://forum.coppermine-gallery.net/index.php/board,91.0.html

As you can see, the link you give is not in the contributions board but in the plugins discussions board. As the plugin was not completed and put together it remains where it is.
Title: Re: Visitors can post comments Visitors can rate files
Post by: allvip on September 17, 2013, 02:21:44 pm
thanks for both answers