Home Services Solutions Products How To ContactCall Free : 1300 451 454
» CMS and CRM » cms Made Simple  
Print this page     

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

This CMS is very powerfull. Here it is the start of unlishing small part of what it can do.

a) Managing content
There are 4 basic items you must consider:

-templates + stylesheets
Accept (X)HTML code only

-global content blocks
Accept (X)HTML code only

-user defined tags
Accept php and CMS made simple scripting.
The most common example:
You wish to be diplsyed into your template something based on what page is loaded.
Create a user defined tag named 'my_desire' with the following content.

CMS Made simple - Help - Manage content

In between ?> and <?ph you can have anything: images, flash, mettags etc. There is no limit.

Include in template whereever you wish "my_desire" as a user defined tag and see how it wors.

For full manula go to CMS Made Simple website. What is above is juts to open your eyes. Enjoy.


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:

CMS Made simple - self_link 1

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:

 

CMS Made simple - self_link 2

 

Note: All functionalities of basic function ar unchanged

 

c) SEO issue - Title,Menu Text and Apge Alias

 

- Title
It is very important for SEO and for your website as well. It appears in up bar of your website when you load that page

- Menu Text and page allias are used internally by the CMS.
If you use page=, then then any of them can be changed at anytime and will be no problem.
If you use SEO frendly url (.htaccess or just the cmc config file) then you must do not chage any of them after page has been created.
If you did it and you cannot acess that page the best way to get it working is to is to delete and recreate that page.

d) Cart Module

This module is done very well.
A few notes for who wish to improve / change it faster:
- It takes advantage of Standard Defined Classes (StdClass- it means it works only with PHP 5.x)
- At this point v1.01 - does not allow attribute management . The cart is able to manage attribute but you must write source code:
- Cart.Module.php
- action.default.php
- It stores prodcts and quantity in session variable $_SESSION['cgcart']. The variable is innitialised in "function _collapse_cart."
-it is part of a big picture (products, ordr, payment gateway) and all has two main points:
- product table
- $_SESSION['cgcart']
- and of course the core "$this". :))
-transferring product specific details (for example domain name ) in shopping cart:
- send that as parameter using the spefic adding form
- change the two functions: function _collapse_cart($items = array()) and function _add_cart_item($product_id,$quantity,$attributes = array(), $YOUR_NEW_PARAMETER_CUSTOMER _RELATED_WHICH CANNOT_BE_STORED_IN_PRODUCT_TABLE).
For further information or support go to SydneyWebs.com and WebsiteOnDemand.com.au.





CMS: CMS MADE SIMPLE