Page 1 of 1

Installing Same Module Twice? (Job Listings Module)

Posted: Tue Feb 19, 2008 10:39 pm
by Rigel7
Hi Folks,

I really like the Job Listings Module, and would like to have a second instance on my site that I can use for a directory. It will work really well for this if I can just install it twice. I figure I would need to change some naming conventions on the copy so that it wasn't mistaken for the Job Listings, but can anyone tell me if this is a trivial thing to accomplish, or if it's really involved.

I have tried the alternatives like Company Directory and Catalogger, but they really don't work as well as the Jobs code.

Any ideas?

Thanks

Marcus

Re: Installing Same Module Twice? (Job Listings Module)

Posted: Fri Feb 22, 2008 2:48 pm
by Vin
Never tried it, but I assume (in fact, I have already assumed it in one of my posts) that you would have to duplicate the module's folder and files, rename some names in the module's files and folder respectively (respecting the uppercase, lowercase) and watch for abbreviations (for example, I think FrontEndUsers use feu abbreviation in functions, so there may be similar naming conventions), and install it. Try it on test install.

Re: Installing Same Module Twice? (Job Listings Module)

Posted: Fri Feb 22, 2008 9:20 pm
by cubix
i think you would have to change the database tables or something.

Re: Installing Same Module Twice? (Job Listings Module)

Posted: Fri Feb 22, 2008 9:37 pm
by calguy1000
At a minimum you would have to:
  1) copy all of the files into a new directory Blah
  2) Rename Jobs.module.php to Blah.module.php
  3) Go through Blah.module.php and change all instances of 'Jobs' to 'blah'
  4) Go through all of the source and change all table names in all queries from module_jobs_* to module_blah_*
  5) Go through the lang file lang/en_US.php (usually) and edit anything that refered to jobs

then install (on a test site please)
and see what was messed up
then go back to step 1 if necessary.

It is possible to 'fork' a module, but it's not a simple process.

Re: Installing Same Module Twice? (Job Listings Module)

Posted: Fri Feb 22, 2008 9:37 pm
by calguy1000
oh, and I forgot templates, they have to be checked to.