By Joao Mimoso on Monday, 28 September 2015
Posted in General Issues
Replies 5
Likes 0
Views 403
Votes 0
Hi there,

i need to create an album an set it as a CORE album so everyone who gets registered automatically has it.

How can i achieve this? (even if i have to hack the code )
Hi Joao,

You can find the algorithm inside /media/com_easysocial/apps/fields/user/avatar/avatar.php at method @createAvatar and /media/com_easysocial/apps/fields/user/cover/cover.php at method @saveCover.

By the way do note that this customization takes quite a bit of time and unfortunately we would not be able to further assist you with this as per our support policy, http://stackideas.com/support . If this is a priority, please do post them on our sales section at https://crm.stackideas.com and our sales department would get back to you with a proper quote.
·
Tuesday, 29 September 2015 12:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Joao,

I am sorry but I'm afraid it is not possible to achieve this even with some hack on the easysocial code.
·
Monday, 28 September 2015 16:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Ezrul,

not possible even with hack code..? How come? Sorry but i cannot accept that answer.

I just need to know..where the 2 Core albuns are asssigned (Avatar Photos and Cover Photos) when a user subscribes to the site. Please guide me to the correct file...and from there...i will do the rest.
·
Monday, 28 September 2015 19:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi guys,

this is just an update to inform that i already have accomplished what i needed. (and i have one more question regarding the new version ES 1.4)

I just had to alter 3 files in 3 specifc places.

com_easysocial\media\com_easysocial\apps\fields\user\cover\cover.php
->> i created a new function which evokes a function in the helper.php

com_easysocial\media\com_easysocial\apps\fields\user\cover\helper.php
->> in here i instanciate a Album Model and evoke the getDefaultAlbum function

com_easysocial\com_easysocial_administrator\models\albums.php
->> in here i define a new type of album and set a title and a description

And that's it... the saveCover function in the cover.php creates automaticly the new album for each user that registers


Although this can be improved, for now its ok. My question is... since i altered this 3 core files...whenever i upgrade ES this files will be overrided... how can i prevent the override?
·
Friday, 23 October 2015 17:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Joao,

I'm sorry but you can't prevent override those file. You can only prevent override if it is a theme files by using this method: http://stackideas.com/docs/easysocial/administrators/templating/template-overrides
·
Friday, 23 October 2015 17:54
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post