1
Kieran
Custom Block include: can it change language?
  • 2007/7/30 23:24

  • Kieran

  • Just popping in

  • Posts: 32

  • Since: 2007/7/12


I'm using the myiframe module to include a page in my homepage. My site uses Xlanguage.

For visitors from China who arrive at the site it automatically displays the Chinese version, otherwise its English.

But the included block does not vary

I'm wondering if there is a php "if" statement I can use to have the included php block also upload the correct html page (Chinese or English)

Right now the inlcude is:

include_once XOOPS_ROOT_PATH . '/modules/myiframe/blocks/myiframe_iframe.php';
b_myiframe_iframe_onthefly(1);

Or perhaps another way of doing it???? Thanks!!!

2
Kieran
Re: Custom Block include: can it change language?
  • 2007/8/3 11:17

  • Kieran

  • Just popping in

  • Posts: 32

  • Since: 2007/7/12


I think I didn't explain this very well!!

My question is:

Is it possible to have the included content of a custom block(php) change language as the rest of the page does (using xlanguage).

Cheers!!!

3
BigJim
Re: Custom Block include: can it change language?
  • 2007/8/5 10:20

  • BigJim

  • Just popping in

  • Posts: 78

  • Since: 2007/7/16


It certainly is!

Go to myiframes module in your admin area and use the language tags as usual to request the upload of the 2 different version.

So like this:

[en]http://www.englishpage[/en][zh]http://www.chinese version[/zh]

That should do it

4
Kieran
Re: Custom Block include: can it change language?
  • 2007/8/6 9:44

  • Kieran

  • Just popping in

  • Posts: 32

  • Since: 2007/7/12


Thanks Jim, that did it!

Login

Who's Online

352 user(s) are online (274 user(s) are browsing Support Forums)


Members: 0


Guests: 352


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