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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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