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
Installing Same Module Twice? (Job Listings Module)
Re: Installing Same Module Twice? (Job Listings Module)
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)
i think you would have to change the database tables or something.
-
- 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)
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.
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.
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.
-
- 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)
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.
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.