forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 miscellaneous => Topic started by: KchoPrro on August 28, 2022, 11:22:26 am

Title: Lastup and topn outside the margins
Post by: KchoPrro on August 28, 2022, 11:22:26 am
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! :)
Title: Re: Lastup and topn outside the margins
Post by: 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:
Code: [Select]
function myTruncate($string, $limit, $break=".", $pad="...</span>")
{
// return with no change if string is shorter than $limit
to:
Code: [Select]
function myTruncate($string, $limit, $break=".", $pad="...</span>")
{ return $string;
// return with no change if string is shorter than $limit
Title: Re: Lastup and topn outside the margins
Post by: KchoPrro on August 29, 2022, 06:52:31 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:
Code: [Select]
function myTruncate($string, $limit, $break=".", $pad="...</span>")
{
// return with no change if string is shorter than $limit
to:
Code: [Select]
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