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: More meta albums for cpg1.6.x  (Read 9055 times)

0 Members and 1 Guest are viewing this topic.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
More meta albums for cpg1.6.x
« on: December 25, 2018, 09:41:11 pm »

This is the cpg1.6.x and PHP7 compatible version of the More meta albums plugin.

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)
  • 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
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: More meta albums for cpg1.6.x
« Reply #1 on: August 07, 2020, 12:36:35 pm »

Code: [Select]
\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

Code: [Select]
\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
Logged

H4F

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: More meta albums for cpg1.6.x
« Reply #2 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?
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: More meta albums for cpg1.6.x
« Reply #3 on: July 05, 2023, 01:10:28 pm »

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:
Code: [Select]
    $meta_album_name = substr($key, 0, count($key)-7);with:
Code: [Select]
    $meta_album_name = substr($key, 0, -6);
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.