By Marcus Roskill on Monday, 25 June 2018
Posted in Technical Issues
Replies 24
Likes 0
Views 549
Votes 0
Hi,

I have a message at the top of the Easy Social page " Running on an outdated version of EasySocial which may potentially be exploited by attackers. Please upgrade to the latest version the soonest possible." but the last time I clicked on the Update button, the system over-wrote all my custom CSS - how do I do an upgrade without losing the styling that I have done?

thanks
Marcus
May i know which file you applied those custom css on your site?
·
Monday, 25 June 2018 18:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

template.css in the Prostar template, and style.min.css in the Vortex theme.

thanks
Marcus
·
Monday, 25 June 2018 18:54
·
0 Likes
·
0 Votes
·
0 Comments
·
The Easysocial update will not override your template template.css but it will override Easysocial core file e.g. this style.min.css .

Actually you can move your custom css into your site backend > Easysocial > theme > custom css area (screenshot : http://take.ms/Sg7D2 )

So it will not override your custom css when you update next Easysocial version in the future.
·
Monday, 25 June 2018 19:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

OK, so I did the upgrade, BUT
we have lost some of the CSS, but will come back to that - and we also lost the public_html\language\en-GB\en-GB.com_easysocial.ini (fortunately we had a backup)
But what is concerning me most is all the other files in the public_html\language\en-GB\ folder that have today's date, particularly the Event files, have we lost all our customisations there?

Today's upgrade has already cost 2 people x 3 hours - if we have to do this every month it will be a nightmare!

thanks
Marcus
·
Monday, 25 June 2018 21:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Marcus,

You should not modify the files in /language/en-GB/ . Instead, you should add your changes into Joomla overrides which is in /language/overrides/en-GB.override.ini

This is the override file which Joomla will render.
·
Monday, 25 June 2018 21:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Aha! I knew there would be a way - there is a notice about Joomla upgrade today, do I need to move config files elsewhere before doing that?

thanks
Marcus
·
Wednesday, 27 June 2018 17:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Marcus,

May i know which config files you referring?

If you doesn't modify any changes from your site Joomla core file, it shouldn't override your existing Joomla side setting when you perform Joomla update.
·
Wednesday, 27 June 2018 18:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi guys

Looking to upgrade both Joomla and EasySocial,

Can you let me know what exactly gets overwritten so I don't end up losing changes etc on upgrade?

Thanks a lot,
Katie
·
Tuesday, 07 August 2018 16:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Katie,

Regarding Easysocial update, as long as you didn't modify any file under this following Easysocial folder, it will not override your changes.

JoomlaRootFolder/administrator/components/com_easysocial/...
JoomlaRootFolder/components/com_easysocial/...
JoomlaRootFolder/media/com_easysocial/...
JoomlaRootFolder/modules/...
JoomlaRootFolder/plugins/...


For the Joomla update, i am not really sure about it which file will get updated after update Joomla latest version.

It would be best if you can setup one of the staging site then try upgrade your staging site to latest version of Joomla and Easysocial, so you will not lost your customisation on your live site, if everything work correctly, you can only update it from your live site.
·
Tuesday, 07 August 2018 19:21
·
0 Likes
·
0 Votes
·
0 Comments
·
And if I have modified these files how do I stop them getting overridden every time I update EasySocial, as this happens quite a lot?

Thanks,
Katie
·
Tuesday, 07 August 2018 22:01
·
0 Likes
·
0 Votes
·
0 Comments
·
.
·
Tuesday, 07 August 2018 22:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Katie,

Currently I do not know which file you modified before, it would be best if you can consult with your developer regarding this and show a list of these file path which file your site developer modified before so we can share you some opinion whether that is possible to avoid this or not.

Because if your site developer only modified under the theme file area e.g. JoomlaFolder/components/com_easysocial/themes/xxx/... , then you can put these customisation file override into your current template.
·
Wednesday, 08 August 2018 10:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

We have made customisation in lots of files, we are the developers of the website.

We have added content to the menu bar, we've added content in sidebars etc. This is not CSS code, this is editing the PHP files which you cannot include in the front end like we do for the CSS.

What do you suggest we do so these files are not overridden every time we upgrade?

Thanks
Katie
·
Wednesday, 08 August 2018 16:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Since you are the developers of that website, perhaps you can share with us at least one of the PHP file path so I can better understand which PHP file you modified before?

The reason why i keep asking this is because :

For example :
1. If you add something in the Easysocial toolbar regarding this PHP file JoomlaFolder/components/com_easysocial/themes/wireframe/toolbar/default.php , then you can use template override method to store this customisation file into your current template directory folder.
e.g. JoomlaFolder/components/com_easysocial/themes/wireframe/...

2. If you modify something in the function file like JoomlaFolder/components/com_easysocial/views/dashboard/view.html.php , unfortunately that is not possible to keep your changes during update.
·
Wednesday, 08 August 2018 16:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

For the menu items we edited the public_html/components/com_easysocial/themes/breeze/toolbar/default.php file
For the category links on the group pages we edited public_html/components/com_easysocial/themes/wireframe/groups/item/default.php

Thanks
Katie
·
Wednesday, 08 August 2018 17:38
·
0 Likes
·
0 Votes
·
0 Comments
·
public_html/components/com_easysocial/themes/breeze/toolbar/default.php
public_html/components/com_easysocial/themes/wireframe/groups/item/default.php

Regarding these PHP file, that is possible to use template override method to override these modification file into your current template directory folder.

public_html/components/com_easysocial/themes/breeze/toolbar/default.php

Override in this file location : public_html/templates/yourCurrentTemplate/html/com_easysocial/toolbar/default.php

public_html/components/com_easysocial/themes/wireframe/groups/item/default.php

Override in this file location : public_html/templates/yourCurrentTemplate/html/com_easysocial/groups/item/default.php

For these new folder you have to manually create it.
·
Wednesday, 08 August 2018 17:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

How do I implement the template override?

Thanks
Katie
·
Wednesday, 08 August 2018 18:00
·
0 Likes
·
0 Votes
·
0 Comments
·
1. Create new folder for these 'com_easysocial' and 'toolbar' under public_html/templates/yourCurrentTemplate/html/
- Final path : public_html/templates/yourCurrentTemplate/html/com_easysocial/toolbar/

2. Copy this default.php file from public_html/components/com_easysocial/themes/breeze/toolbar/

3. Paste this default.php file into this file location public_html/templates/yourCurrentTemplate/html/com_easysocial/toolbar/

================================================================================
1. Create new folder for these 'groups' and 'item' under public_html/templates/yourCurrentTemplate/html/com_easysocial/
- Final path : public_html/templates/yourCurrentTemplate/html/com_easysocial/groups/item/

2. Copy this default.php file from public_html/components/com_easysocial/themes/wireframe/groups/item/

3. Paste this default.php file into this file location public_html/templates/yourCurrentTemplate/html/com_easysocial/groups/item/
·
Wednesday, 08 August 2018 22:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

I did what you said and just updated and the menu has changed back to the old menu?

Katie
·
Tuesday, 14 August 2018 17:08
·
0 Likes
·
0 Votes
·
0 Comments
·
May i know which menu you referring?
·
Tuesday, 14 August 2018 18:42
·
0 Likes
·
0 Votes
·
0 Comments
·
1. Create new folder for these 'com_easysocial' and 'toolbar' under public_html/templates/yourCurrentTemplate/html/
- Final path : public_html/templates/yourCurrentTemplate/html/com_easysocial/toolbar/

2. Copy this default.php file from public_html/components/com_easysocial/themes/breeze/toolbar/

3. Paste this default.php file into this file location public_html/templates/yourCurrentTemplate/html/com_easysocial/toolbar/

================================================================================
1. Create new folder for these 'groups' and 'item' under public_html/templates/yourCurrentTemplate/html/com_easysocial/
- Final path : public_html/templates/yourCurrentTemplate/html/com_easysocial/groups/item/

2. Copy this default.php file from public_html/components/com_easysocial/themes/wireframe/groups/item/

3. Paste this default.php file into this file location public_html/templates/yourCurrentTemplate/html/com_easysocial/groups/item/


You sent me this, all of those files I added to the override did not work. Do I need to click a setting in the back-end so the override files are rea?

Thanks
Katie
·
Tuesday, 14 August 2018 19:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Based on what i checked on your site, it seems like your current site do not have any override file for this under your Protostar template, you can check my attached screenshot below.

Is it i looking the wrong website?
·
Tuesday, 14 August 2018 19:51
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post