Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
November 21, 2009, 04:11:06 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: cpg1.5.2 beta released
The brand new cpg1.5.x series that comes with a lot of new features finally has reached the release stage: a first public beta release cpg1.5.2 has been released that is mainly aimed at translators, testers and community members that have contributed in the past. The beta release is not meant to be used in a production environment, but only on testbeds and for evaluation purposes. There is currently no support for cpg1.5.x yet!
[more]
   Home   Help Search Board rules Login Register  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: [Resuelto]: Ocultar campos de 'Información del fichero'  (Read 1691 times)
0 Members and 1 Guest are viewing this topic.
daosorio Topic starter
Coppermine newbie

Posts: 3


« on: November 04, 2008, 11:01:04 pm »

Hola!

Agregué 4 campos personalizados a la galería, y se muestran muy bien, pero .. ahora quiero que NO aparezcan algunso que no les veo cierta utilidad para mis fines, y son los siguientes en 'Información del fichero'

Nombre del fichero:
Nombre del álbum:
Tamaño del fichero:
Dimensiones:

pregunto .. es posible .. ?

Gracias de antemano.

Saludos.
« Last Edit: November 12, 2008, 11:16:18 pm by fabri » Logged
Fabricio Ferrero
Moderator
****
Gender: Male
Argentina Argentina

Posts: 1927


From San Juan, Argentina, to the World!


WWW
« Reply #1 on: November 08, 2008, 12:04:19 am »

Hola, claro que si es posible. Disculpa la demora es que el tiempo que le dedico a Coppermine he estado atareado con otras cosas.

Abri el archivo 'displayimage.php', luego:

Busca:

Code:
$info[$lang_picinfo['Filename']] = htmlspecialchars($CURRENT_PIC_DATA['filename']);
   $info[$lang_picinfo['Album name']] = '<span class="alblink">' . $owner_link . $ipinfo . '<a href="thumbnails.php?album=' . $CURRENT_PIC_DATA['aid'] . '">' . $CURRENT_ALBUM_DATA['title'] . '</a></span>';

Y borralo o reemplazalo por:
Code:
// $info[$lang_picinfo['Filename']] = htmlspecialchars($CURRENT_PIC_DATA['filename']);
   // $info[$lang_picinfo['Album name']] = '<span class="alblink">' . $owner_link . $ipinfo . '<a href="thumbnails.php?album=' . $CURRENT_PIC_DATA['aid'] . '">' . $CURRENT_ALBUM_DATA['title'] . '</a></span>';

Lo que hice fue 'comment it out'. Lo que no conozco la traducción pero sería algo como 'dejarlo como comentario a esa porción de código. Se utiliza cuando al lado de alguna función queres hacer una aclaración para alguien que quiera leer el código. Ok, ahí se fueron 2 de los 4 items que pediste.

Luego, busca:

Code:
$info[$lang_picinfo['File Size']] = ($CURRENT_PIC_DATA['filesize'] > 10240 ? ($CURRENT_PIC_DATA['filesize'] >> 10) . '&nbsp;' . $lang_byte_units[1] : $CURRENT_PIC_DATA['filesize'] . '&nbsp;' . $lang_byte_units[0]);
   $info[$lang_picinfo['File Size']] = '<span dir="ltr">' . $info[$lang_picinfo['File Size']] . '</span>';
    $info[$lang_picinfo['Date Added']] = localised_date($CURRENT_PIC_DATA['ctime'],$lastup_date_fmt);
 $info[$lang_picinfo['Dimensions']] = sprintf($lang_display_image_php['size'], $CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight']);

Y dejalo como comentario o borra lo que no necesitas, o copia y pegá lo que sigue, ya lo hice por vos:
Code:
//$info[$lang_picinfo['File Size']] = ($CURRENT_PIC_DATA['filesize'] > 10240 ? ($CURRENT_PIC_DATA['filesize'] >> 10) . '&nbsp;' . $lang_byte_units[1] : $CURRENT_PIC_DATA['filesize'] . '&nbsp;' . $lang_byte_units[0]);
   //$info[$lang_picinfo['File Size']] = '<span dir="ltr">' . $info[$lang_picinfo['File Size']] . '</span>';
    $info[$lang_picinfo['Date Added']] = localised_date($CURRENT_PIC_DATA['ctime'],$lastup_date_fmt);
 //   $info[$lang_picinfo['Dimensions']] = sprintf($lang_display_image_php['size'], $CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight']);

Ok, cualquier cosa te espero de nuevo por aca. Recorda postear si resolviste tu problema para cerrar este tema.

Saludos,  Wink
Logged

Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website
Mi red de Rotaractianos:  Rotaract Latino
daosorio Topic starter
Coppermine newbie

Posts: 3


« Reply #2 on: November 12, 2008, 05:44:59 pm »

Perfecto fabri:

Muchísimas gracias por tu excelente ayuda.

La verdad te lo agradezco infinitamente.

Saludos cordiales y que tengas el mejor de los días.

Logged
Fabricio Ferrero
Moderator
****
Gender: Male
Argentina Argentina

Posts: 1927


From San Juan, Argentina, to the World!


WWW
« Reply #3 on: November 12, 2008, 11:13:40 pm »

De nada, igualmente para vos!

Cuando necesites ayuda, ya sabes donde buscarla..  Wink


Saludos,
Logged

Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website
Mi red de Rotaractianos:  Rotaract Latino
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.147 seconds with 18 queries.