1
Zap_English
Publisher Clone & xBootstrap Module

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

2
liomj
Re: Publisher Clone & xBootstrap Module
  • 2017/2/17 1:22

  • liomj

  • Just popping in

  • Posts: 67

  • Since: 2012/4/10


There is an easier way

1. Copy all files and folders in root/themes/xbootstrap/modules/publisher/ to root/modules/publisher/templates/ (replace files and folders)

2. Clone the publisher module

3. Now your clone publisher module using the bootstrap templates

3
Zap_English
Re: Publisher Clone & xBootstrap Module

I tried that once and it didn't work

4
geekwright
Re: Publisher Clone & xBootstrap Module

Quote:

Zap_English wrote:
I tried that once and it didn't work


Works perfectly here. Not sure what might have gone wrong for you.

Started with clean publisher. Copied everything from hthemes/xbootstrap/modules/publisher to modules/publisher/templates. Install publisher and clone it. Don't forget to clear smarty caches if you have been playing a lot.

That process you described is exactly what the clone process does. It isn't magic. It depends on consistent naming, and just copies files with changed names and replaces specific text in the files to create the clone.

Login

Username:
Password:

Lost Password? Register now!

Who's Online

56 user(s) are online (27 user(s) are browsing Support Forums)


Members: 0


Guests: 56


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits