Joomla! Discussion Forums



It is currently Mon Nov 23, 2009 9:40 pm (All times are UTC )

 




Post new topic Reply to topic  [ 52 posts ]  Go to page 1, 2  Next
Author Message
Posted: Thu Sep 29, 2005 10:16 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Aug 19, 2005 6:57 pm
Posts: 38
Location: Panama City, Panama
I have a site that belongs to a client and he is really satrting to climb my tree about multi-lingual funtionality. I keep looking at the JoomFish page on the forge but so far nothing new has been posted. Does anyone out there actually have this component running on Joom and if so could you please share your secret to making it display something other than a blank white page? I can't wait to come up with a way to get this guy off my neck.

Thanks All

_________________
Cheers:
ElLeonBlanco
AKA: J. Allen
http://www.net4ia.com


Top
  E-mail  
 
Posted: Thu Sep 29, 2005 10:30 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Sep 18, 2005 9:26 pm
Posts: 42
Location: Southampton, England
I am eagerly awaiting this as well  :D

_________________
john
opensourcemusic.info


Top
  E-mail  
 
Posted: Fri Sep 30, 2005 2:15 pm 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 823
Yes, I have it running on Joomla 1.0.1. 8)
I can attach 2 zips
These are the options, yould choose 1 of them not both!

The mbf.patch.zip contains the patched index.php and index2.php from the Joomla root.
You have to rename the contained files from index.mbf.php to index.php and index2.mbf.php to index2.php etc.
It will certainly work but you must restore the original files when Joomfish releases!
Hooks are made in Joomla for better integration.

If you don't want your core files patched you could try the other zip, it contains a system joombot I made that initializes Mambelfish.
Don't forget to publish it.
It works well on my site but I'm not sure it will on others. Let me know.
Also for that, if the Joomfish releases unplublish/de-install my bot.

I hope this helps?


You do not have the required permissions to view the files attached to this post.


Last edited by walb on Fri Sep 30, 2005 2:26 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Fri Sep 30, 2005 2:35 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Aug 19, 2005 6:57 pm
Posts: 38
Location: Panama City, Panama
Thanks Walb. I will definitely get right on this. You have certainly brightend up my day. :D I think I will try the mambot first because until Joom gets a bit more stabilized on the development I want to keep the upgrading as simple as possible by not messing with my core files.

_________________
Cheers:
ElLeonBlanco
AKA: J. Allen
http://www.net4ia.com


Top
  E-mail  
 
Posted: Mon Oct 10, 2005 10:44 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 20, 2005 1:10 pm
Posts: 96
Location: Lausanne (Switzerland)
Hi walb,
have you test your system on Joomla! 1.0.2?

TY

_________________
PONS++


Top
  E-mail  
 
Posted: Mon Oct 10, 2005 10:52 am 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 823
Yes the system bot works OK with Joomla1.0.2.
Upgraded without patched files.


Top
  E-mail  
 
Posted: Mon Oct 10, 2005 11:07 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 20, 2005 1:10 pm
Posts: 96
Location: Lausanne (Switzerland)
Ok,
because I have installed the mambelfish (http://mamboforge.net/projects/mambelfish/) component, module and searchbot and I still have some problems:
Code:

Notice: Undefined variable: mosConfig_lang in c:\program files\easyphp1-8\www\joomla\mambots\system\mbf_language.php on line 27

Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\joomla\mambots\system\mbf_language.php:27) in c:\program files\easyphp1-8\www\joomla\components\com_mambelfish\classes\mambelfish.class.php on line 154

Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\joomla\mambots\system\mbf_language.php:27) in c:\program files\easyphp1-8\www\joomla\components\com_mambelfish\classes\mambelfish.class.php on line 155

Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\joomla\mambots\system\mbf_language.php:27) in c:\program files\easyphp1-8\www\joomla\components\com_mambelfish\classes\mambelfish.class.php on line 156

Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\joomla\mambots\system\mbf_language.php:27) in c:\program files\easyphp1-8\www\joomla\index.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\joomla\mambots\system\mbf_language.php:27) in c:\program files\easyphp1-8\www\joomla\index.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\joomla\mambots\system\mbf_language.php:27) in c:\program files\easyphp1-8\www\joomla\index.php on line 220

Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\joomla\mambots\system\mbf_language.php:27) in c:\program files\easyphp1-8\www\joomla\index.php on line 221

Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\joomla\mambots\system\mbf_language.php:27) in c:\program files\easyphp1-8\www\joomla\index.php on line 222



