Uploading fotos by users

Author Message

Semen Shekhovtsov

Tuesday 29 August 2006 2:34:58 pm

Is there any ways to make an instrument on any panel of "User site" to allow users upload fotos like admin.

Pascal von Büren

Wednesday 30 August 2006 12:45:34 am

Hi,

there's an useful article in the "Tips & Tricks" Section in the old (deprecated) documentation:
http://ez.no/products/ez_publish/documentation/customization/tips_tricks/editing_creating_and_removing_content_from_the_user_page

But to give you specific help, you should describe your intentions more clearly, as there are some cliffs you need to keep in mind.

Do you want your users to have their own "album folders" or just one big <i>picdump</i>?

Semen Shekhovtsov

Wednesday 30 August 2006 4:05:00 am

just one big picdump

Semen Shekhovtsov

Thursday 31 August 2006 10:51:37 am

Into witch template should i insert:

{section show=count($node.object.can_create_class_list)}
<form method="post" action={"/content/action"|ezurl}>
<input type="hidden" name="NodeID" value="{$node.node_id}" />
<select name="ClassID">
{section var=class loop=$node.object.can_create_class_list}
<option value="{$class.id}">{$class.name|wash}</option>
{/section}

<input type="submit" name="NewButton" value="{'Create here'|i18n('design/standard/node/view')}" />
</form>
{/section}

Norman Leutner

Friday 01 September 2006 7:08:00 am

Depends on where you want the button to be displayed....

At first you need to edit the user roles and give the user the right to create images.
Then take a look at the attribute_view_gui within the documentation and create your own edit template.

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

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

Main resources:

Total runtime0.4925 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 587.9375152.6250
Module start 'layout' 0.00440.0021 740.562539.4453
Module start 'content' 0.00650.4846 780.0078598.6406
Module end 'content' 0.49110.0014 1,378.648412.1641
Script end 0.4924  1,390.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.6208160.0002
Check MTime0.00120.2387160.0001
Mysql Total
Database connection0.00070.143410.0007
Mysqli_queries0.441889.7091650.0068
Looping result0.00060.1124630.0000
Template Total0.468895.220.2344
Template load0.00180.373420.0009
Template processing0.467094.828420.2335
Template load and register function0.00020.034710.0002
states
state_id_array0.00060.131310.0006
state_identifier_array0.00080.166320.0004
Override
Cache load0.00160.3236310.0001
Sytem overhead
Fetch class attribute can translate value0.00070.140730.0002
Fetch class attribute name0.00120.245770.0002
XML
Image XML parsing0.00120.253230.0004
class_abstraction
Instantiating content class attribute0.00000.002970.0000
General
dbfile0.00200.3992220.0001
String conversion0.00000.000940.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
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs