[siriux theme] How to remove "Download photo in original format "?

Jenny_Machowsky
Jenny_Machowsky's picture

Joined: 2007-04-25
Posts: 3
Posted: Wed, 2007-04-25 12:56

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}

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2007-04-25 13:32

Just remove it all and see what happens.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Jenny_Machowsky
Jenny_Machowsky's picture

Joined: 2007-04-25
Posts: 3
Posted: Wed, 2007-04-25 13:52

thx for reply!

when i delete this text from quote photos are not shown in single photo page :(

 
drewactual

Joined: 2007-04-23
Posts: 21
Posted: Wed, 2007-04-25 16:09

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}...

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2007-04-25 17:07

or
just remove what you don't want

{g->text text="Download %s in original format" arg1=$theme.sourceImage.itemTypeName.1}

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Jenny_Machowsky
Jenny_Machowsky's picture

Joined: 2007-04-25
Posts: 3
Posted: Wed, 2007-04-25 21:00

hi :)
thx for help!

i deleted all:

Quote:
{g->text text="Download %s" arg1=$theme.sourceImage.itemTypeName.1}

and things between <a> </a>

and it works :D

thx very much! <3

 
clairesdenial

Joined: 2006-07-11
Posts: 7
Posted: Sat, 2007-09-22 00:42

Is it okay to do this if you want to use paypal to charge for downloading images?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2007-09-25 06:07
clairesdenial wrote:
Is it okay to do this if you want to use paypal to charge for downloading images?

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

 
giovanni000

Joined: 2009-03-12
Posts: 5
Posted: Thu, 2009-03-12 12:54

I have removed selected from file photo.tpl but it doesnt seem to work? Any idea ?