Installing Same Module Twice? (Job Listings Module)

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
Rigel7
New Member
New Member
Posts: 3
Joined: Tue Feb 19, 2008 10:30 pm

Installing Same Module Twice? (Job Listings Module)

Post 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
Vin

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

Post 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.
cubix
Power Poster
Power Poster
Posts: 314
Joined: Mon Jul 09, 2007 10:00 am

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

Post by cubix »

i think you would have to change the database tables or something.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

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

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

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

Post by calguy1000 »

oh, and I forgot templates, they have to be checked to.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Developers Discussion”