четвъртък, 13 декември 2012 г.

How to manually install an App

First of all, we have designed one-click app install feature in Sharetronix 3.0. So, if you want to install an app you just have to go in Administration->Apps and choose the app you want to install, then click on the "Install" button. 
To uninstall an  app you just have to found it in the Apps section in the administration panel and click the "Uninstall" button.

Manual Installation

However, there is no problem to install an app manually. And here i will share with you the steps to do this.

1. Go to our appstore  and choose the app you want to install.

2. Click on the "Download" button in the app's page to get the .zip archive containg the source code of the app.

3. Extract the .zip archive, the extracted files should be located in a folder with the App's name(eg. appname.zip => appname folder).

4. Upload this folder to your web host in the ./apps folder in your Sharetronix directory. eg.
./apps/
   appname
   ...
   anotherappname
   ...

5. Go to ./system/cache_html folder in your Sharetronix directory and delete all files in it.

6. Go to your database management tool and open your sharetronix database to insert installation data for the new plugin.

7. Select the "plugins" table in it and insert a new row.
name - the name of the plugin, it MUST be the same as your plugin folder name (uploaded in ./apps)
is_installed - 1
date_installed - some integer value, eg. 1, eg. 3123123, eg. 12312
installed_by_user_id - enter 1 or your user id in the community

8.Select the "plugins_cache" table and TRUNCATE this table(delete all rows in it).

9. Check if there is a file named "Installer.php" in your app's folder. If there is you should check what database changes it performs and do it manually. Then add these changes in "plugins_tables" table in the database(if the app creates a table you should add this table name in it).

10. That's it. Go to your community URL and refresh the page.

Manual Uninstall

It is the same as installation but, but backwards.

1. Delete your apps folder in ./apps
2. Delete all files in ./system/cache_html
3. Delete your app's row in "plugins" table in the Database
4. Delete all contents in the "plugins_cache" table in the Database
5. Check to see if there is a row with your app name in the "plugins_installed" table in the database.
6. Check to see if there is a row with your app name in the "plugins_tables" table in the database.
7. That's all. Refresh your community URL.



2 коментара: