xoops forums

Cyberock

Just popping in
Posted on: 2005/8/4 3:48
Cyberock
Cyberock (Show more)
Just popping in
Posts: 9
Since: 2005/7/18
#1

Smartsection mod cloning? Is possible?

Has anyone had any luck cloning the smartsection module? Natcherly it has nearly every thing I need, cept I need duplicate functionality for the "spotlight an article" function, to be able to spotlight an item in each category instead of just one for the whole module.

So far I have cloned twice and gotten a XOOPS error ... "Xoops Handler doesn't exist" and etc. Plus a bunch of "can't redeclare function so & so ..." errors. It looks almost impossible to clone this one. That is, with completely seperate categories and data and etc.

That would have been easier than re-coding the spotlight function into every category ... or so I thought

Anyone clone this puppy yet and want to share the secrets? Appreciate any hints. Thanks!

soconfused

Not too shy to talk
Posted on: 2005/8/17 19:13
soconfused
soconfused (Show more)
Not too shy to talk
Posts: 108
Since: 2005/4/2 1
#2

Re: Smartsection mod cloning? Is possible?

Hi,
I want to do the same thing, the other day I read about a kind of cloned smartsection somewhere (specially made so that you could install it twice). But I'll be damned if I can find it now typical. I'll keep looking and if I find it I'll post back.

soconfused

Not too shy to talk
Posted on: 2005/9/8 0:05
soconfused
soconfused (Show more)
Not too shy to talk
Posts: 108
Since: 2005/4/2 1
#3

Re: Smartsection mod cloning? Is possible?

Yes and it works nicely
Instructions from the SmartFactory:

/**
* $Id: clone.txt,v 1.2 2005/09/06 18:52:34 malanciault Exp $
* Module: SmartNews
* Author: The SmartFactory <www.smartfactory.ca>
* Licence: GNU
*/

Cloning SmartSection is possible with a little extra work . Here are the steps you need to carefully follow in order to acheive this. In this example, we will perform a cloning from SmartSection to an identical module called SmartNews.

- Rename the module directory from 'smartsection' to 'smartnews'

- With a tool that let you perform find and replace (case sensitively !) in all files of a directory (Advanced Find and Replace is a good example), perform the following changes in all the files of the module :
- SmartSection => SmartNews
- smartsection => smartnews
- SMARTSECTION => SMARTNEWS
- Smartsection => Smartnews
- SSECTION => SNEWS

- In smartnews/templates rename all files by changing the prefix from smartsection_ to smartnews_

- Install the module. You are ready to go !