Shop for high resolution images on demand

Author Message

Ekkehard Dörre

Thursday 20 January 2005 1:29:52 pm

Hi,

I'm working on a stock photo shop.

You can see low resolution images. First thumbs then 400*400px. Put it into basket, then checkout. Then after paying an invoice (1. way) or paying with credit card (2. way) you can download the high resolution picture.

So the shop owner can 1. give access manually or 2. automatically after credit card paying was successful.

I think this is possible with Handler=ezfilepasstrough
Stop "Stolen Link" from other site
and http://ez.no/community/contribs/hacks/stop_stolen_link_from_other_site

and with Download module extension
http://ez.no/community/contribs/examples/download_module_extension
Any ideas, tips and tricks, how to do this with ez?

Thanks and greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Ekkehard Dörre

Thursday 20 January 2005 1:35:27 pm

Handler=ezfilepasstrough for original images works:

gallery/override/templates/full/image.tpl


<a href={concat( 'content/download/', $node.object.data_map.image.contentobject_id, '/', $node.object.data_map.image.id, '/file/', $node.object.data_map.image.content.original_filename|urlencode )|ezurl}>
{$node.object.data_map.image.content.original_filename|wash( xhtml )}
</a>

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:22:54
Script start
Timing: Jan 18 2025 19:22:54
Module start 'layout'
Timing: Jan 18 2025 19:22:54
Module start 'content'
Timing: Jan 18 2025 19:22:55
Module end 'content'
Timing: Jan 18 2025 19:22:55
Script end

Main resources:

Total runtime0.7477 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0104 589.1641152.6406
Module start 'layout' 0.01040.0027 741.804739.4766
Module start 'content' 0.01310.7331 781.2813493.7344
Module end 'content' 0.74620.0014 1,275.015612.1250
Script end 0.7477  1,287.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4686160.0002
Check MTime0.00140.1852160.0001
Mysql Total
Database connection0.00130.169910.0013
Mysqli_queries0.681891.1824520.0131
Looping result0.00090.1192500.0000
Template Total0.700593.720.3502
Template load0.00210.284920.0011
Template processing0.698393.392620.3492
Template load and register function0.00010.013110.0001
states
state_id_array0.00240.315610.0024
state_identifier_array0.00150.202920.0008
Override
Cache load0.00170.2310210.0001
Sytem overhead
Fetch class attribute can translate value0.00050.070210.0005
Fetch class attribute name0.00130.171630.0004
XML
Image XML parsing0.00060.075710.0006
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00090.1173160.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs