Advanced search  

News:

cpg1.5.42 maintenance release - upgrade recommended
The Coppermine development team is releasing an update for Coppermine in order to fix several minor issues. All fixes are not security critical, so if your gallery is running fine with cpg1.5.36, cpg1.5.38 or cpg1.5.40 you don't need to upgrade. If you are running an older version than cpg1.5.36, you must update to this latest version as soon as possible because of the security impact!
[more]

Pages: [1]   Go Down

Author Topic: Hidden features plugin for cpg1.5.x  (Read 6902 times)

0 Members and 1 Guest are viewing this topic.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15171
Hidden features plugin for cpg1.5.x
« on: March 12, 2014, 05:20:55 PM »

This plugin adds a config panel for all available hidden features of cpg1.5.x. Those features already exist in the Coppermine core code (some of them will be official config options in cpg1.6.x and later), this plugin just adds a comfortable interface to set them.

Currently available config options:
  • Allow guests to enter file details after flash upload
  • Create sub-directory for each album in users' upload directories
  • Sort order for albums
  • Display sort buttons on thumbnail page
  • Show previously uploaded files at edit files form after flash upload
  • Regard upload time of linked files in album info
  • Hide already added files in batch-add interface
  • Hide file count and disk space usage in user manager
  • Add button next to album drop-down box to display only empty albums
  • Default value for album property "Visitors can upload files"

Features without config option:
  • Display confirmation message when adding/removing pictures to/from favorites

Note: not all config options are available in all versions of cpg1.5.x. If you're already running the latest stable version of cpg1.5.x, make sure that you've run the update script. If the config option still doesn't appear in your gallery, that option has probably been added in a development version of Coppermine and will be available in the next stable release.
« Last Edit: July 19, 2016, 10:11:37 AM by Αndré »
Logged

pols1337

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 239
Re: Hidden features plugin for cpg1.5.x
« Reply #1 on: March 18, 2014, 05:41:54 AM »

Can't wait until Coppermine 1.6! 
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1284
Re: Hidden features plugin for cpg1.5.x
« Reply #2 on: March 19, 2014, 06:31:17 PM »

Thanks for the plugin.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15171
Re: Hidden features plugin for cpg1.5.x
« Reply #3 on: June 09, 2015, 10:09:12 PM »

Version 1.2 attached to initial post. New options:
  • Hide already existing files on batch-add interface
  • Hide file count and disk space usage in user manager
  • Add button next to album drop-down box to display only empty albums
Logged

Charles Waters

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Hidden features plugin for cpg1.5.x
« Reply #4 on: June 28, 2015, 10:05:13 PM »

Good morning.

I installed this plug in a few minutes ago, and selected the sort order for "Title Ascending", and the albums still do not show in alphabetical order. The other options I selected like user being able to add title, description, etc. work flawlessly.

Thank you for your assistance in advance!
Logged

Charles Waters

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Hidden features plugin for cpg1.5.x
« Reply #5 on: June 28, 2015, 10:05:56 PM »

Good morning.

I installed this plug in a few minutes ago, and selected the sort order for "Title Ascending", and the albums still do not show in alphabetical order. The other options I selected like user being able to add title, description, etc. work flawlessly.

Thank you for your assistance in advance!

Sorry, I am using the latest version of the software at http://www.pointdefiancepirates.com/gallery
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15171
Re: Hidden features plugin for cpg1.5.x
« Reply #6 on: June 28, 2015, 11:24:44 PM »

Seems that it doesn't work for albums that are displayed on the main page, but just if you visit a category, e.g. http://www.pointdefiancepirates.com/gallery/index.php?cat=4

I'll have a look as soon as possible.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15171
Re: Hidden features plugin for cpg1.5.x
« Reply #7 on: July 07, 2015, 10:30:17 AM »

Fixed album sort order for "first level" albums in SVN revision 8797. As the plugin just toggles a config value, you don't need to update the plugin, but Coppermine itself. The fix will be included in cpg1.5.38.
Logged

wilk

  • Translator
  • Coppermine novice
  • **
  • Country: pl
  • Offline Offline
  • Gender: Male
  • Posts: 44
    • #QuizPL @ IRCnet
Re: Hidden features plugin for cpg1.5.x
« Reply #8 on: August 28, 2015, 08:51:54 PM »

Polish translation for 1.2 (I've tried to do my best, but not all settings are 100% clear to me).

I've also attached a fix for a form's action url (it was broken if we used redirection in .htaccess from index.php to /):

Code: [Select]
-echo '<form action="index.php?file=hidden_features/admin" method="post">';
+echo '<form action="'.$superCage->server->getEscaped('REQUEST_URI').'" method="post">';
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15171
Re: Hidden features plugin for cpg1.5.x
« Reply #9 on: August 31, 2015, 04:10:51 PM »

Added and fixed in SVN revision 8807.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15171
Re: Re: Hidden features plugin for cpg1.5.x
« Reply #10 on: August 31, 2015, 04:53:01 PM »

Version 1.3 attached to initial post. New option:
  • Default value for album property "Visitors can upload files"
Logged

wilk

  • Translator
  • Coppermine novice
  • **
  • Country: pl
  • Offline Offline
  • Gender: Male
  • Posts: 44
    • #QuizPL @ IRCnet
Re: Hidden features plugin for cpg1.5.x
« Reply #11 on: September 02, 2015, 12:16:50 AM »

Lang update for 1.4.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15171
Re: Hidden features plugin for cpg1.5.x
« Reply #12 on: September 02, 2015, 02:33:12 PM »

Thanks. Committed in SVN revision 8812.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15171
Re: Hidden features plugin for cpg1.5.x
« Reply #13 on: September 16, 2015, 12:17:01 PM »

Version 1.5 attached to initial post. New feature (no config option):
  • Display confirmation message when adding/removing pictures to/from favorites
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15171
Re: Hidden features plugin for cpg1.5.x
« Reply #14 on: March 08, 2016, 02:31:56 PM »

Version 1.6 (attached to initial post) fixes an issue with the drop-down boxes.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15171
Re: Hidden features plugin for cpg1.5.x
« Reply #15 on: July 19, 2016, 10:14:49 AM »

Version 1.7 (attached to initial post) adds new options for the sort order of albums:
- Sort by views ascending
- Sort by views desending

Those options will work from cpg1.5.44 out of the box. For cpg1.5.42 and earlier, you need to apply this mod:
Open include/functions.inc.php, find
Code: [Select]
        'pd' => "{$table_alias}pos DESC, {$table_alias}aid DESC",and below, add
Code: [Select]
        'va' => "{$table_alias}alb_hits ASC, {$table_alias}aid ASC",
        'vd' => "{$table_alias}alb_hits DESC, {$table_alias}aid DESC",
Logged
Pages: [1]   Go Up
 

Page created in 0.082 seconds with 20 queries.