Advanced search  

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

Pages: [1]   Go Down

Author Topic: Visitors can post comments Visitors can rate files  (Read 6971 times)

0 Members and 1 Guest are viewing this topic.

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Visitors can post comments Visitors can rate files
« 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.


Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Visitors can post comments Visitors can rate files
« Reply #2 on: September 17, 2013, 01:54:40 pm »

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

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]);
}
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Visitors can post comments Visitors can rate files
« Reply #3 on: September 17, 2013, 02:05:34 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Visitors can post comments Visitors can rate files
« Reply #4 on: September 17, 2013, 02:21:44 pm »

thanks for both answers
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.