DappSocial DevLog #3: How to install

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]

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 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

Main resources:

Total runtime0.1342 sec
Peak memory usage6,144.0000 KB
Database Queries43

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.8125152.6406
Module start 'layout' 0.00650.0035 742.453139.4844
Module start 'content' 0.00990.1229 781.9375409.3516
Module end 'content' 0.13280.0014 1,191.289120.9531
Script end 0.1342  1,212.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00292.1769150.0002
Check MTime0.00120.9014150.0001
Mysql Total
Database connection0.00090.692910.0009
Mysqli_queries0.042131.3974430.0010
Looping result0.00030.2137410.0000
Template Total0.104077.520.0520
Template load0.00201.490020.0010
Template processing0.102075.967220.0510
Template load and register function0.00010.071610.0001
states
state_id_array0.00070.552710.0007
state_identifier_array0.00070.514220.0003
Override
Cache load0.00191.42751010.0000
Sytem overhead
Fetch class attribute name0.00664.948930.0022
class_abstraction
Instantiating content class attribute0.00000.004330.0000
General
dbfile0.00060.4412100.0001
String conversion0.00000.011040.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.tplblog_entry/full.tplextension/community_design/design/suncana/override/templates/blog_entry/full.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
18content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
14content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
12content/datatype/view/ezxmltags/td.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/td.tplEdit templateOverride template
11content/datatype/view/ezxmltags/tr.tpl<No override>extension/community/design/community/templates/content/datatype/view/ezxmltags/tr.tplEdit templateOverride template
1content/datatype/view/ezxmltags/table.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/table.tplEdit templateOverride template
1content/datatype/view/ezkeyword.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezkeyword.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 65
 Number of unique templates used: 11

Time used to render debug report: 0.0002 secs