1
deka87
Testing Multisite 1.3
  • 2010/2/18 18:00

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


hi guys,

decided to try the Multisite module again cos I think it's the best for a multilanguage website. everything works fine but the blocks. i can't set a block for a defenite domain. it's always shown on all domains no matter which one i choose in the block prefs. any help?

2
wishcraft
Re: Testing Multisite 1.3

dam i missed something out on the Quick Install guide, I will work it out for you in a second deka78

3
wishcraft
Re: Testing Multisite 1.3

Instead of loading this file :: require_once XOOPS_ROOT_PATH."/class/xoopsblock.php";

You need to load

require_once XOOPS_ROOT_PATH."/modules/multisite/class/block.php";

And instead of declaring a new block object with the first file.

You declare a Multisite Block.. ie..
$block = new MultisiteBlock($blockid);

4
deka87
Re: Testing Multisite 1.3
  • 2010/2/19 8:09

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


I should make the changes in modules/multisite/class/block.php right? ok i found
require_once XOOPS_ROOT_PATH."/class/xoopsblock.php";
there and replaced it with
require_once XOOPS_ROOT_PATH."/modules/multisite/class/block.php";


Quote:
And instead of declaring a new block object with the first file.

You declare a Multisite Block.. ie..

$block = new MultisiteBlock($blockid);


not sure what you mean, wishcraft. which line do I need to replace with
$block = new MultisiteBlock($blockid);
thanks

5
deka87
Re: Testing Multisite 1.3
  • 2010/2/20 5:44

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


c'mon wishcraft I am only one line from a bilingual website

6
ghia
Re: Testing Multisite 1.3
  • 2010/2/20 10:05

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I think the lines with
$block = new XoopsBlock($blockid);

Login

Who's Online

291 user(s) are online (57 user(s) are browsing Support Forums)


Members: 0


Guests: 291


more...

Donat-O-Meter

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

Latest GitHub Commits