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: Remove file description in title=""  (Read 2766 times)

0 Members and 1 Guest are viewing this topic.

KchoPrro

  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 296
    • Adolfo Ventas - Naturaleza Andaluza
Remove file description in title=""
« on: September 23, 2022, 08:15:17 pm »

Hello, could someone tell me how the description of the file can be removed from GPG when we place the mouse over the image? I really only need the title, the rest of the text I don't need. If you can't choose, then I would remove everything.

I have not seen any option in the CPG configuration, in my Chaoticsoul theme it did not appear, in the new theme yes, but also in the classic themes (I think it is CPG configuration).

attached screenshot

Thanks, best regards
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Remove file description in title=""
« Reply #1 on: September 24, 2022, 01:37:58 am »

That behavior (title and caption/description combined on hover) would have to be overridden in the theme's theme.php file. But, with so much mobile browsing these days, hover isn't much of a thing anymore.
Logged

KchoPrro

  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 296
    • Adolfo Ventas - Naturaleza Andaluza
Re: Remove file description in title=""
« Reply #2 on: September 24, 2022, 01:45:36 pm »

That behavior (title and caption/description combined on hover) would have to be overridden in the theme's theme.php file. But, with so much mobile browsing these days, hover isn't much of a thing anymore.

Thank you

I'm reviewing the theme file and I see it too simple, I think I can't solve this problem in this file, this is all the code it has:

Code: [Select]
<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2014 Coppermine Dev Team
  v1.0 originally written by Gregory Demar

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.

  ********************************************
  Coppermine version: 1.5.38
  $HeadURL: https://svn.code.sf.net/p/coppermine/code/trunk/cpg1.5.x/themes/water_drop/theme.php $
  $Revision: 8800 $
**********************************************/

define('THEME_HAS_PROGRESS_GRAPHICS'1);

// HTML template for template sys_menu spacer
$template_sys_menu_spacer '';

/******************************************************************************
** Section <<<theme_credits>>> - START
******************************************************************************/

/******************************************************************************
// Function for the credits-section
In previous versions of Coppermine the "Powered by Coppermine" used to be
obfuscated to make it hard for non-coders to remove the tag. The reason behind
this was an additional license add-on that disallowed users to change the line.
The dev team has reviewed this policy for cpg1.5.x and decided that end users
ARE allowed to change or remove the line in legal terms.
HOWEVER: We have a forum policy for the support board instead: support will
only be given for galleries that show the "Powered by Coppermine" tag
unobfuscated.
Before removing the credits, please consider this as well:
Coppermine is free software, the dev team ASKS you to keep the footer intact.
We're convinced that you should give credit where credit is due. So please think
twice before you decide to remove the tag.
******************************************************************************/
function theme_credits() {
    
$return = <<< EOT


EOT;
    return 
$return;
}
/******************************************************************************
** Section <<<theme_credits>>> - END
******************************************************************************/

?>

I observe that there is a link to another file in the CPG repository, could it be that the subject to be modified was really that Link file? This would explain the reason why with other classic themes, the problem remains, they really are the same file):

Code: [Select]
$HeadURL: https://svn.code.sf.net/p/coppermine/code/trunk/cpg1.5.x/themes/water_drop/theme.php $
I imagine that a solution would be to copy this file and edit it myself.

I'll give it a try, I hope I don't break anything  ;D ;D ;D
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Remove file description in title=""
« Reply #3 on: September 24, 2022, 01:56:08 pm »

Please see this section of the docs https://coppermine-gallery.net/docs/curr/en/theme.htm#theme_engine

It explains where to get the blocks you need to edit and how to copy them into your own custom theme. You only need to copy in the parts of theme.PHP you want to modify
Logged
It is a mistake to think you can solve any major problems just with potatoes.

KchoPrro

  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 296
    • Adolfo Ventas - Naturaleza Andaluza
Re: Remove file description in title=""
« Reply #4 on: September 24, 2022, 03:19:09 pm »

Please see this section of the docs https://coppermine-gallery.net/docs/curr/en/theme.htm#theme_engine

It explains where to get the blocks you need to edit and how to copy them into your own custom theme. You only need to copy in the parts of theme.PHP you want to modify

Thanks for answering. She checked the documentation and didn't find the solution. I understand that the personal theme code prevails over the CPG theme. But if some function is not in the personal theme code, then the CPG theme is used.

I have checked the include/themes.inc.php and I have not been able to find there the part that affects this problem (problem for me), I must be very clumsy  :-[
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Remove file description in title=""
« Reply #5 on: September 24, 2022, 03:41:43 pm »

Remove the ?> at the bottom of your theme.php file and add the contents of the attached file there. That should give you what you want.
Logged

KchoPrro

  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 296
    • Adolfo Ventas - Naturaleza Andaluza
Re: Remove file description in title=""
« Reply #6 on: September 24, 2022, 06:25:58 pm »

Remove the ?> at the bottom of your theme.php file and add the contents of the attached file there. That should give you what you want.

Thanks ron4mac, it has worked perfectly. Seeing what you had to add, it was not easy for me to do it.

Query resolved! ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.