Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Lastup and topn outside the margins  (Read 389 times)

0 Members and 1 Guest are viewing this topic.

KchoPrro

  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 281
    • Adolfo Ventas - Naturaleza Andaluza
Lastup and topn outside the margins
« 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! :)
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1928
Re: Lastup and topn outside the margins
« Reply #1 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
Logged

KchoPrro

  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 281
    • Adolfo Ventas - Naturaleza Andaluza
Re: Lastup and topn outside the margins
« Reply #2 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
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.