1
abdala
multiple instances of same module
  • 2003/10/20 14:32

  • abdala

  • Just popping in

  • Posts: 42

  • Since: 2003/2/5 1


Hi,

I wonder if it is possible to install multiple instances of the same module. I.e installe instance 1 of the news module, for example, and call it "books". Then, install instance 2 of the same module and call it "articles", etc. If it is not, is there a way to achieve the same effect?

Thanks,
Abdala

2
tywick
Re: multiple instances of same module
  • 2003/10/20 20:11

  • tywick

  • Just popping in

  • Posts: 12

  • Since: 2002/9/17


Yes this is possible. Just make sure to make the following changes to one of the modules.

in xoops_version.php
$modversion['dirname'] -- whatever you decide to rename the directory as
$modversion['name'] -- whatever name you want to appear in the main menu
$modversion['tables'][n] -- change all table names ie module_info to module2_info

in mysql.sql

change all table names ie module_info to module2_info make sure these changes properly coordinate with $modversion['tables'][n] changes

in all other files properly change sql references and directory references

3
abdala
Re: multiple instances of same module
  • 2003/10/21 3:15

  • abdala

  • Just popping in

  • Posts: 42

  • Since: 2003/2/5 1


Thanks a lot for your reply. I tried it with a very simple block (random quote), it worked fine on every page except the homepage I got a blank page. I'll try to hack it a bit more to see why is that. anyways, just wanted to say thanks!

Abdala

Login

Who's Online

152 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 152


more...

Donat-O-Meter

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

Latest GitHub Commits