Tuesday 14 June 2011 9:40:47 am
By : Thiago Campos Viana
In this blog post I will show how to install the extension.
The project is available on github, please note that it is an extension for eZ flow and requires a minimum knowledge about the platform, who has no experience with the system it is recommended to join the eZ publish community.
After you install eZ publish with eZ flow and download dappsocial extension, some steps are necessary to be able to use the features of this extension:
1. Copy dappsocial into 'extension' folder
2. Run the mysql scipts:
* extension/dappsocial/sql/mysql/schema.sql
* extension/dappsocial/sql/common/democontent.sql
3. Activate dappsocial
In administrator user interface, click 'setup' tab->'extensions' menu, select 'dappsocial', click button 'Apply Changes'.
or in settings/override/site.ini.append.php, add acivation configuration under "ExtensionSettings" section:
[ExtensionSettings]
ActiveExtensions[]=dappsocial
4. Regenerate autoloads
In administrator user interface, click 'setup' tab->'extensions' menu, click button 'Regenerate autoload arrays for extensions',
or in eZ Publish installation folder, run "php bin/php/ezpgenerateautoloads.php -e"
5. Clear cache
Clear INI and template caches. (from admin 'Setup' tab or commandline)
6. Add 'Relationship' datatype to 'User' content class.
In administrator user interface, click 'setup' tab->'Classes'. Select 'Users' in the class group list. Click the edit button.
In the user class. Add the 'Relationship' attribute, choose a name for it.
Also check "Container" option of the User class, so it will be possible to create objects inside the user account node.
7. Add dappsocial packages: 'Setup'->'Packages'->'Import new package'. Upload all dappsocial packages ( extension/dappsocial/packages/* ).
8. Change your override settings, copy the contents of the following file: extension/dappsocial/settings/override.ini.append.php-RECOMMENDED.
Paste to the beggining of the file: settings/siteaccess/[front-end-siteaccess]/override.ini.append.php
9. Create the CreateUserExtras workflow: 'Workflows'->'Standard'->'New workflow'->'Create UserExtras' ( name Create UserExtras ).
10. Setup CreateUserExtras trigger: 'Triggers'-> 'content-publish-after' ( choose CreateUserExtras ). Apply changes. Now the system will create user subnodes after the publication of the user object.
11. Change member user permissions (User->Roles and policies):
Module | View | Permission |
Content | Create | Class( Blog post ) , ParentOwner( Self ) , ParentClass( Blog ) |
Content | Create | Class( Event ) , ParentOwner( Self ) , ParentClass( Event calendar ) |
Content | Create | Class( Image ) , ParentOwner( Self ) , ParentClass( Gallery ) |
Content | Create | Class( Unity ) , ParentOwner( Self ) , ParentClass( Unity Folder ) |
Content | Create | Class( Image ) , ParentOwner( Self ) , ParentClass( Gallery ) |
Content | Create | Class( Obj ) , ParentOwner( Self ) , ParentClass( Obj Folder ) |
Ezoe | Editor | No limitations |
Content | Remove | Class( Blog post , Image , Event , Unity , Obj ) , Owner( Self ) |
Content | Edit | Class( Comment , Blog post , Image , Forum topic , Forum reply , Event , Unity , Obj ) , Section( Standard , Users ) , Owner( Self ) |
Content | Read | Subtree( Members ) * |
*Could be given to anonymous user.
12. If your site already has registered members, open the command line, go to eZ Publish installation folder, run "php extension/dappsocial/bin/php/userextras.php", so it will create all user extras objects.
13. Create a link content object in the site root node and link it to users/members node.
If you are using virtual hosts please change your .htaccess and include this line to allow modelviewer file access:
RewriteRule ^extension/dappsocial/design/ezflow/unity/objViewer.unity3d - [L]
Timing: | Jan 18 2025 02:16:46 |
Script start | |
Timing: | Jan 18 2025 02:16:46 |
Module start 'layout' | |
Timing: | Jan 18 2025 02:16:46 |
Module start 'content' | |
Timing: | Jan 18 2025 02:16:47 |
Module end 'content' | |
Timing: | Jan 18 2025 02:16:47 |
Script end |
Total runtime | 0.1342 sec |
Peak memory usage | 6,144.0000 KB |
Database Queries | 43 |
Checkpoint | Start (sec) | Duration (sec) | Memory at start (KB) | Memory used (KB) |
---|---|---|---|---|
Script start | 0.0000 | 0.0065 | 589.8125 | 152.6406 |
Module start 'layout' | 0.0065 | 0.0035 | 742.4531 | 39.4844 |
Module start 'content' | 0.0099 | 0.1229 | 781.9375 | 409.3516 |
Module end 'content' | 0.1328 | 0.0014 | 1,191.2891 | 20.9531 |
Script end | 0.1342 | 1,212.2422 |
Accumulator | Duration (sec) | Duration (%) | Count | Average (sec) |
---|---|---|---|---|
Ini load | ||||
Load cache | 0.0029 | 2.1769 | 15 | 0.0002 |
Check MTime | 0.0012 | 0.9014 | 15 | 0.0001 |
Mysql Total | ||||
Database connection | 0.0009 | 0.6929 | 1 | 0.0009 |
Mysqli_queries | 0.0421 | 31.3974 | 43 | 0.0010 |
Looping result | 0.0003 | 0.2137 | 41 | 0.0000 |
Template Total | 0.1040 | 77.5 | 2 | 0.0520 |
Template load | 0.0020 | 1.4900 | 2 | 0.0010 |
Template processing | 0.1020 | 75.9672 | 2 | 0.0510 |
Template load and register function | 0.0001 | 0.0716 | 1 | 0.0001 |
states | ||||
state_id_array | 0.0007 | 0.5527 | 1 | 0.0007 |
state_identifier_array | 0.0007 | 0.5142 | 2 | 0.0003 |
Override | ||||
Cache load | 0.0019 | 1.4275 | 101 | 0.0000 |
Sytem overhead | ||||
Fetch class attribute name | 0.0066 | 4.9489 | 3 | 0.0022 |
class_abstraction | ||||
Instantiating content class attribute | 0.0000 | 0.0043 | 3 | 0.0000 |
General | ||||
dbfile | 0.0006 | 0.4412 | 10 | 0.0001 |
String conversion | 0.0000 | 0.0110 | 4 | 0.0000 |
Note: percentages do not add up to 100% because some accumulators overlap |
Usage | Requested template | Template | Template loaded | Edit | Override |
---|---|---|---|---|---|
1 | node/view/full.tpl | blog_entry/full.tpl | extension/community_design/design/suncana/override/templates/blog_entry/full.tpl | ||
2 | content/datatype/view/ezxmltext.tpl | <No override> | extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tpl | ||
3 | content/datatype/view/ezxmltags/link.tpl | <No override> | design/standard/templates/content/datatype/view/ezxmltags/link.tpl | ||
18 | content/datatype/view/ezxmltags/paragraph.tpl | <No override> | extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tpl | ||
14 | content/datatype/view/ezxmltags/strong.tpl | <No override> | design/standard/templates/content/datatype/view/ezxmltags/strong.tpl | ||
1 | content/datatype/view/ezxmltags/line.tpl | <No override> | design/standard/templates/content/datatype/view/ezxmltags/line.tpl | ||
12 | content/datatype/view/ezxmltags/td.tpl | <No override> | design/standard/templates/content/datatype/view/ezxmltags/td.tpl | ||
11 | content/datatype/view/ezxmltags/tr.tpl | <No override> | extension/community/design/community/templates/content/datatype/view/ezxmltags/tr.tpl | ||
1 | content/datatype/view/ezxmltags/table.tpl | <No override> | design/standard/templates/content/datatype/view/ezxmltags/table.tpl | ||
1 | content/datatype/view/ezkeyword.tpl | <No override> | extension/community_design/design/suncana/templates/content/datatype/view/ezkeyword.tpl | ||
1 | print_pagelayout.tpl | <No override> | extension/community/design/community/templates/print_pagelayout.tpl | ||
Number of times templates used: 65 Number of unique templates used: 11 |
Time used to render debug report: 0.0002 secs