The thing about client files

From Sohowiki
Revision as of 16:40, 9 January 2014 by Cameron Allen (Talk | contribs)
Jump to: navigation, search

This only applies to Pro versions earlier than 4.9.4 r25. In Pro v4.9.4 26+ and Ultra v1.0+ only the /sohoadmin/client_files/ location needs to be changed.

If you're a developer and you're trying to edit any pgm-*.php files in the document root folder or shopping folder, keep in mind that these files include a file in one of the following locations.

Docroot Location... (These files include the master files, do not edit these files) Master Location for Files (edit these files)
public_html public_html/sohoadmin/client_files/base_files

public_html/sohoadmin/client_files/photo_album public_html/sohoadmin/client_files/secure_login public_html/sohoadmin/client_files/statistics public_html/sohoadmin/client_files/calendar

public_html/media public_html/sohoadmin/client_files/demo_include
public_html/subscription public_html/sohoadmin/client_files/newsletter
public_html/shopping public_html/sohoadmin/client_files/shopping_cart

Copied over at log-in

When you log-in to manage your website with Soholaunch Pro Edition, the files in these directories get copied from the master location to their docroot location. This is done to make sure you've logged-in once after doing a version update to give any associated database update routines, etc. a chance to do their thing before your website starts running off of the new runtime code and potentially requiring such updates to function properly.

How to work on these files

You can approach modification of these files a couple of different ways.

Recommended way... Work on the the copy of the file in the docroot location. That way you just have to upload it and refresh to see your changes applied. Just make sure that you don't log-in to the Soholaunch admin tool while you're working on it because the original master will get copied to the docroot location as normal and over-write your modified file. Then when you're done with your modification upload your modified copy to overwrite the master file in client_files.

Personal tools