coppermine-gallery.com/forum

Support => cpg1.6 plugins => cpg1.6.x Support => cpg1.6 plugin contributions => Topic started by: Αndré on December 25, 2018, 09:41:11 PM

Title: More meta albums for cpg1.6.x
Post by: Αndré on December 25, 2018, 09:41:11 PM
This is the cpg1.6.x and PHP7 compatible version of the More meta albums plugin.

Quote from: Αndré on February 11, 2010, 03:34:53 PM
This plugin adds new meta albums to your gallery.

Currently available meta albums:

  • image: All pictures
  • movie: All videos
  • audio: All audio files
  • document: All documents
  • landscape: Landscape format pictures
  • portrait: Portrait format pictures
  • panorama: Panorama format pictures
  • lastcommented: Last commented pictures (group comments for the same picture)
  • mostcom: Most commented pictures
  • mostvot: Most voted pictures
  • toprateda: Top rated pictures (differs from 'toprated', details see here (http://forum.coppermine-gallery.net/index.php/topic,32015.0.html))
  • newalb: New albums (differs from 'lastalb', as it uses chosen album thumbnail as thumbnail and also its upload time instead of the upload time of the latest file)
  • randalb: Random albums
  • randuseralb: Random albums in user categories
  • randpublicalb: Random albums in public categories
Title: Re: More meta albums for cpg1.6.x
Post by: allvip on August 07, 2020, 12:36:35 PM

\plugins\album_share_codes\codebase.php

    Warning line 28: mysqli_num_rows() expects parameter 1 to be mysqli_result, object given



I assume mysqli_num_rows should be cpg_db_num_rows.
The error is gone in debug but still have


\plugins\more_meta_albums\codebase.php

    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable
    Warning line 23: count(): Parameter must be an array or an object that implements Countable

Title: Re: More meta albums for cpg1.6.x
Post by: H4F on July 05, 2023, 05:55:43 AM
Hi, this plugin is not compatible with PHP 8.1, is there any way it could be made PHP 8.1 ready?
Title: Re: More meta albums for cpg1.6.x
Post by: ron4mac on July 05, 2023, 01:10:28 PM
Quote from: H4F on July 05, 2023, 05:55:43 AM
Hi, this plugin is not compatible with PHP 8.1, is there any way it could be made PHP 8.1 ready?
In the plugin file codebase.php, replace line 23:
    $meta_album_name = substr($key, 0, count($key)-7);
with:
    $meta_album_name = substr($key, 0, -6);
Title: Re: More meta albums for cpg1.6.x
Post by: Dark_Coat on September 08, 2024, 07:12:48 PM
Is there a way to also have the albums be sorted? For example:

https://www.example.com/gallery/thumbnails.php?album=100&page=1&sort=dd