coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: robino on June 06, 2005, 03:56:53 PM

Title: can i disable the 'display/hide file information' function?
Post by: robino on June 06, 2005, 03:56:53 PM
hello,

using:

cpg 1.3 (bridged to smf wrapped in mambo)

'ipodlounge' theme , see demo here - http://coppermine.sourceforge.net/demo/index.php?theme=ipodlounge

question:

when viewing the photo, there are several further options in the bar at the top - Return to Thumbnail Page, View Slideshow, Send Ecard etc. 

I would like to disable the 'display/hide file information' function.  can this be done?  i have done it with the ecard function. 

Any respose greatly appreciated. 
Title: Re: can i disable the 'display/hide file information' function?
Post by: Nibbler on June 06, 2005, 08:54:12 PM
You can edit the button out of the theme. Look for

// HTML template for the image navigation bar
$template_img_navbar = <<<EOT


in your theme's theme.php and remove the table cell with the icon. Note that the info is still in the HTML source, just not displayed.
Title: Re: can i disable the 'display/hide file information' function?
Post by: robino on June 07, 2005, 05:53:04 AM
thanks very much for that :)

i removed the table cell, but found that that, of course, threw all the aligment out, so what i ended up doing was removing the href stuff and leaving the image call ie the image and cell is still there but it doesnt link to anything. 

So, just in case this can help others, this is exactly what i did:

in theme.php i found

  <td align="center" valign="middle" class="navmenu" width="60">
                        <a href="javascript:;" onClick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="images/info.gif" border="0" align="absmiddle" alt="{PIC_INFO_TITLE}" /></a>
                </td>


and in the end it looked like this

<td align="center" valign="middle" class="navmenu" width="60">
                        <img src="images/info.gif" border="0" align="absmiddle">
                </td>


thanks again nibbler ;)