User Login    
   Register now!

Howtodude.NET / How to clone SmartSection manually

howtodude 4/16 15:13
6
Howtodude.NET > Computers > Internet > CMS > XOOPS

Aim:

SmartSection is a popular content management module for XOOPS, XOOPS Cube and ImpressCMS. If you want to create a copy of SmartSection 2.13, you can use the manual found in the file clone_info.txt which you receive when you download and extract SmartSection. Unfortunately, this is not an option of you can't run commands on your server. Here is a way to clone SmartSection manually.

How to clone SmartSection manually:

Download SmartSection from www.smartfactory.ca and extract it.

Suppose you want to call your new module "StaticContent". First, you rename the folder "smartsection" to "staticcontent".

Go to staticcontent/templates. Here you'll find a number of files with names that start with "smartsection_". Rename these files so that these prefixes are changed in "staticcontent_". For example, the file smartsection_addfile.html will be called staticccontent_addfile.html. If you are finished, go to the folder staticcontent/templates/blocks and repeat this procedure.

Open all files in the folder staticcontent and in all of its subfolders with a text editor. If you want to save yourself a lot of work, do not use Notepad but use and advanced text editor like EditPlus (for Windows). The advantage of such a text editor is that you can use Find and Replace in a number of files simultaneously. Use Find and Replace to make the following changes (and take care that your edits are case sensitive!!!):

  smartsection  => staticcontent  
  SMARTSECTION  => STATICCONTENT
  SmartSection  => StaticContent
  Smart Section => Static Content
  SSECTION      => SCONTENT
  Smartsection  => Staticcontent

Save your files when finished.

You can now install your cloned module like you would install SmartSection.

If you rewrite the URLs  of your smartsection clone, merge the following code with your .htaccess file instead of the code presented in extra/seo/sample.htaccess file:

RewriteEngine On

RewriteRule ^staticcontent\.([a-z]+)\.([0-9.]+)/ modules/staticcontent/seo.php?seoOp=$1&seoArg=$2

# RewriteRule ^ss\.([a-z]+)\.([0-9.]+)/ modules/staticcontent/seo.php?seoOp=$1&seoArg=$2

 

Disclaimer: this howto reflects the personal opinion of the writer.
The comments are owned by the poster. We aren't responsible for their content.
Add YOUR own howtos today!

It's fun, it's free, increase your productivity! Archive your own howtos on Howtodude.NET so that you can access these from everywhere at every time!

Register now!