Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 1:19 pm (All times are UTC )

 




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 361 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 13  Next
Author Message
Posted: Sun Jan 08, 2006 3:38 pm 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 823
Ok, I'll attach my latest version.
If you move it to your first posting that would be fine. After that I will remove my file from this post to avoid any confusion.
The xml holds version 1.0.2

I added the isset test but changed it to
if (isset($database)) $database = null;

Reason:
It kills also any references to it.
The & reference is used by J!1.1 and is a more certain way to get rid of $database and any reference. Just tested it on J!1.1 too and works better. (unset did not work properly)
And yes, I have Mambelfish up and running in full under J!1.1 latest svn too with the same bot.
This bot works for 1.0.x and 1.1 ;)

EDIT> removed the attachment, since it is now attached at the first posting of Geraint


Last edited by walb on Sun Jan 08, 2006 4:11 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Sun Jan 08, 2006 4:04 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 553
Location: Gogledd Cymru
Thanks walb - done the update of the first message.

I too have J1.1 working fine (with a bot I wrote myself before I saw yours  ;)).

Out of interest - how have you dealt with the inheritance of mlDatabase in J1.1?  I've created an artificial class in between mlDatabase and JDatabaseMySQL or JDatabaseMySQLi which I conditionally include so that mlDatabase can have JDatabaseMySQL or JDatabaseMySQLi as a parent class determined at runtime.

Geraint

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
  E-mail  
 
Posted: Sun Jan 08, 2006 4:21 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Jan 08, 2006 3:26 pm
Posts: 5
:) :D THX very much for this guide. for me it works perfect. But now i have to translate all that stuff :'( :laugh:

THX
snow


Top
  E-mail  
 
Posted: Sun Jan 08, 2006 4:40 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Dec 25, 2005 5:47 pm
Posts: 6
Hi walb,

thanks very much for your update.

But there is till the problem, that in the debug mode no sql query are shown.

For me I can live with this.

John


Top
  E-mail  
 
Posted: Sun Jan 08, 2006 4:45 pm 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 823
@Geraint

Removed my attachment from my post as said.

I did nothing of that sort.
I played a trick on J!1.1 and put this in the bot you have now:
          if (defined( '_JEXEC' )) { // Joomla! 1.1 dirty trick to get the language switched by brute force
      $mainframe->_lang = $mosConfig_lang;
      }
I don't think that it is a valid way of doing that, but for now it works ;)
And I prefer to use Joomfish when it is released. :)

The only thing I changed in the MBF component was to make it work with register globals off emulation, because on does not seem to work properly in the current SVN.
That caused the language configuration not being saved properly (table only).
Next 'mosinstallation' is changed to 'installation' tag in the english.xml file, so I trained MBF to check for both.

I do this mainly to test the backward compatibility of 1.1.
Currently most multi lingual packages will fail in svn because no one has a eng_GB.php or nld_NL.php
I brought that to the attention of the dev team. They are still thinking of a solution.


Top
  E-mail  
 
Posted: Sun Jan 08, 2006 5:06 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 553
Location: Gogledd Cymru
@walb

I used $mainframe->setUserState('lang', language goes here); to the same effect.  I think Joomfish will probably need to move from 2 character ISO codes to the 6 character approach in J1.1 but a mapping is easy enough to deal with.

What I was getting at with mlDatabase issue was that the mlDatabase class can no longer inherit from a simple database class (e.g. JDatabase) since the inheritance is driver dependent (mySQL or mySQLi - and more to follow).

Geraint

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
  E-mail  
 
Posted: Sun Jan 08, 2006 6:59 pm 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 823
Let's try a multiple clent answer! :)
snowblast wrote:
:) :D THX very much for this guide. for me it works perfect. But now i have to translate all that stuff :'( :laugh:

THX
snow
Yes, you have to that yourself and it is a tedious job! I did it myself. Grumpf  :o
john200 wrote:
Hi walb,

thanks very much for your update.

But there is till the problem, that in the debug mode no sql query are shown.

For me I can live with this.

John
Don't worry Joomfish will be released in due time.
Geraint wrote:
@walb

I used $mainframe->setUserState('lang', language goes here); to the same effect.  I think Joomfish will probably need to move from 2 character ISO codes to the 6 character approach in J1.1 but a mapping is easy enough to deal with.

What I was getting at with mlDatabase issue was that the mlDatabase class can no longer inherit from a simple database class (e.g. JDatabase) since the inheritance is driver dependent (mySQL or mySQLi - and more to follow).

Geraint
Geraint,
could it be possible to clean up this from our dev talk (Alex has the authority) and only to stick to the subject.
Plse open up a new thread and I'm willing to help.


Top
  E-mail  
 
Posted: Mon Jan 09, 2006 8:43 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Jan 09, 2006 7:36 pm
Posts: 2
Hi,

I'm having exactly the same problem as mtk - so I'll try to answer a few of this:

Quote:
By the way - what web server, OS, browser, DB, PHP version are you using?  Do you have register_globals emulation on or off?


Webserver: Apache/1.3.33 (Unix) mod_fastcgi/2.4.2 FrontPage/5.0.2.2635 PHP/4.4.1
OS: Windows XP Prof
Browser: Firefox 1.0.7
DB:  4.0.23-Max-log
PHP:  4.4.1
Register Globals: OFF

I have to add that I don't even understand what this means - without the System Info tab I wouldn't even know how to find out...

Cheers,
Ben.


Top
  E-mail  
 
Posted: Mon Jan 09, 2006 9:53 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Sep 06, 2005 9:10 am
Posts: 251
Location: Netherlands
Maybe a link to this guide should be placed in the FAQ section of the forum. It took me ages to find it  :-[

Btw, it al works now so i realy reaaaly love it  :-*

_________________
Joomla insite


Last edited by MarkV on Mon Jan 09, 2006 9:58 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Tue Jan 10, 2006 8:57 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 553
Location: Gogledd Cymru
benma wrote:
I'm having exactly the same problem as mtk - so I'll try to answer a few of this:


MTK's problem was caused by his dbPrefix being blank (as opposed to "jos_" or something similar) .  Check that in your global config - if it is blank then either reinstall with a non-blank prefix or make the following change to

function _getTableName()  in administrator/components/com_mambelfish/mambelfish.class.php:

if ($mosConfig_dbprefix!="") $table = ereg_replace( $mosConfig_dbprefix, '', $table);

Hope this helps

Geraint

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
  E-mail  
 
Posted: Tue Jan 10, 2006 9:09 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Jan 09, 2006 7:36 pm
Posts: 2
Excellent - it did help!

Thank you so much!

Ben.


Top
  E-mail  
 
Posted: Tue Jan 10, 2006 4:29 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 02, 2005 6:59 am
Posts: 15
If anyone is having problems getting it working with ComboBox as "Frontpage Appearance" of the module read here

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

_________________
--- Die Welt ist rund, drum spring ich im Viereck ---


Top
  E-mail  
 
Posted: Tue Jan 10, 2006 5:05 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Jan 10, 2006 4:48 pm
Posts: 7
Location: Austria
Geraint's guide worked perfectly for me, thanks god! I just wondered how I would survive without having the fish on my site  ;D. Thanks to you, this community is amazing!

_________________
The most amazing things in life happen when they are completly unexpected!


Top
   
 
Posted: Thu Jan 12, 2006 1:36 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Dec 12, 2005 3:41 pm
Posts: 5
Hi guys,

About a month ago, when I installed Mambelfish on Joomla, I encountered problems with search. In particular, the search didn't work with umlaut characters. That is, words like 'käydä' were not found by search.

I managed to fix this problem on my site at the time (see link below). But I am wondering if the Mambelfish files provided by Geraint have fixed that problem as well (so that in my next installation of Joomla/Mambelfish I don't have to redo the same thing again).

Also, multlingual search only searches content, but not other things like the Contact details. Has anything happened to fix this?

Best regards,

Zoltan
http://www.avoima-consulting.com


Last edited by webcruiser on Thu Jan 12, 2006 1:54 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Thu Jan 12, 2006 1:39 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Nov 21, 2005 9:33 pm
Posts: 39
Hi guys,
Im not sure if this is the same problem that you were having above with the ereg_replace() error, but I was getting a similar error message.
I checked the code, and it was attempting to get the table name minus the db prefix (eg jos_, or mos_) using the ereg function.
The incorrect assumption was that the db was using any prefix at all, and in the case that there was none, an empty prefix string was being passed to the regexp function causing the error.
Just simply add a check one line before to rid yourself of the problem,
eg

if( $mosConfig_dbprefix )
$table = ereg_replace( $mosConfig_dbprefix, '', $table);

edit:  ha, I didnt notice a second page to this. I see the error has been corrected already.


Last edited by MrMoney on Thu Jan 12, 2006 1:41 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Fri Jan 13, 2006 11:09 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Dec 08, 2005 11:04 pm
Posts: 6
Hi,

I currently installing the files you provided and I'm at step 3 (mbf_module.zip)  but I see it's in german.
Is there an english version somewhere ?

Thanks for this great guide


Top
  E-mail  
 
Posted: Sat Jan 14, 2006 5:33 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 553
Location: Gogledd Cymru
Alex - the author of Mambelfish is a German speaker hence the German content.  This doesn't affect the display. 

You could try experimenting with some the different values or check a german dictionary online.  Most people seem to get by ok.

I'll make sure all the instructions are at least bilingual in the next release

Geraint

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
  E-mail  
 
Posted: Sun Jan 15, 2006 7:50 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Dec 08, 2005 11:04 pm
Posts: 6
I guess it's a good excuse to learn my first few words in german :D

Btw, the installation went flawlessly.
Thanks a lot


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 9:16 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Sun Sep 11, 2005 8:51 pm
Posts: 56
hi

I installed Joomla 1.05 with Mambelfish as explained in this great guide. Everything works fine.

My question:
can I upgrade to Joomla 1.07 (1.0.5 to 1.0.7 Patch Package) or are there any known problems?  ???

Thanks for your help!
g0nz0


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 9:34 am 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 823
I upgraded from 1.0.5 to 1.0.7 without a problem and also mambelfish survived fine.
But I make allways a backup. Just in case... ;)


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 11:34 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 553
Location: Gogledd Cymru
walb wrote:
I upgraded from 1.0.5 to 1.0.7 without a problem and also mambelfish survived fine.
But I make allways a backup. Just in case... ;)