The questions are:
- Do I need to install the mambelfish core files for mambo 4.5.2?
- How can I modify source file to make it work?

Another noob question is how to place a link on frontend to change the language?

Thank a lot

_________________
PONS++


Top
  E-mail  
 
Posted: Mon Oct 10, 2005 11:37 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 12:14 am
Posts: 1162
Location: United Kingdom
I just came across this, the mosConfig_lang var needs to be global.

_________________
http://www.jomres.net THE online hotel booking and reservation system for Joomla


Top
   
 
Posted: Mon Oct 10, 2005 11:41 am 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 823
Hmm. Strange that bot runs as is already on various Joomla 1.0.2 sites. I see you use easyphp. I'm not famliar with that.
You could try in mambots/system/mbf_language.php in line 22
          global $_MAMBELFISH_MANAGER, $mosConfig_mbf_content, $iso_client_lang;
to change it to
          global $_MAMBELFISH_MANAGER, $mosConfig_mbf_content, $iso_client_lang, $mosConfig_lang;

The delivered 4.5.2 patch should in no way be used for joomla.
Those files are only for 4.5.2.

In 4.5.2 my bot does not work and cannot be installed. These are the first differences between Joomla and Mambo.

To switch the language you must put this somewhere in your template

It will show flags or the language titles on webpage dependent how you configured MBF in the fontend.

Instead of the previous you can also download this module http://mamboforge.net/frs/download.php/4465/mbf_module.zip
It does the same to show flags.


Top
  E-mail  
 
Posted: Mon Oct 10, 2005 12:08 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 20, 2005 1:10 pm
Posts: 96
Location: Lausanne (Switzerland)
Ok,
that work for the errors listed upper.

Now I have theses, just upper the language selector:
Code:
Notice: Undefined index: mbf_dir in c:\program files\easyphp1-8\www\joomla\components\com_mambelfish\mambelfish.html.php on line 71

Notice: Undefined variable: hrefVars in c:\program files\easyphp1-8\www\joomla\components\com_mambelfish\mambelfish.html.php on line 157


what that mean?

_________________
PONS++


Top
  E-mail  
 
Posted: Mon Oct 10, 2005 12:09 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 12:14 am
Posts: 1162
Location: United Kingdom
Yep, I just made a small change that seems to work. Gimme 2 mins.

_________________
http://www.jomres.net THE online hotel booking and reservation system for Joomla


Top
   
 
Posted: Mon Oct 10, 2005 12:12 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 12:14 am
Posts: 1162
Location: United Kingdom
Change line 71 which reads

