1
Publisher Clone - xBootstrap
If someone wants to create a module to create the xBootstrap templates for a cloned Publisher module, here is what changes the module needs to make.
for this example, we'll use the name "clone"
1) copy the publisher subdir in /themes/xbootstrap/modules/publisher and rename /themes/xbootstrap/modules/clone
2) rename all files in /themes/xbootstrap/modules/clone publisher_ to clone_
3) rename all files in /themes/xbootstrap/modules/clone/blocks publisher_ to clone_
4) rename subdir /themes/xbootstrap/modules/clone/xoops_and_module_changes/modules/publisher to /themes/xbootstrap/modules/clone/xoops_and_module_changes/modules/clone
5) rename the file /themes/xbootstrap/modules/clone/xoops_and_module_changes/modules/clone/css/publisher.css to clone.css
Now that you have renamed the files and subdirectories, you can start doing search and replace in all the .tpl, .php and .css files. These are the variables that have to be changed. Again we use the example "clone".
NOTE: PAY ATTENTION TO CASE
Publisher_ to Clone_
pub_ to clo_
_PUBLISHER_ to _CLONE_
publisher- to clone-
PublisherRequest to CloneRequest
PUBLISHER_URL to CLONE_URL
PublisherMetagen to CloneMetagen
PUBLISHER_DIRNAME to CLONE_DIRNAME
PUBLISHER_ to CLONE_
$publisher to $clone
PublisherPublisher to CloneClone
PublisherCategory to CloneCategory
/publisher/ to /clone/
publisher = to clone =
PublisherItem to CloneItem
PUBLISHER_ to CLONE_
publisher_ to clone_
That's it. Now you have xBootstrap templates that will work with your Publisher Clone