Duplicating Module

Hi I dont get a chance to post here very often, but have found alot of useful info here from you all.

I am trying to create a custom module for my site using a duplicate of the sounds module, calling it duets. I want to keep the orignal sound module in place, I have copied the original sounds module and renamed the class files and edited every instance of sounds, Sounds, SOUNDS, sound, Sound, and SOUND throughout all the files in the new module folder for my new duets module replacing them with duets, Duets, DUETS, duet, Duet, and DUET in every file in the module that references them including the files in any of the module's sub folders.

My question is after all that, will I need to create a new folder in the flash/modules folder? right now the sound module is using the mp3 folder and I dont know if the new module will cause issues with the sounds module if they share it. Or can the two modules share the mp3 folder and it's subfolder called files? And If they can not share the mp3 folder, I can find all references to the mp3 folder in the new module files, but should I create a duplicate of the mp3 folder and give it a new name and then change the references in the files for my new module? are there any other files anywhere else in the dolphin folder I may need to duplicate and rename? as well as file edit references?

Im still using dolphin 7.08 for my site in case it matters.

Im doing all this because my site is a karoke site and members want a duet area just like the sounds area. You can see my site at http://keepitkaraoke.net if you want, if it helps you understand what I mean.

 

thanks for any direction you can give me on this.

Quote · 9 Aug 2013

No, it should not matter if you use the same folder for sounds...  

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 9 Aug 2013

I've uploaded and installed the duets module, however both the sounds and duet modules are sharing the mp3/files folder for uploads. The only problem with this is in the admin area for managing the files for both modules. It shows any sounds uploaded to the sounds module (since the duet module was installed) in the Duets admin area also. In other words, because both modules are sharing the same folder, any new sounds being uploaded to the sounds module are also showing up in the duets admin area as well as the sounds admin area. This can cause confusion with admins as they try to set features from either area. However, members going to either the sounds or the duet area of the site only see the files uploaded for that area, so that part is working ok.

 I am just wondering if I can create a new folder in the flash/modules/mp3 folder called files2 and edit the path in the BxDuetsConfig.php file from: flash/modules/mp3/files/, to flash/modules/mp3/files2/ ;  and if this is all I need to do to seperate where each module uploads their files and looks for them? Or if I would need to edit other files on the site and what files, if so, that I would need to edit.

It's not that big of a deal if I can't do it that way, it works on the site. Im just trying to make it easier for the admins to seperate the sounds from the duet sounds in the admin area.

Hope all this makes sense.

Quote · 15 Aug 2013

Give it a try and see what happens with a few uploads.  i don't recall if the folder location is in other places or not for sounds..  

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 18 Aug 2013

Trial and error is very welcome that's the power of open source so go for it :)

"Your future is created by what you do today, not tomorrow." @ www.dexpertz.net
Quote · 18 Aug 2013

How can you duplicate a module and change its property?

I would like to copy the video module and then modify to display private videos so only friends can view those.

Example:

Banner of the page|

Public video - where every logged in member can see.|

Duplicated video module- only display private videos that are shared between friends.|

 

so if a member doesn't have any friend/shared video he/she will not see anything except the public video.

 

Quote · 19 Aug 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.