Remove file description in title="" Remove file description in title=""
 

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

Remove file description in title=""

Started by KchoPrro, September 23, 2022, 08:15:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

KchoPrro

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

ron4mac

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.

KchoPrro

Quote from: ron4mac 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.

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:

<?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):

$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

phill104

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
It is a mistake to think you can solve any major problems just with potatoes.

KchoPrro

Quote from: phill104 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

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  :-[

ron4mac

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.

KchoPrro

Quote from: ron4mac 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.

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

Query resolved! ;)