Visitors can post comments Visitors can rate files Visitors can post comments Visitors can rate files
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Visitors can post comments Visitors can rate files

Started by allvip, September 17, 2013, 01:46:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

allvip

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.




ΑndrĂ©

It's the same approach as in your other thread.

Open modifyalb.php, find
$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
if (!GALLERY_ADMIN_MODE) {
    unset($data[12]);
    unset($data[13]);
}

phill104

Quote from: 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

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.
It is a mistake to think you can solve any major problems just with potatoes.

allvip