Pay per publication model in EZ Publish

Author Message

Jan Komárek

Thursday 29 July 2010 3:22:37 pm

Hello,

one of my customers have free ad section  on his site, where users can advertise their used used construction machinery and now he would like to monetize this section of web and give users way how to highlight their advert. Another posibility is that publication of advert will be payed so in this case i think it will be similar

Now my question. I know howt to give users to permission to create their own content like its now. I know how to dont allow them to create content, but I have only a vague idea how to how to let them create content but publish only if they pay. Or how to change advert to highlighted advert if they pay fee. And I am not sure if its correct.

I think I have to do some workflow similar to selling pay per download products  . Am I right?

Soon I will have to do this. So I will be grateful for any advice, link, idea or anything else what could help me.

Best regards,
Vebloud 

Thiago Campos Viana

Thursday 29 July 2010 3:38:26 pm

You could merge the concepts of selling pay per download products with object states tutorial , so you could give the permission to create the objects in a non-published state to the user by default, and then, after user payment, you give the permission to change the state of the node he published to a published state. Or you could just alter the object state after user payment.

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Jan Komárek

Thursday 29 July 2010 4:21:18 pm

Its look like good way to go. Thank you very much.

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 03:09:09
Script start
Timing: Jan 18 2025 03:09:09
Module start 'layout'
Timing: Jan 18 2025 03:09:09
Module start 'content'
Timing: Jan 18 2025 03:09:09
Module end 'content'
Timing: Jan 18 2025 03:09:09
Script end

Main resources:

Total runtime0.7573 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.1484152.6406
Module start 'layout' 0.00590.0035 741.789139.4766
Module start 'content' 0.00940.7458 781.2656547.2344
Module end 'content' 0.75520.0020 1,328.500012.1406
Script end 0.7573  1,340.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4582160.0002
Check MTime0.00140.1894160.0001
Mysql Total
Database connection0.00080.100110.0008
Mysqli_queries0.706293.2555590.0120
Looping result0.00080.1025570.0000
Template Total0.726395.920.3631
Template load0.00200.264020.0010
Template processing0.724395.640020.3621
Template load and register function0.00010.010810.0001
states
state_id_array0.00110.144710.0011
state_identifier_array0.00090.113420.0004
Override
Cache load0.00160.2104200.0001
Sytem overhead
Fetch class attribute can translate value0.00070.095620.0004
Fetch class attribute name0.00170.227750.0003
XML
Image XML parsing0.00070.091520.0003
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00090.1146210.0000
String conversion0.00000.001240.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs