1
reWARder
duplicating a module
  • 2004/5/28 15:07

  • reWARder

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/5/28


hello altogether
first of all, I'm a total XOOPS newbie.

my question: is it possible to duplicate a module. in my XOOPS project - http://www.ocaholic.ch/xoops/html - I'd like to have a section "Reviews and Articles" and also a section "Games". these two sections should be accessible by the main menu. so, you can see that I need the tutorial module twice. is it possible to install a module twice, or does anybody know another solution for my problem?

tanx for help!

PS: sorry for my english. I'm swiss and so you can see it's not my native language.

2
limecity
Re: duplicating a module
  • 2004/5/28 15:27

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


to duplicate a module..

you can't just rename the module folder...

you have to rename everything inside the.. codings.. the variables and stuff..



3
reWARder
Re: duplicating a module
  • 2004/5/28 15:31

  • reWARder

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/5/28


it would be a possibility, but an awful lot of work!

does anybody know another way to do this job?

edit: does anybody know a program with which you can search for text passages and file names, in this case tuturial, and afterwards replace them by games, or something else?

4
limecity
Re: duplicating a module
  • 2004/5/28 15:36

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


Quote:
I'd like to have a section "Reviews and Articles" and also a section "Games".


which module are you using actually for each of the thing you mention?

Reviews :
Articles :
Games :


You wan to use a tutorial module for all the above?

5
reWARder
Re: duplicating a module
  • 2004/5/28 15:39

  • reWARder

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/5/28


I want to use the following module twice:

MyTutorial v2.1b

Version
2.1

Description
Creates a range where admins can publish tutorials

Author
Thomas Wolf
( http://www.mytutorials.info/ )

Credits
MyTutorials

License
GPL see LICENSE



6
limecity
Re: duplicating a module
  • 2004/5/28 15:44

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


Maybe you can use 2 types of TUtorial module

there is another one here.
https://xoops.org/modules/mydownloads/singlefile.php?cid=12&lid=299

else.. you need to duplicate the module

or wait for other members to respond to your help..
maybe they got better ideas...

goodluck~


7
intel352
Re: duplicating a module
  • 2004/5/28 15:47

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


Editplus works great for find-replace across multiple files

http://www.editplus.com (you can use an evaluation version)

for cloning a module, i'm sure you can search and find topics that discuss how to do it, but quick overview:

create a folder named gamereview or whatever you want to call it. copy all files from the tutorial folder into the game folder. open xoops_version.php, change the module title, dirname, rename the sql tables, and rename any templates that are listed (whatever.html)

open the gamereview/sql/mysql.sql file, find/replace the table names with the names that you created in xoops_version

go through every .php file in the module, replacing all references to the table name with your table name

find anything that is 'hard-coded' to the tutorials folder name, and change it to the gamereview folder name.

that should get you started, but i suggest using the Search box in the upper right of your screen to find a more detailed walkthrough

8
reWARder
Re: duplicating a module
  • 2004/5/28 17:27

  • reWARder

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/5/28


tanks a lot, I'm going to try this out.

9
reWARder
Re: duplicating a module
  • 2004/5/31 11:52

  • reWARder

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/5/28


until now I duplicated the module, or in other words I replaced all the code I had to.
I also had no problem with installing the recoded module, but when I want to access the modules configuration I'm going to get a white/blank page.
does anybody have an idea what I could have made wrong, or where I could have made something wrong?

10
intel352
Re: duplicating a module
  • 2004/5/31 14:31

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


it's likely an error in xoops_version.php

Login

Who's Online

372 user(s) are online (276 user(s) are browsing Support Forums)


Members: 0


Guests: 372


more...

Donat-O-Meter

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

Latest GitHub Commits