Moving "CMS MADE SIMPLE" Website
- short tutorial - How To Move a CMS MADE SIMPLE website
- does not cover already installed and configured plug-ins
- take care of your own changes in your source code added (plug-ins, templates or ... the core :))
1) Preparation:
Have your website and database restored to new location.
Have your details of mysql database:
-hostname
-database name
-username (to access database)
-password (to access database)
-Backup database from old location in a file. Take care of its size because on new location may be size restriction. Do not include name of database (do no check 'add drop database statement')
-Restore database in new location as it was in the old location.
2) Edit configuration file.
It is: /lib/config.functions.php
Look for the following lines and change details according to your real details
$database_server = 'host ip or name';
$database_user = 'database username';
$database_password = 'password';
$dbase = 'database name';
After you have done changes do not forget to save.
Will be completed. Come back to check.
3) Note:
a) Captcha module
If you move website you may get the following error message:
No Truetypefont available for the CaptchaClass.
When you uninstall and install captcha this problem may be be solved. In this case you may have to uninstall all modules which relay on Captcha or you may get different errors later.
A simple way to solve this issue is to access database (using phpMyAdmin for example) and change as following:
-table: siteprefs
-field: Captcha_mapi_pref_font_path
-Write the new absolute path to Captcah fonts.
Save and all wil be just fine.
b) Google Site map module
As it it , it compute the priority based on menu depth. Can be good but not always.Priority should be basd on the relevance of that entry (your web page).
Find in the root of your wwebsite "gsitemap.php"
You can just assign 1 to $rel variable just before the final echo commans.
For example on line 108 you may add $rel=1;
c) If you have already many pages crated, the best way to avoid broken links is to open in a text editor your dumped database. Use Notepad, wordpad or Macromedia for example. Then find and replace any hardcoded "full URL" with the actual one. For example you have in your database http://domani.com/image.jpg and yout website is now at http://new_domain.com. Replace domain with new_domain or with a relative link. This is much better.
Normaly, this CMS deals very with this issue but it cannot correct input mistakes. Wordpress has problem fro this point of view.3) Modules and coding

b) cms_selflink builtin function
If you wish to have an image and not name of page for Prev/Next page or does not matter where you use internal link then a small change into plugins/function.cms_selflink.php file solve the problem.
Look for line #341 or look for "// end of next-prev code"
After this line add the followin code:

To be able to take advantage of this you have to send a new parameter and only this parameter:vodret="url"
Any other may not be considered.
Here it is how to use it, an example:

Note: All functionalities of basic function ar unchanged
c) SEO issue - Title,Menu Text and Apge Alias
- Title
CMS: CMS MADE SIMPLE
