Blogs / Thiago Campos Viana / DappSocial DevLog #3: How to install

DappSocial DevLog #3: How to install

Tuesday 14 June 2011 9:40:47 am

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

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]

eZ debug

Timing: Jan 18 2025 00:05:09
Script start
Timing: Jan 18 2025 00:05:09
Module start 'content'
Timing: Jan 18 2025 00:05:09
Module end 'content'
Timing: Jan 18 2025 00:05:09
Script end

Main resources:

Total runtime0.2649 sec
Peak memory usage6,144.0000 KB
Database Queries186

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.9531180.8281
Module start 'content' 0.00600.1175 769.7813436.9453
Module end 'content' 0.12350.1414 1,206.7266413.8672
Script end 0.2648  1,620.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00431.6148210.0002
Check MTime0.00160.6210210.0001
Mysql Total
Database connection0.00060.208410.0006
Mysqli_queries0.149756.52481860.0008
Looping result0.00220.83621840.0000
Template Total0.232387.720.1162
Template load0.00260.964220.0013
Template processing0.229886.745420.1149
Template load and register function0.00010.041110.0001
states
state_id_array0.00210.798110.0021
state_identifier_array0.00190.731220.0010
Override
Cache load0.00240.90661010.0000
Sytem overhead
Fetch class attribute name0.00220.829830.0007
Fetch class attribute can translate value0.00050.203510.0005
class_abstraction
Instantiating content class attribute0.00000.003930.0000
XML
Image XML parsing0.00030.109210.0003
General
dbfile0.00271.0024220.0001
String conversion0.00000.001930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 65
 Number of unique templates used: 11

Time used to render debug report: 0.0001 secs