Thanks walb - I've just updated the message accordingly.

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 1:27 pm 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Jan 11, 2006 12:56 pm
Posts: 4
May be I have done something not right...
I dont see the module on my site, and I don't see it on the Module Manager to activate it...
Any ideas how to handle that? Sorry if it is something stupid, but as a newbie you can imagine how much time I spent looking for the keyy to this mystery!  :-[


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 1:45 pm 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 823
If you installed the module as described in step 3
3.Install language switching module (mbf_module.zip - remember to publish the module)

If no error was displayed at installation it should be available in the module manager. But it could be possible that you did oversee that you had an additional page in the module list and that it is displayed there? :)


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 12:16 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Nov 24, 2005 10:41 am
Posts: 10
Hi !

I also have everything installed, without NO error. I have both english & spanish languanges...

However, althougt components show correctly, I never have any document to translate. I meant, on the
Components => Mambel Fish => Translation , everything is empty, althought I have contest that I should modify/translate.

Any hint ?

hanselmann wrote:
Hi

I also just installed everything and in general it seems to work.
However when I do this:

Components => Mambel Fish => Translation
and then I translate something



Top
   
 
Posted: Tue Jan 17, 2006 8:06 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 553
Location: Gogledd Cymru
@agorosti

1. What versions of PHP and MySQL are you running?
2. What languages do you have installed in Joomla?
3. What languages do you have setup for Mambelfish?

Geraint

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 8:35 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Nov 16, 2005 2:50 pm
Posts: 21
Location: Vienna Austria
Hello all,

I am unable to install the bot_mbf_language_system. The others worked fine, but this bot gives me the following error:

Warning: copy(/www/XXXXX/www.foerderportal.com/mambots/system/mbf_language.php): failed to open stream: Permission denied in /www/XXXXX/www.foerderportal.com/administrator/components/com_installer/installer.class.php on line 356

???

ks


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 8:47 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 553
Location: Gogledd Cymru
/www/XXXXX/www.foerderportal.com/mambots/system needs to be writeable by Apache/php - otherwise permission is denied.

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 9:00 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Nov 16, 2005 2:50 pm
Posts: 21
Location: Vienna Austria
Silly.  :o Thanks!


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 11:59 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Jan 16, 2006 10:50 pm
Posts: 7
Hi,

When I try to translate contents it displays "Translation incomplete or original changed" icon in state. But example menu translating works fine.
And when I try to edit contents in site (not in admin panel) and save it will replace translated content with default language's content.

Any ideas how to fix this?


Top
  E-mail  
 
Posted: Tue Jan 17, 2006 1:25 pm 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 823
I'm testing more thorough with 1.0.7. There might be a problem.
Added new content and I don't seem to be able make a translation anymore, but it overrides the original content. At least in the front end.
Back end seems normal. Can make translations. But frontend seems to override the origianal.

It needs some investigation.


Last edited by walb on Tue Jan 17, 2006 1:31 pm, edited 1 time in total.

Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 361 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 13  Next

Quick reply

 



Who is online

Users browsing this forum: Vol666 and 5 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