if( $GLOBALS['mbf_dir'] == 'vertical'

to

if( isset($GLOBALS['mbf_dir']) && $GLOBALS['mbf_dir'] == 'vertical'

Obviously leave the rest of the line in and as it is.

So far it's looking good on one of my dev servers, I'll put it on demo.jomres.net now so get ready for some bad language from Wales.

_________________
http://www.jomres.net THE online hotel booking and reservation system for Joomla


Top
   
 
Posted: Mon Oct 10, 2005 12:14 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 12:14 am
Posts: 1162
Location: United Kingdom
Actually, I would if I'd remembered to joomla the demo server :-P.

_________________
http://www.jomres.net THE online hotel booking and reservation system for Joomla


Top
   
 
Posted: Mon Oct 10, 2005 12:15 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 20, 2005 1:10 pm
Posts: 96
Location: Lausanne (Switzerland)
Ok I found it too ;-)

Line 71:
Code:
if( isset($GLOBALS['mbf_dir']) && $GLOBALS['mbf_dir'] == 'vertical' || $mambelFishManager->getCfg( 'frontendMode' ) == 'vlist' || $mambelFishManager->getCfg( 'frontendMode' ) == 'vimage' ){


from http://forum.joomla.org/index.php/topic,4373.0.html

i still have this error:
Code:
Notice: Undefined variable: hrefVars in c:\program files\easyphp1-8\www\joomla\components\com_mambelfish\mambelfish.html.php on line 158


Do you know?

_________________
PONS++


Top
  E-mail  
 
Posted: Mon Oct 10, 2005 12:18 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 12:14 am
Posts: 1162
Location: United Kingdom
I suspect that if you removed all the trailing stuff from your domain in the address bar (IE everything after the ? (question mark) ) and hit enter, you'd probably not see that.

_________________
http://www.jomres.net THE online hotel booking and reservation system for Joomla


Top
   
 
Posted: Mon Oct 10, 2005 12:21 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 20, 2005 1:10 pm
Posts: 96
Location: Lausanne (Switzerland)
No it's the opposit,

...index.php -> error ligne 157
...index.php?option=com_frontpage&Itemid=1&lang= -> no error

???

_________________
PONS++


Top
  E-mail  
 
Posted: Mon Oct 10, 2005 12:23 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 20, 2005 1:10 pm
Posts: 96
Location: Lausanne (Switzerland)
Actually, the "ISO" fields under mambelfish>language configuration are empty... What do I need to enter?

_________________
PONS++


Top
  E-mail  
 
Posted: Mon Oct 10, 2005 12:24 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 12:14 am
Posts: 1162
Location: United Kingdom
Backend of Joomla: Mambelfish component/Language configuration. Check that against Swiss you've put 'ch', english is "en" in the ISO fields.

Note: This is a complete guess.

_________________
http://www.jomres.net THE online hotel booking and reservation system for Joomla


Top
   
 
Posted: Mon Oct 10, 2005 12:30 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 20, 2005 1:10 pm
Posts: 96
Location: Lausanne (Switzerland)
...index.php
Code:
Notice: Undefined variable: hrefVars in c:\program files\easyphp1-8\www\joomla\components\com_mambelfish\mambelfish.html.php on line 153

Notice: Undefined variable: hrefVars in c:\program files\easyphp1-8\www\joomla\components\com_mambelfish\mambelfish.html.php on line 154


...index.php?option=com_frontpage&Itemid=1&lang=en
Work fine

_________________
PONS++


Top
  E-mail  
 
Posted: Mon Oct 10, 2005 12:43 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 12:14 am
Posts: 1162
Location: United Kingdom
This may sound like a silly question, but do you have the swiss lang file installed? (I'm assuming swiss as that's where your profile says you're based).

_________________
http://www.jomres.net THE online hotel booking and reservation system for Joomla


Top
   
 
Posted: Mon Oct 10, 2005 12:46 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 12:14 am
Posts: 1162
Location: United Kingdom
As far as I can see in the mbf code, the hrefVars it's referring to is the lang=whatever at the end of your address string, maybe the fact that it's empty is causing problems.

_________________
http://www.jomres.net THE online hotel booking and reservation system for Joomla


Top
   
 
Posted: Mon Oct 10, 2005 12:53 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 20, 2005 1:10 pm
Posts: 96
Location: Lausanne (Switzerland)
Vimes wrote:
This may sound like a silly question, but do you have the swiss lang file installed? (I'm assuming swiss as that's where your profile says you're based).


You're right, but swiss people speak french (for my part indeed, cause italian and german are also spoken here...)

So the french language pack is installed.

_________________
PONS++


Top
  E-mail  
 
Posted: Mon Oct 10, 2005 12:54 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 12:14 am
Posts: 1162
Location: United Kingdom
So you've changed the ISO bit in mamblefish to fr?

_________________
http://www.jomres.net THE online hotel booking and reservation system for Joomla


Top
   
 
Posted: Mon Oct 10, 2005 12:57 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 20, 2005 1:10 pm
Posts: 96
Location: Lausanne (Switzerland)
yes

"en" and "fr"

The problem is how to define the default hrefVars in mambelfish.html.php.

That should be the same default language than in the Language Manager

_________________
PONS++


Top
  E-mail  
 
Posted: Mon Oct 10, 2005 1:09 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 12:14 am
Posts: 1162
Location: United Kingdom
Do you want to PM me your login details & I can take a look at your set up for you?

_________________
http://www.jomres.net THE online hotel booking and reservation system for Joomla


Top
   
 
Posted: Mon Oct 10, 2005 1:12 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 20, 2005 1:10 pm
Posts: 96
Location: Lausanne (Switzerland)
My install is only on localhost... but you're nice to propose...

_________________
PONS++


Top
  E-mail  
 
Posted: Tue Oct 11, 2005 6:18 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 20, 2005 1:10 pm
Posts: 96
Location: Lausanne (Switzerland)
I found the solution here: http://www.mambers.com/showthread.php?t=38571

The fonction "function _createHRef( $iso )" must be like that:
Code:
    function _createHRef( $iso ) {
        $href= "index.php";
        $vars = explode( "&", $_SERVER['QUERY_STRING'] );
            if( count($vars) > 0 && $_SERVER['QUERY_STRING']) {
                $hrefVars = "?";
                foreach ($vars as $var) {
                    if( eregi('=', $var ) ) {
                        list($key, $value) = explode( "=", $var);
                            if( $key != "lang" ) {
                                if( $hrefVars != "?" ) $hrefVars .= "&";
                                $hrefVars .= "$key=$value";
                            }
                        }
                    }
                }
            else { $hrefVars = "?"; }
            if( $iso != null ) {
                if( $hrefVars != "?" ) $hrefVars .= "&";
                $hrefVars .= "lang=$iso";
            }
            if( $hrefVars != "" ) {
                 $href .= "$hrefVars";
            }
        return sefRelToAbs( $href );
    }





Thank you very  much for your help

C ya

_________________
PONS++


Top
  E-mail  
 
Posted: Tue Oct 11, 2005 6:29 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 20, 2005 1:10 pm
Posts: 96
Location: Lausanne (Switzerland)
This should work too:

Site>Global Configuration>Server>Error Reporting:Simple

_________________
PONS++


Top
  E-mail  
 
Posted: Tue Oct 11, 2005 9:17 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Aug 18, 2005 5:53 pm
Posts: 54
Location: Johnson City, TN
Hi everyone. I am trying to get mambelfish to work with the latest joomla.
I've followed the procedures in this thread, i'm still getting errors however. I'm currently only using one language which is english.

Quote:
Warning: Cannot modify header information - headers already sent by (output started at /home/joomla/public_html/components/com_mambelfish/classes/mambelfish.class.php:587) in /home/joomla/public_html/components/com_mambelfish/classes/mambelfish.class.php on line 307

Warning: Cannot modify header information - headers already sent by (output started at /home/joomla/public_html/components/com_mambelfish/classes/mambelfish.class.php:587) in /home/joomla/public_html/components/com_mambelfish/classes/mambelfish.class.php on line 309

Warning: Cannot modify header information - headers already sent by (output started at /home/joomla/public_html/components/com_mambelfish/classes/mambelfish.class.php:587) in /home/joomla/public_html/components/com_mambelfish/classes/mambelfish.class.php on line 311

Warning: Cannot modify header information - headers already sent by (output started at /home/joomla/public_html/components/com_mambelfish/classes/mambelfish.class.php:587) in /home/joomla/public_html/includes/joomla.php on line 576

Warning: Cannot modify header information - headers already sent by (output started at /home/joomla/public_html/components/com_mambelfish/classes/mambelfish.class.php:587) in /home/joomla/public_html/index.php on line 228

Warning: Cannot modify header information - headers already sent by (output started at /home/joomla/public_html/components/com_mambelfish/classes/mambelfish.class.php:587) in /home/joomla/public_html/index.php on line 229

Warning: Cannot modify header information - headers already sent by (output started at /home/joomla/public_html/components/com_mambelfish/classes/mambelfish.class.php:587) in /home/joomla/public_html/index.php on line 230

Warning: Cannot modify header information - headers already sent by (output started at /home/joomla/public_html/components/com_mambelfish/classes/mambelfish.class.php:587) in /home/joomla/public_html/index.php on line 231

Warning: Cannot modify header information - headers already sent by (output started at /home/joomla/public_html/components/com_mambelfish/classes/mambelfish.class.php:587) in /home/joomla/public_html/index.php on line 232

Warning: array_keys(): The first argument should be an array in /home/joomla/public_html/components/com_mambelfish/classes/mambelfish.class.php on line 327

Warning: Invalid argument supplied for foreach() in /home/joomla/public_html/components/com_mambelfish/classes/mambelfish.class.php on line 327

Warning: Invalid argument supplied for foreach() in /home/joomla/public_html/includes/frontend.php on line 64

Warning: array_keys(): The first argument should be an array in /home/joomla/public_html/components/com_mambelfish/classes/mambelfish.class.php on line 327

Warning: Invalid argument supplied for foreach() in /home/joomla/public_html/components/com_mambelfish/classes/mambelfish.class.php on line 327

Warning: Invalid argument supplied for foreach() in /home/joomla/public_html/includes/frontend.php on line 64




Any ideas?


Top
  E-mail  
 
Posted: Wed Oct 12, 2005 6:40 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Oct 05, 2005 11:50 am
Posts: 65
Try the alternatives written by walb and  myself in this thread.

http://forum.joomla.org/index.php/topic,6272.0.html

_________________
[url=http://"http://www.joomla.st"]Joomla Support[/url]


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 52 posts ]  Go to page 1, 2  Next

Quick reply

 



Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group