to create groups,is this a good method?

Author Message

kevin wei

Thursday 05 January 2006 3:33:31 am

i want to do such thing:

registered user can create a group, actually is a folder . any user can submit posts under this folder,and any user can reply it,just like a forum.

there is a button, other user can join this group, just click it. i create a new datatype: Jion.include field: user name,group id,

when a user click button, system will create a node of 'Jion',user name is current_user, group id is the forlder id.

so next time, when this user enter in to this group, i will check if there a join recorder under this group, if yes,show a button "quit this group", else show "join this group"

when he click 'quit this group', system will delete the join recorde in backend.

and in this group ,i will show the number of joined by statics the count of 'Join' .

more, maybe these are 100+ groups, and this user join 10+ groups, there are one page called 'My group', will show latest post in these 10+ groups which he joined.
(Question: how to figure out which group he attended? )

i have a method, when a user register, the system automatic create a forder under member(this was created by me before),the name is the user_id, then everytime he join a group, the same 'join' recoeder is post to Group and the forlder: member/user_id/

so just statics the recorder user member/user_id/, we can know how many group he attend, and to list the latest post under these group easily.
(Question, how to post to 2 folder at the same time)

is there good suggest to implement this idea?????

thx!

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

Main resources:

Total runtime1.0533 sec
Peak memory usage8,192.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.1484151.2109
Module start 'layout' 0.00480.0036 739.3594220.6875
Module start 'content' 0.00841.0440 960.04694,146.3203
Module end 'content' 1.05240.0008 5,106.36727.8438
Script end 1.0533  5,114.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3185160.0002
Check MTime0.00120.1175160.0001
Mysql Total
Database connection0.00060.056010.0006
Mysqli_queries0.978892.9310460.0213
Looping result0.00040.0370440.0000
Template Total0.996894.620.4984
Template load0.00190.176220.0009
Template processing0.994994.457520.4975
Template load and register function0.00170.163910.0017
states
state_id_array0.00160.148710.0016
state_identifier_array0.00190.184620.0010
Override
Cache load0.00150.1394170.0001
Sytem overhead
Fetch class attribute can translate value0.00190.175710.0019
Fetch class attribute name0.00210.203610.0021
XML
Image XML parsing0.00020.014410.0002
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00140.1302100.0001
String conversion0.00000.000640.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs