Recent posts - Page 7 Recent posts - Page 7
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Recent posts

#61
cpg1.6 permissions / Re: CPG 1.6 - Safe to use
Last post by SolidSnake2003 - March 29, 2025, 08:52:48 PM
Quote from: phill104 on March 29, 2025, 10:44:48 AMYes. We have had no reports of any security issues.

Thanks for answering my question Phil104
#62
cpg1.6 permissions / Re: CPG 1.6 - Safe to use
Last post by phill104 - March 29, 2025, 10:44:48 AM
Yes. We have had no reports of any security issues.
#63
cpg1.6 permissions / CPG 1.6 - Safe to use
Last post by SolidSnake2003 - March 28, 2025, 04:27:02 AM
Is it still safe to use the current version of 1.6 of Coppermine Photo Gallery on a fansite? I ask cause I'm working on relaunching one of my fansites and want to use Coppermine as the gallery. I see that there hasn't been any updates for a year.
#64
cpg1.6 miscellaneous / Re: Modify custom fields in fi...
Last post by FrA1l3 - February 24, 2025, 11:08:09 PM
A small clarification, when I choose the option to upload a single file, I can see all the fields. It is in the multiple files option where the custom fields that I need to fill out do not appear.

(https://i.imgur.com/ZIVGtFW.png)

thank you!
#65
cpg1.6 miscellaneous / Modify custom fields in file u...
Last post by FrA1l3 - February 23, 2025, 07:43:02 PM
Hello friends.

I have been making the modification of adding 20 custom fields to my gallery for years, with each update I make the same modification and I explain it in this other thread:
https://coppermine-gallery.com/forum/index.php/topic,79437.msg390717.html

The thing is that there is a file that I am resisting, and it is the upload.php.
By default it shows the first 4 custom fields and I can't get it to show my other custom fields.
Could you help me please?
I am leaving you an image of the files so you can see how the other custom fields look in other places.

It would save me a lot of time if I could establish the custom fields before uploading the photos, since it is information that they share and I wouldn't have to add the information one by one

default_fields.png
#66
cpg1.5 theme contributions / Re: Theme Pinmine ...
Last post by Leigh2000 - February 23, 2025, 09:50:21 AM
Finally updated my site to v1.6.26 and discovered this theme stopped working so I thought I would share my solution.

find line 1257 in theme.php
$result = cpg_db_query("SELECT COUNT(msg_id) FROM {$CONFIG['TABLE_COMMENTS']} WHERE pid='$pid'");    list($num) = mysqli_fetch_row($result);
and replace with
$result = cpg_db_query("SELECT COUNT(msg_id) FROM {$CONFIG['TABLE_COMMENTS']} WHERE pid='$pid'");

// Check if $result is an instance of CPG_DbaseResult
if ($result instanceof CPG_DbaseResult) {
    // Use the appropriate fetch method for CPG_DbaseResult
    $row = $result->fetchRow(); // Hypothetical method; verify the actual method in your library
    $num = $row[0];
} else {
    // Handle unexpected result type
    die("Error: Invalid query result type.");
}

No problems so far so hopefully this keeps it working.
Thanks for the nice theme btw  :)
#67
cpg1.6 miscellaneous / Re: Duplicated albums on creat...
Last post by AnnieHoney - February 21, 2025, 08:04:02 AM
I have the same theme on other sites without issue.
But I uploaded a copy of another theme's theme.php and it seems to have stopped
#68
cpg1.6 miscellaneous / Re: Duplicated albums on creat...
Last post by ron4mac - February 20, 2025, 05:24:06 PM
It would seem that your theme theme.php file is adding the javascript parts twice. This is likely causing some of your actions to be interpreted twice.
#69
cpg1.6 miscellaneous / Re: Duplicated albums on creat...
Last post by AnnieHoney - February 20, 2025, 11:00:37 AM
Sorry for the late reply, I set to be notified of answers, but it's not working

It's https://tomcruisefan.com/gallery/index.php
#70
cpg1.6 miscellaneous / Re: Duplicated albums on creat...
Last post by phill104 - February 11, 2025, 11:47:00 PM
A link to the site in question will help here.