Lastup and topn outside the margins Lastup and topn outside the margins
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Lastup and topn outside the margins

Started by KchoPrro, August 28, 2022, 11:22:26 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

KchoPrro

Hello friends;

I have my gallery finally working perfectly on 1.6.19 updated from 1.5.48. However, I notice a problem where the "latest files" and "most viewed" are displayed outside the margins. The rest of the gallery looks perfect, I imagine it must be a problem with the chaoticsoul theme but I don't know how I can correct it. Can someone guide me?

This is the problems;
https://www.adolfoventas.es/galeria/thumbnails.php?album=lastup&cat=0
https://www.adolfoventas.es/galeria/thumbnails.php?album=topn&cat=0

Any other category or album is displayed perfectly, for example;
https://www.adolfoventas.es/galeria/thumbnails.php?album=42

Thanks! :)

ron4mac

That theme has some code that is inappropriately modifying the thumbnail caption html. Easiest thing to do is to render it non-functional.

In the theme's theme.php file, at about line 1164, change:
function myTruncate($string, $limit, $break=".", $pad="...</span>")
{
// return with no change if string is shorter than $limit

to:
function myTruncate($string, $limit, $break=".", $pad="...</span>")
{ return $string;
// return with no change if string is shorter than $limit

KchoPrro

Quote from: ron4mac on August 28, 2022, 08:01:48 PM
That theme has some code that is inappropriately modifying the thumbnail caption html. Easiest thing to do is to render it non-functional.

In the theme's theme.php file, at about line 1164, change:
function myTruncate($string, $limit, $break=".", $pad="...</span>")
{
// return with no change if string is shorter than $limit

to:
function myTruncate($string, $limit, $break=".", $pad="...</span>")
{ return $string;
// return with no change if string is shorter than $limit


Fixed!, you are a genius!!  ;D ;D