Installing 2 of the same modules?

x2222 - March 26, 2008 - 16:41

I'm interested in the taxonomy ticker module but it's only set up to produce 1 ticker feed per the module. I'd like to have 2 different tickers on my site. Anyone know of a way to enable this. Perhaps by installing the same module twice with slightly different names?

I posted this Q in the module support section but with no luck. Anyone have an idea?

You could upload it twice i

nicholasbarcomb - March 26, 2008 - 16:59

You could upload it twice i suppose. Would require some elbow grease tho im not sure that it would be any more than hacking it with php code. In the module folder you would need to uniquely rename every instance of the module's name in the module's folder. ex: if the module's name is taxonomyticker.module it could become mytaxonomyticker.module. This would then need to be true for any instance of the name taxonomyticker anywhere in the taxonomyticker folder. Meaning taxonomyticker.inc, -.install, -.info, all of them would need to be renamed mytaxonomyticker. This is also true for the text of each file, because all of these files reference each other. So in the text of each file you would need to find and replace taxonomyticker with mytaxonomyticker. There might also be cases of the case being changed so you may have to find and replace taxonomyticker, Taxonomyticker, and TAXONOMYTICKER to their respective new cases, mytaxonomyticker, Mytaxonomyticker, and MYTAXONOMYTICKER just to be safe.

BACKUP YOUR SITE BEFORE TRYING THIS!!!, I've done this with a different module before and it worked ok, but im not sure how multi taxonomy tickers would work with each other, if their simultaneous calls to the database would screw anything up. So backup your system before uploading the new module.

Hope this helps
-Nick

Nick, thank you very much.

x2222 - March 26, 2008 - 17:37

Nick, thank you very much. That seems very helpful. I appreciate your comment. I'll give it a try like you said and it seems straightforward enough to me for it to work. Thanks!

 
 

Drupal is a registered trademark of Dries Buytaert.