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

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

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 1 Guest 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