Support > cpg1.6 permissions

issues with http and https

<< < (2/4) > >>

Αndré:
According to the timestamp on your server, the file include/functions.inc.php has been modified 2.5 hours ago. The function cpg_get_user_data was missing, that's why you couldn't login. I restored the file with a clean copy and I now get an error message (as expected) when submitting wrong credentials. You need to re-apply any mods to that file, if applicable.

Hanna.:
Thank you for figuring that out so quickly. However, I use that exact same functions file with my other galleries (ex - www.kristindaily.org, www.rachelbilson.us) and never had an issue. The specific add to that functions is the dimensions to be shown under the thumbnails. Why is that though? And I host them all from my own/same server.

Αndré:
If the function is also missing in the other files, you'll get the same issue when you try to login. If you there's no issue, it's not the same file (or you use another Coppermine version where that function doesn't exist in include/functions.inc.php.

Hanna.:

--- Quote from: Αndré on November 03, 2018, 01:29:05 pm ---If the function is also missing in the other files, you'll get the same issue when you try to login. If you there's no issue, it's not the same file (or you use another Coppermine version where that function doesn't exist in include/functions.inc.php.

--- End quote ---

That is correct. The new gallery has 1.6.04 and my other ones have 1.6.03. I need this part from version 3 to 4: -- I just tried adding it but again it interupts the entire function frame on my gallery:


--- Code: ---if (in_array('ctime', $must_have)) {
            $caption .= '<span class="thumb_caption thumb_caption_ctime">' . localised_date($row['ctime'], $lang_date['lastup']) . '</span>';
        }


$caption .= '<span class="thumb_dimensions">' . $rowset[$key]['pwidth'] . " x " . $rowset[$key]['pheight'] . '</span>';
$rowset[$key]['caption_text'] = $caption;

        if ($CONFIG['caption_in_thumbview'] && !empty($row['caption'])) {
            $caption .= '<span class="thumb_caption thumb_caption_caption">' . strip_tags(bb_decode($row['caption'])) . '</span>';
--- End code ---

Where would you recommed to put it so it works without interruption?
       

Αndré:
Please post more details where you have it added now, or even better, attach your modified functions.inc.php file.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version