Cloning SE4 Module

  • Cloning a module is NOT an easy task because you have to do several attempts to make it right and a lots of testing. Below are some tips to help you out from your pain lol.

     

    NOTE : This tutorial sole purpose is to educate new coders how to work on SocialEngine scripts.

     

    1. An old trick of the book used find replace method, you can used any text editor that has the capability to search string in a files and that can replace it, you can try PSPAD download it from

    http://www.brothersoft.com/download-pspad-editor-24977.html

     

    2. Ok now lets try to clone SE4 Blogs, first grab a license copy of SE4 Blogs Module Installer then extract the files to your computer in any folder, after extracting you will notice a folder name module-blogs-4.1.7 and now rename the folder to your liking for example :

     

    module-writtings-4.1.7

     

    3. Lets build our SE4 Writting Module first open your text editor or the PSPAD then look for the option from the menu Search / Replace in Files. Look at the screenshot here for quick understanding.

     

     

     

    4. Doing sequential replacing of strings starting from the these order :

     

        blogs = writtings

     

        blog = writting

     

        Blogs = Writtings

     

        Blog = Writting

     

        BLOGS = WRITTINGS

     

        BLOG = WRITTING

     

    5. Renaming of files and folders do this manually look into each folder with a filename that has the word blog,   for example :

     

      module-blogs-4.1.7\application\languages\en\blog.csv

     

      rename the file to writting.csv

     

      Note : this step is prune to mistake so carefully look into each filename.

     

    6. Tar the module-writtings-4.1.7, this is a bit tricky if you are new in tar linux command.

     

       FTP the folder module-writtings-4.1.7 to your server and then login to the server using SSH , look for the folder you just uploaded, then go inside to the folder and then run this command.

     

     # tar cvf ../module-writtings-4.1.7.tar .

     

       take note of the DOT after the line that is included.

     

       Another option try using Tar for windows

       http://gnuwin32.sourceforge.net/packages/gtar.htm

     

    7. Download the created file using FTP and then try installing to a SE4 site.

     

        the parent folder of the module-writtings-4.1.7 it should have this file

       

         module-writtings-4.1.7.tar


    8. Error installing the module??? well now you have to do it again make sure this time you double check everything.


    9. Now if the installation was succesful it's time to test the module and you need to check the CSS files.



    Please post some comments how to make things easier.

1 comment
  • Site Daemon
    Site Daemon I think you need to modify the core files to clone the group module since some of the functions of the group module are located in the core files
    January 23