Give user other rights...

Author Message

Jerry Jalava

Friday 18 July 2003 4:09:28 am

Hi,

I'd like to know what would be the best way to archive this:
When users register to the site, their account goes to user group "Registered" and if they want they can by additional features in the site, so when they have paid their user info moves from "registered" to "Paid" user group... Both of the groups have different roles and permissions.

Now I just need to know what would be the best way to move the user data from group to another...
Workflow? (Not very familiar) Module? PHP? (This one would be easy, if eZ would support PHP better...)

Thanks,
Jerry

Bård Farstad

Friday 18 July 2003 4:43:05 am

eZ publish is written in PHP. How can eZ publish support PHP better? You have the full source code in PHP also.

BTW: What you are describing can be done with workflows after payment in the shopping module. And yes, workflows are programmed in PHP. We actually use this here on ez.no.

--bård

Documentation: http://ez.no/doc

Jerry Jalava

Friday 18 July 2003 8:02:06 am

Hi Bård,

What I meant about supporting PHP "better" was easier use in templates... ;)

But thanks for your answer, I try to study the workflows...

Regards,
Jerry

Bård Farstad

Friday 18 July 2003 10:08:49 am

Ok, the way to use PHP in templates is via operators. We could have added a function like {php} {/php}, but we will not do that. This goes against our software philosophy.

--bård

Documentation: http://ez.no/doc

Alex Jones

Friday 18 July 2003 11:33:38 am

Jerry, you may want to check out this related thread: http://ez.no/developer/ez_publish_3/forum/general/php_support_in_templates

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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 30 2025 21:43:53
Script start
Timing: Jan 30 2025 21:43:53
Module start 'layout'
Timing: Jan 30 2025 21:43:53
Module start 'content'
Timing: Jan 30 2025 21:43:54
Module end 'content'
Timing: Jan 30 2025 21:43:54
Script end

Main resources:

Total runtime0.8150 sec
Peak memory usage8,192.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.0234151.1953
Module start 'layout' 0.00700.0046 739.2188220.6563
Module start 'content' 0.01160.8024 959.87504,505.4922
Module end 'content' 0.81400.0009 5,465.367211.8672
Script end 0.8150  5,477.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4595160.0002
Check MTime0.00130.1578160.0001
Mysql Total
Database connection0.00120.151210.0012
Mysqli_queries0.721388.5075650.0111
Looping result0.00060.0793630.0000
Template Total0.762393.520.3812
Template load0.00200.240820.0010
Template processing0.760393.291320.3802
Template load and register function0.00160.194210.0016
states
state_id_array0.00100.119010.0010
state_identifier_array0.00180.223620.0009
Override
Cache load0.00170.2030290.0001
Sytem overhead
Fetch class attribute can translate value0.00170.206530.0006
Fetch class attribute name0.00190.237070.0003
XML
Image XML parsing0.00110.136230.0004
class_abstraction
Instantiating content class attribute0.00000.002380.0000
General
dbfile0.00100.1251230.0000
String conversion0.00000.001140.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs