The Joomla! Forum ™





Post new topic Reply to topic  [ 39 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Fri Sep 16, 2005 5:24 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 16, 2005 3:04 pm
Posts: 6
Location: Buenos Aires
hi,
I'm running a 4.5.2.3 and just finished to install a mambelfih 1.5 component.
set up two languages and try to translate some content.
thats when my problems begin:

I DONT SEE THE ORIGINAL CONTENT?!?!?!


look the snapshot to see what i mean...

Image

what im doing wrong???

_________________
http://www.serdika.com.ar - Diseño Industrial & Desarrolos Web in Buenos Aires, Argentina


Top
 Profile  
 
PostPosted: Fri Sep 16, 2005 6:38 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 10:41 am
Posts: 15733
Hi,

You are doing nothing wrong. This might be a bug. You have to check if you are running on php 4.4.0. If this is the case, it's a known bug which should be fixed in mambelfish 1.6. In the mean time you can find a solution on a bug report here:

http://mamboforge.net/tracker/index.php?func=detail&aid=7375&group_id=7&atid=109

Just scroll down on the bugreport to the comments, there you find the solution.
I have implemented this fix 2 or 3 times with succes. Hope it helps you as well.

_________________
Regards Robin

http://www.linkedin.com/in/robinmuilwijk - http://twitter.com/i_robin


Top
 Profile  
 
PostPosted: Fri Sep 16, 2005 7:19 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 16, 2005 3:04 pm
Posts: 6
Location: Buenos Aires
thanks robink
this topic save my ass  :o

there was a little mess in this topic so i cleaned it up a little and this is the solution:

Code:
1) In file: mambo/includes/domit/xml_domit_lite_parser.php on
lines ~1670 and ~1673 just before "xml_parser_create()"
remove "&"
(ampersands)
(tildes mean, that exact line numbers depend on exact version
of Mambo)
BEFORE:
~~~~~~~~~~~~~~~~~~~~~~~
<?php
....
$parser =& xml_parser_create('');
}
else {
$parser =& xml_parser_create();
...
?>
~~~~~~~~~~~~~~~~~~~~~~
AFTER
~~~~~~~~~~~~~~~~~~~~~~~
<?php
...
$parser = xml_parser_create('');
}
else {
$parser = xml_parser_create();
...
?>
~~~~~~~~~~~~~~~~~~~~~~


2) In file:
mambo/administrator/components/com_mambelfish/mambelfish.class.php
on
line ~295 add "&" (ampersand) before function name
getTable
BEFORE:
~~~~~~~~~~~~~~~~~~~~~~~
<?php
...
function getTable() {
if( !isset($this->referenceInformation["table"])
&&
isset($this->_xmlFile) ) {
$tableElement =
$this->_xmlFile->getElementsByPath('reference/table', 1);
...
?>
~~~~~~~~~~~~~~~~~~~~~~
AFTER
~~~~~~~~~~~~~~~~~~~~~~~
<?php
...
function & getTable() {
if( !isset($this->referenceInformation["table"])
&&
isset($this->_xmlFile) ) {
$tableElement =
$this->_xmlFile->getElementsByPath('reference/table', 1);
...
?>
~~~~~~~~~~~~~~~~~~~~~~

_________________
http://www.serdika.com.ar - Diseño Industrial & Desarrolos Web in Buenos Aires, Argentina


Top
 Profile  
 
PostPosted: Sun Sep 18, 2005 10:42 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Aug 26, 2005 8:34 pm
Posts: 90
Location: Ljubljana, Slovenia
Hi!

I have just tried this and must say it works for Mambo 4.5.2.3. However, I does not do the trick for Joomla 1.0.

For Joomla 1.0 I have:
- copied the files of Joomla 1.0 over Mambo 4.5.2.3
- applied the same corrections (although the one in mambo/includes/domit/xml_domit_lite_parser.php is not needed since it is already modified),
- applied index.php and index2.php provided by walb here:
http://forum.joomla.org/index.php/topic ... l#msg48301


Last edited by aljaz on Sun Sep 18, 2005 10:47 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sun Sep 18, 2005 10:59 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 10:41 am
Posts: 15733
Hi,

I knew Alex/akede was already working on some core files in Joomla! 1.0 so the Fish will work without patching any core files. This is probably why it's not working correct.

I am waiting with Mambo 4.5.2.3. sites running with the Fish untill Alex has a new version out for Joomla!

_________________
Regards Robin

http://www.linkedin.com/in/robinmuilwijk - http://twitter.com/i_robin


Top
 Profile  
 
PostPosted: Wed Oct 05, 2005 8:23 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Oct 05, 2005 11:50 am
Posts: 67
That getTable function is not preset in the file in the latest downlaod of mambefish. And it still does not work.

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


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 5:55 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 10:41 am
Posts: 15733
Hi,

@ nathandigriz ; are you trying to get mambelfish to work on mambo or joomla? In joomla some code has been changed already. So mambelfish will not work unless you patch some files yourself. There is a patch on the forums somewhere, would have to look around a bit if you need it.

_________________
Regards Robin

http://www.linkedin.com/in/robinmuilwijk - http://twitter.com/i_robin


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 7:24 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Oct 05, 2005 11:50 am
Posts: 67
I have gotten Mambo 4.5.2.3 to work partially. But I really would like to have Joomla 1.0.2 and mambelfish. I don't mind having to patch the code if you can find those threads.

I am also looking for information on getting the component/module /block names to be switchable along with the content. I saw wabnl 's site where this was done but I can't find any info on how to do this.

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


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 7:40 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 10:41 am
Posts: 15733
Hi,

Check http://forum.joomla.org/index.php/topic,6464.0.html. User Walb has posted there and also attached a patch. You might need to check what version those files are of Joomla.

_________________
Regards Robin

http://www.linkedin.com/in/robinmuilwijk - http://twitter.com/i_robin


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 7:57 am 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 824
That is an old posting, try this system joombot which does the trick on my joomla 1.0.2 site without hacking core files.
It only initialises mambelfish as it would do in the core hacks.
Make sure you use the original Joomla index.php and index2.php.
Install the bot and publish it.

If joomfish releases, plse deinstall this bot, since I assume Joomfish will also come with a system bot.

I recommend to use 1.0.2 since mambelfish gives warnings due to a bug in the weblinks search bot, which is solved in 1.0.2


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


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 9:30 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Oct 05, 2005 11:50 am
Posts: 67
This is not working for Joomla. Let's try a little step by step. This is what I have done to get it to work.

system:
php4.4 cgi-fcgi

Installed:

  • Joomla 1.0.2
  • Mamblefish 1.5
  • swedish_frontend_4.5.2

Configured:

  • Languages activated. choosen combo box in frontend
  • mambelfish_class.php - added because it is missing after the install of the mambel fish component with changes to getTable() (as &getTable)
  • the domit parser fix does not have to be done in Joomla. But after doing so in Mambo 4.5.2.3 this is were things start working.
  • install index.php and index2.php from core patch for mambo 4.5.2.
  • mambelfish.html.php - around  line 123 combo box does not work incorrect querystring parameters. see hack below
  • install: mbf_module.zip and activate

Mambelfish should be now working. If you have gotten this far then you will also notice that Joomla 1.0.2 still has a bug where non englsih characters are not encoded into the database correctly. A bug report has been filled. But the problem may not be fixed any time soon as it has gone several months without notice.



Hacks Away!

content.html.php

Code:
// displays Item Text
                        $bad = array("Ã¥", "ä", "ö");
         $good   = array("å", "ä", "ö");
         $row->text = str_replace($bad,$good,$row->text);
         echo $row->text;


components/com_mambelfish/classes/mambelfish.class.php

 
Code:
                                              $refField = $row->reference_field;
                                                $bad = array("Ã¥", "ä", "ö");
                                                $good   = array("å", "ä", "ö");
                                                $result->$refField = str_replace($bad,$good,$row->value);



mambelfish.html.php

Code:
$href = HTML_mambelfish::_createHRef (null);
            $string = "&lang=".$iso_client_lang;
            $href = str_replace($string,"",$href);
            $q='?';
            if(strpos($href,'?')){$q='';}
            $langlist = mosHTML::selectList( $langOptions, 'lang', 'class="inputbox" size="1" onchange="document.location.replace(\'' .$href.$q.'&lang=\' +this.value);"', 'value', 'text', $iso_client_lang );
            $outString = $langlist;
            break;


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

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


Last edited by nathandigriz on Thu Oct 06, 2005 10:06 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 9:46 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Aug 26, 2005 8:34 pm
Posts: 90
Location: Ljubljana, Slovenia
Joomla 1.0.2 works with the bot - it is succesfully initialized and pages are properly displayed, however, translations are not possible.


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 11:43 am 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 824
I just created a document in the front end and made a translation in the front end. The translation is saved as well but is not automatically published by MBF.
If you look at the back end at MBF you will find the translated documents with the status unpublished. As far as I know that is the behaviour of MBF. The 1st time you have to unpublish translations in the back end. I'm not sure of this since I always do my translations in the backend and do not have that problem.


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 11:54 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Aug 26, 2005 8:34 pm
Posts: 90
Location: Ljubljana, Slovenia
That's what I was referring to but did not specifically mention: I also do all the translation in the back-end but there is no original text shown and even if I do the changes it still does not save translations in the database.

I did a copy-paste of joomla 1.0.2 over mambo 4.5.2.3.


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 12:37 pm 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 824
Hmm. This is strange.
I cannot reproduce that problem. I just created an original document in the back end.
Went to MBF which correctly reports me that I have no translations for that document.
If I try to translate it, it shows also the original text and saves the translation also correctly.

Do you have also PHP4.4.0? Mine is 4.3.11


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 12:39 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Aug 26, 2005 8:34 pm
Posts: 90
Location: Ljubljana, Slovenia
Oh yes! I forgot. I'm running 4.4. and that IS the problem (don't know why, though. my provider has 4.3.11 ;) ). Maybe I should downgrade at home as well.


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 12:45 pm 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 824
Try a downgrade because it seems that some packages have trouble with it.
PHP 4.4.0 is presented as a bug release, but also some coding rules are tightened which could affect some programs.


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 1:11 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Aug 26, 2005 8:34 pm
Posts: 90
Location: Ljubljana, Slovenia
khm. did the downgrade. However, things got weirder... Now if I publish an item in the primary language, it says there's no translation and it does not show the text. If I do translation into second language (english), it shows the text for the english choice. I played a bit with this and inserted and published translation also for the primary language (copy-paste) and publish it. Now the text is shown. This is the step that wasn't necessary before. Do you have to do the same in order to see text in original language?


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 1:37 pm 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 824
Maybe you should check the MBF language configuration, tab Frontend.
I've set 'no translation is available?' to 'The original content', that might explain the difference.


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 1:59 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Aug 26, 2005 8:34 pm
Posts: 90
Location: Ljubljana, Slovenia
Yes, that does the trick. Interesting. I still get this error when saving this particular configuration:

Fatal error: Call to a member function on a non-object in

      ...\administrator\components\com_mambelfish\admin.mambelfish.php on line 132

However, the option did save in the database and it works.

Thanks!


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 2:19 pm 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 824
You are welcome and now running on Joomla! with Mambelfish.
I can't reproduce your fatal I tried it also, but no problem.

My system bot works! :P


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 5:25 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 10:41 am
Posts: 15733
Thanks for the bot walb, great !  ;)

_________________
Regards Robin

http://www.linkedin.com/in/robinmuilwijk - http://twitter.com/i_robin


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 6:19 pm 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 824
As always Robin your quite welcome!
A few things should be said; this bot bridges only the gap between MBF 1.5 + Mambo 4.5.2.3 and Joomla! And any problems in 4.5.2.3 will not be solved by this bot, it can only initialize Mambelfish!
As soon as Joomfish releases, please warn the ppl to de-install this bot, since it is only a temporarely solution and Joomfish will come with its own system bot, which may interfere.
For now now it works perfectly on several Joomla sites without hacking of any Joomla core file.


Top
 Profile  
 
PostPosted: Thu Oct 06, 2005 10:09 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Oct 05, 2005 11:50 am
Posts: 67
You may want to add that php 4.3.11 and below have been tested. I could not get this to work in php4.4, hence my hacks.

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


Top
 Profile  
 
PostPosted: Wed Oct 12, 2005 1:41 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Aug 18, 2005 5:53 pm
Posts: 54
Location: Johnson City, TN
thanks nathandigriz, that worked for me on the dev box running php4.3.10, are you saying this won't work on 4.4?


Top
 Profile  
 
PostPosted: Wed Oct 12, 2005 4:22 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Oct 05, 2005 11:50 am
Posts: 67
Just using the mambot that walb created does not work on php4.4( in safe mode) I had to use his older solution and borrow some code from mambo. This is covered in my step by step. So depending on your php version, pick the right one for yourself.

I hope that more developers switch to php5 to develop on because there are no compatiblity or breakage issues between versions.

A php5 version should be the next big Joomla priority. php4 is starting to suck  :laugh:

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


Top
 Profile  
 
PostPosted: Thu Oct 13, 2005 7:52 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue Sep 20, 2005 1:10 pm
Posts: 100
Location: Lausanne (Switzerland)
Hi all,
perhaps this post can help someone who try to make mambelfish 1.5 works:
http://forum.joomla.org/index.php/topic,9408.0.html

CU

_________________
PONS++


Top
 Profile  
 
PostPosted: Thu Oct 27, 2005 8:39 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Oct 26, 2005 12:33 pm
Posts: 5
Hello,

I have a big problem using the walb mbf_language bot.
When I try to edit (by using the frontend interface with a publisher user) a content item with the editor (mosce or another one...) there is no problem I have the previous text of the item in the editor. But when I try to save, it seems to be ok, I get the success message, but the content remain the same for the item. It doesn't depend of the editor, it doesn't work even without editor. If i add a new item there is no problem the item is correctly added. When I try to edit and save an item with the administrator interface it works fine !!
If I unpublish the mbf_language bot it works, but i can't use multi-language cause I need to unpublish Mambelfish too...
I don't understand. Please can you help me. I have to stay with Mambo if I can't solve this problem cause I need to allow other users than administrator to edit content on my site.

Thanks for help.


Top
 Profile  
 
PostPosted: Thu Oct 27, 2005 8:45 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue Sep 20, 2005 1:10 pm
Posts: 100
Location: Lausanne (Switzerland)
which version of php? 4?

_________________
PONS++


Top
 Profile  
 
PostPosted: Thu Oct 27, 2005 9:13 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Oct 26, 2005 12:33 pm
Posts: 5
yes 4.3.11


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 39 posts ]  Go to page 1, 2  Next



Who is online

Users browsing this forum: No registered users and 1 guest


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® Forum Software © phpBB Group