• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Problem with language param

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
3 posts • Page 1 of 1

Postby pinup57 » Wed Mar 07, 2007 11:02 am

Hi

I have a weird problem: I retrieve the language setting from the site setting. (in Joomla!). The following happens: when I start with a clean cache, I get an error: problem, le language parameter should be a charater string (including the typo ;-) ). What I need to do, is comment out the lines that set the language param, then load the chat so it defaults to english, do a rehash, close the chat, uncomment the lines that set the language param, reopen the chat and now it works. Seems like the very first time the configuration is created, it doesn't accept other than default language setting. The language setting is "fr_FR".

Dirk
pinup57
Member
 
Posts: 89
Joined: Sat Feb 24, 2007 8:13 am
Top

Postby phpfreechat » Thu Mar 08, 2007 11:39 am

Does your joomla language parameter is a string ?
Did you try to cast it in string using the "(string)" word ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby pinup57 » Thu Mar 08, 2007 6:35 pm

Ok, finally found it. (lost some hair, I admit). I'm both new to joomla! and php, and although I have c++ and delphi skills I am a bit lost sometimes....

FYI: when I include the script in a joomla content item, I can't retrieve many joomla configuration variables the "usual" way, eg:
Code: Select all
<?php echo "absolute path is: ".$mosConfig_absolute_path;?>

does work, but
Code: Select all
<?php echo "site language is: ".$mosConfig_locale;?>

doesn't. Must be some scope issue, whatever...

But in all cases, this works:
Code: Select all
<?php echo "site language is: ".$GLOBALS['mosConfig_locale'];?>

Anyway, I managed to get PFC working nicely inside Joomla, I can use CommunityBuilder data and eveything, so all's well for now!

I'll post a demo.php for joomla as soon as I have some free time, it might help other users.

Thanks for your support!
Dirk
pinup57
Member
 
Posts: 89
Joined: Sat Feb 24, 2007 8:13 am
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 20 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub