How to remove the 'Download Photo' link...
|
slawdog
![]()
Joined: 2008-08-07
Posts: 4 |
Posted: Thu, 2008-08-07 20:29
|
|
Ok, I'm sorry if this is some where in the forum but I'm unable to locate it nor can I find a way to remove this. I'm running Gallery 2.0 I'm not sure on what release. Thanks and sorry if I have missed this someplace in the forum or documents. Mark |
|
| Login or register to post comments |


Posts: 16320
I don't have a G2.0 install to see a download photo link so can't offer much help.
What is the real version? Site admin -> maintenance version info.
What theme are you using?
URL?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 4
I have gallery Version 2.2.4 core 1.2.06
and the theme I'm using is siriux
you can view it at www.foleyfocus.com/gallery (If you don't put the gallery part you will go to the wordpress page, and there is a link to gallery there also, but if you want the gallery only use the link above)
Posts: 16320
Edit gallery2/themes/siriux/templates/photo.tpl
remove
{* Download *} {if !empty($theme.sourceImage) && (count($theme.imageViews) > 1 || $theme.sourceImage.mimeType != $theme.item.mimeType)} <p> {if $theme.sourceImage.mimeType != $theme.item.mimeType} <a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.item.id`"}"> {g->text text="Download %s in original format" arg1=$theme.sourceImage.itemTypeName.1} {else} <a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.sourceImage.id`"}"> {g->text text="Download %s" arg1=$theme.sourceImage.itemTypeName.1} {/if} {if !empty($theme.sourceImage.width)} {g->text text="(%dx%d)" arg1=$theme.sourceImage.width arg2=$theme.sourceImage.height} {/if} </a> </p> {/if}Save as gallery2/themes/siriux/templates/local/photo.tpl
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 4
Dave,
Thank you very much for your help... that did it.
However, I have a new error I don't know how to fix.
When you visit one the images, the right side bar is now overlaping please advise if you can. http://www.foleyfocus.com/wordpress/wpg2?g2_itemId=175
and it was not doing this before. I included the photo.tpl file.
Mark
Posts: 16320
You or your editor changed the file more than just removing the stuff I told you to remove.
Revert the changes ( just delete the file in the local directory ) and see if that fixes it.
Then try your customizations again.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 4
Hey Dave,
Here's the odd thing, it looks great in IE6 but when you view the gallery page in IE7 or Firefox it has the issue, and it has the same issue with and without the edited file.
And I don't know how to fix that at all.
Thanks for your help with getting the download link gone, big plus.
Thanks again,
Mark