hi
i am changing a bit siriux theme, most of changes i made in .css and admin panel, but I have no idea how to remove "Download photo in original format"
My knowledge about programing , php etc is less than basic, but i found out that info about template with photo is in file - photo.tpl :S
I found there this lines containing "download", but I dont understand anything of this, maybe I need change something here to disable download option :O
Quote:
{* 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}
Posts: 27300
Just remove it all and see what happens.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 3
thx for reply!
when i delete this text from quote photos are not shown in single photo page
Posts: 21
If you is going to whack something, make sure and get all the variables or it will freak out the script. for instance whacking all you have listed may not be a good thing, try just whacking the second {if}...
Posts: 27300
or
just remove what you don't want
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 3
hi
thx for help!
i deleted all:
and things between <a> </a>
and it works :D
thx very much! <3
Posts: 7
Is it okay to do this if you want to use paypal to charge for downloading images?
Posts: 27300
Sure. But you will need to to install and configure the paypal module (that I have never used and can't assist with that)
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 5
I have removed selected from file photo.tpl but it doesnt seem to work? Any idea ?