Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 11:57 am (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, 6, 7, 8 ... 13  Next
Author Message
Posted: Wed Jan 25, 2006 1:28 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Nov 12, 2005 10:55 pm
Posts: 842
Location: Israel
walb wrote:
About that image.
You mean a small image in front or at the end of the menu item?
If so at can be done,  but not very much recommended by me. That image is specified by a parameter in the menu item.
If you extend the contentelement menu.xml with a field params you have control over all of its parameters.
However you will increase the effort of maintenance of your menu items sincerely since you need to keep them in sync with the original and might lead to confusing siuations.
It works though, but I would recommend to use another image e.g. exclamation mark  or at least some sort of symbol that is not language dependent.

I'm popping up this problem, because it's urgent.
The English menu has ICON labled with the needed names for the menu.
when changing language I need to change the labels.
as told, changing the ICON is too much work.

I could use the CSS of the menu to look similar to the ICON (it's just a square with borders), but it's size should change according the size of the label.
but still be stretch to occupy the entire width. (it's an horizontal menu).

any ideas?

_________________
"In a world without walls and fences,
who needs Windows & Gates?"

http://www.smartmtk.com | http://www.lighthost.co.il/webhosting-for-joomla


Top
   
 
Posted: Wed Jan 25, 2006 1:36 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Sep 06, 2005 9:10 am
Posts: 251
Location: Netherlands
cferd wrote:
I've been, and keep, getting the validation problem with "&lang=xx". No matter what I try and/or modify, it remains "&lang=xx". I'm looking to make it say "&lang=xx".

I did try the last changes provided above (the last one I assume  :o in mambelfish.html.php also), but nothing. Anyone know what I could change next? Thanks


The code provided above does not solve that problem. It solves the problem of the menu having many & instead of & 's.

You can go to includes/sef.php
go to the sefRelToAbs function.

find the line that says $string .= '&lang='. $iso blabla etc
En replace that & with a &.
So yoy get:
$string .= '&lang='. $iso_client_lang;

After doing that the warnings will be gone too, but if you upgrade (now or in de future) there might be a chance this code will be overwritten.


not true ;)

_________________
Joomla insite


Last edited by MarkV on Wed Jan 25, 2006 1:45 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Wed Jan 25, 2006 2:06 pm 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 823
@mtk
Maybe the easiest would be to load different CSS style sheets, based on the global $iso_client_lang, which could be 'en' or 'he'.
If you make that part of the css filename you can load the language specific stylesheet in your index.php and style it into the language you have current.

Is that a possibility?
Doing so you can also control RTL or LTR by CSS. :)


Top
  E-mail  
 
Posted: Wed Jan 25, 2006 2:15 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Nov 12, 2005 10:55 pm
Posts: 842
Location: Israel
I could also do a specific class depnding on that variable.

thanks, I'll try changing the script for the menu.


btw, the DIR is not a problem. I can configure it with DEFINE in the language file...

_________________
"In a world without walls and fences,
who needs Windows & Gates?"

http://www.smartmtk.com | http://www.lighthost.co.il/webhosting-for-joomla


Top
   
 
Posted: Wed Jan 25, 2006 2:18 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Sep 04, 2005 8:33 am
Posts: 17
Ok, what I did was replaced every single occurence of "&" with "&" in sef.php and that did the trick. Thanks.


Top
  E-mail  
 
Posted: Wed Jan 25, 2006 2:34 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Jan 25, 2006 2:06 pm
Posts: 2
Four issues:

1. Fatal error when $mosConfig_dbprefix is empty (mambelfish.class.php line 1024)

2. When you want to translate content, images are not correctly displayed: it takes mamboroot/administrator/ as root folder, but it should be mamboroot/

3. When translating static content, there are two content fields, but fulltext is not valid for this static content items

4. There is no copy/clear button for WYSIWYG fields


Last edited by Jorrit on Wed Jan 25, 2006 2:38 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Wed Jan 25, 2006 2:57 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Sep 18, 2005 10:47 pm
Posts: 16
Hi
I have a problem with SEO (or OpenSef) and mambelfish.
Initially nothing worked and I used the modification advised by MarcV and it fixed most of the problem : all the internal links of my site works.
But the problem is I can only change of language on the frontpage. If the current URL  is different from http://localhost/index.php?lang=xx, the language parameter is ignored.

Did I forget something ?


Top
  E-mail  
 
Posted: Wed Jan 25, 2006 3:02 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Nov 12, 2005 10:55 pm
Posts: 842
Location: Israel
The ISO for the languages in the configuration...

_________________
"In a world without walls and fences,
who needs Windows & Gates?"

http://www.smartmtk.com | http://www.lighthost.co.il/webhosting-for-joomla


Top
   
 
Posted: Wed Jan 25, 2006 3:04 pm 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 823
@ Jorrit
What version of Joomla?

1. Did you install AND publish the mbf language initialisation bot?
The bot uses globals of the configuration.php so the db_prefix should be available unless you have a local problem.
2. Might be related to 1.
3. Works as designed. Don't foresee any design enhancements until Joomfish.
4. See 3.

Regards


Top
  E-mail  
 
Posted: Wed Jan 25, 2006 3:08 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Jan 25, 2006 2:06 pm
Posts: 2
walb wrote:
@ Jorrit
What version of Joomla?

Latest, 1.0.7

walb wrote:
1. Did you install AND publish the mbf language initialisation bot?
The bot uses globals of the configuration.php so the db_prefix should be available unless you have a local problem.

This is line 1024:
$table = ereg_replace( $mosConfig_dbprefix, '', $table);

This code throws an error when $mosConfig_dbprefix == '', which is imo a valid value. This causes the following errors:
Warning: ereg_replace(): REG_EMPTY in ......\administrator\components\com_mambelfish\mambelfish.class.php on line 1024
Warning: ereg_replace(): REG_EMPTY in ......\administrator\components\com_mambelfish\mambelfish.class.php on line 1024
Fatal error: Call to a member function on a non-object in ......\components\com_mambelfish\classes\mambelfish.class.php on line 260


Before line 1024 it should check of $modConfig_dbprefix == ''. Aside of that, I think using ereg_replace for a simple str_replace is unnecessary.

When commented out, the program works fine.


Top
  E-mail  
 
Posted: Wed Jan 25, 2006 3:11 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Nov 12, 2005 10:55 pm
Posts: 842
Location: Israel
@walb:
thanks I change the script creating the menu to be:
$class = $class . '-' . $iso_client_lang;

created 2 classed, one for each language...

_________________
"In a world without walls and fences,
who needs Windows & Gates?"

http://www.smartmtk.com | http://www.lighthost.co.il/webhosting-for-joomla


Top
   
 
Posted: Wed Jan 25, 2006 3:12 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Nov 12, 2005 10:55 pm
Posts: 842
Location: Israel
@jorrit:
it was covered at the first posts of this thread...

_________________
"In a world without walls and fences,
who needs Windows & Gates?"

http://www.smartmtk.com | http://www.lighthost.co.il/webhosting-for-joomla


Top
   
 
Posted: Wed Jan 25, 2006 3:42 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Sep 18, 2005 10:47 pm
Posts: 16
In fact I think the ISO are OK.
I just added the mambot (before it worked without it) and it works better.
But i have a stange behaviour :

Site in French [click on English flag] -> English : Ok
[click on French flag] -> only the interface is in French
[second click on French flaf] -> everything is in French

PS : The locale iso is  fr_fr and everything is OK without SEO (and I have no cache)


Last edited by JSB on Wed Jan 25, 2006 3:49 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Wed Jan 25, 2006 3:54 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Nov 12, 2005 10:55 pm
Posts: 842
Location: Israel
check the languages/french.php file.
i'll find the line:
Code:
DEFINE('_LANGUAGE','????');

I think this is the ISO you need.

_________________
"In a world without walls and fences,
who needs Windows & Gates?"

http://www.smartmtk.com | http://www.lighthost.co.il/webhosting-for-joomla


Top
   
 
Posted: Wed Jan 25, 2006 4:06 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Sep 18, 2005 10:47 pm
Posts: 16
Is is very strange :( :

With SEO : I checked the ISO (it was "fr") but the problem is still the same, I need to click twice to the original language to have the good translation of the article.

With OpenSEF : only one click is OK, but the translated articles seem to be chosen randonmly :(


Top
  E-mail  
 
Posted: Wed Jan 25, 2006 4:07 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Nov 12, 2005 10:55 pm
Posts: 842
Location: Israel
are you still using 'fr_fr' as the ISO in the FISH?
change it to 'fr'...

_________________
"In a world without walls and fences,
who needs Windows & Gates?"

http://www.smartmtk.com | http://www.lighthost.co.il/webhosting-for-joomla


Top
   
 
Posted: Wed Jan 25, 2006 4:16 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Sep 18, 2005 10:47 pm
Posts: 16
No, in mambelfish I use "fr" and "en".


Top
  E-mail  
 
Posted: Wed Jan 25, 2006 4:29 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Aug 17, 2005 11:22 pm
Posts: 395
Location: Southern California
I have a request, and would need a little support to answer some development related questions (as they come up).

Mamblefish compatibility has been on the radar for samSiteMap for a while now, and with the new move toward inclusion in the core, we really need to get this nailed down.  Our problem is that we (SAM Code Team) are not multilingual.  We speak only english.

We also would be hard pressed to find the time to create a site and go through the process of translating the content for test purposes.

Would anyone be willing to provide a complete Joomla 1.07 database dump from phpMyAdmin (excluding user and acl tables) for us to use to test with?  That would considerably shorten our time commitments needed to test and develop a solution for samSiteMap.

I can assure anyone willing to do so that the content would not be redistributed, and would only be installed on test servers located on private networks in non-internet addressable space.  Our test and development servers cannot be accessed via the internet at all.

Last request would be for someone to be available for us to ask questions of with regard to mamblefish as we encounter the inevitable integration issues.

Thanks to any who can assist,

GRAM

_________________
GRAM
http://coders.mlshomequest.com/ < -- Developer of samSiteMap component


Top
  E-mail  
 
Posted: Wed Jan 25, 2006 5:57 pm 
User avatar
Joomla! Guru
Joomla! Guru
Online

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 553
Location: Gogledd Cymru
walb wrote:
Hmm.
I tried the last modification of Geraint with a combobox and it did not switch.
...

@Walb

Whoops - thanks for that.  It'll  teach me not to make a change and then go out for the rest of the day  :-[

Geraint

p.s. Main topic amended with new version.  Also I have added a comment about making the system mambot directory writeable.

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
  E-mail  
 
Posted: Wed Jan 25, 2006 7:05 pm 
User avatar
Joomla! Guru
Joomla! Guru
Online

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 553
Location: Gogledd Cymru
Jorrit wrote:
1. Fatal error when $mosConfig_dbprefix is empty (mambelfish.class.php line 1024)


Change line 1024 to read:
Code:
      if ($mosConfig_dbprefix!="") $table = ereg_replace( $mosConfig_dbprefix, '', $table);


[quote=∓quot;Jorrit"\]
2. When you want to translate content, images are not correctly displayed: it takes mamboroot/administrator/ as root folder, but it should be mamboroot/

3. When translating static content, there are two content fields, but fulltext is not valid for this static content items

4. There is no copy/clear button for WYSIWYG fields
[/quote]
Will probably get to these in the next release of Joomfish.  Why not add them as feature requests at developer.joomla.org.

Geraint

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
  E-mail  
 
Posted: Thu Jan 26, 2006 3:15 am 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Aug 21, 2005 4:08 am
Posts: 151
First file, mamblefish to joomla 1.0.7  installed ok. trying second mambot file and its not working. I changed permissions to 777.
Having hard time installing bot_mbf_language_system...Get following error.


Warning: move_uploaded_file(): Moved: '/var/tmp/phpwtAfwn' to '/home/mysite/public_html/media/bot_mbf_language_system.zip' in /home/mysite/public_html/administrator/components/com_installer/admin.installer.php on line 175

Warning: copy(/home/mysite/public_html/mambots/system/mbf_language.php): failed to open stream: Permission denied in /home/mysite/public_html/administrator/components/com_installer/installer.class.php on line 356
Upload mambot - Failed
Failed to copy file: /home/mysite/public_html/media/install_43d83e9f88c3c/mbf_language.php to /home/mysite/public_html/mambots/system/mbf_language.php

Any help please. Thank you.


Top
   
 
Posted: Thu Jan 26, 2006 9:21 am 
User avatar
Joomla! Guru
Joomla! Guru
Online

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 553
Location: Gogledd Cymru
Reading you error messages
shutterbug wrote:
Warning: move_uploaded_file(): Moved: '/var/tmp/phpwtAfwn' to '/home/mysite/public_html/media/bot_mbf_language_system.zip' in /home/mysite/public_html/administrator/components/com_installer/admin.installer.php on line 175

This looks like /home/mysite/public_html/media/bot_mbf_language_system.zip could not be written - either because of the directory not being writable or that you couldn't overwrite the existing file for some reason.
Quote:
Warning: copy(/home/mysite/public_html/mambots/system/mbf_language.php): failed to open stream: Permission denied in /home/mysite/public_html/administrator/components/com_installer/installer.class.php on line 356
Upload mambot - Failed
Failed to copy file: /home/mysite/public_html/media/install_43d83e9f88c3c/mbf_language.php to /home/mysite/public_html/mambots/system/mbf_language.php

This looks like /home/mysite/public_html/mambots/system/mbf_language.php could not be written - what are the permissions on /home/mysite/public_html/mambots/system?

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
  E-mail  
 
Posted: Thu Jan 26, 2006 11:24 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Dec 29, 2005 2:38 pm
Posts: 93
Correct!!! PHP 5.0.4 vs PHP 4.3.11

I have a problem, after I ahev installed Mambelfish into my Joomla 1.0.7, the front end editor for adminstrator failed.

new contents do not show even it say it is saved. But in PHP 4.3.11, it s ok!

Any clues?


Geraint wrote:
I think I'm getting closer. 

The problem arises in PHP 5.1 but NOT in 4.4 (don't have easy access to 5.0).

Its probably a reference problem similar to the gettable function (ARGH!!).

@walb Can you confirm your setup?  Are you able to test in another config?

Geraint


Top
  E-mail  
 
Posted: Thu Jan 26, 2006 11:36 am 
User avatar
Joomla! Guru
Joomla! Guru
Online

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 553
Location: Gogledd Cymru
See http://forum.joomla.org/index.php/topic ... #msg179749 for probable solution

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
  E-mail  
 
Posted: Thu Jan 26, 2006 11:51 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Dec 29, 2005 2:38 pm
Posts: 93
Hi thansk for replying

Found, changed, but no use....


Last edited by VR2VKH on Thu Jan 26, 2006 11:56 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Thu Jan 26, 2006 12:49 pm 
User avatar
Joomla! Guru
Joomla! Guru
Online

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 553
Location: Gogledd Cymru
OK - lets get more specific. 

By
Quote:
the front end editor for adminstrator failed
do you mean the frontend interface whilst logged in as "adminstrator" or the administrator interface?

Step by step, can you describe what you are doing and where it fails, starting from how you invoke the editor.

I'll see if I can figure out what's going on then.

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
  E-mail  
 
Posted: Thu Jan 26, 2006 2:22 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Dec 29, 2005 2:38 pm
Posts: 93
Sure ! thanks for your help.

My server status:

Database Version:  4.1.13-standard-log 
PHP Version:  5.0.4 
Web Server:  Apache 
WebServer to PHP interface:  cgi 
Joomla! Version:  Joomla! 1.0.7 Stable [ Sunburst ] 15-Jan-2006 20:00 UTC 

ALL PHP and MySQL settings are by default.

What I am doing:

I have intalled Mambel Fish 1.5. Totally following your guide.

I mean the frontend interface whilst logged in as "adminstrator", the same looking of the webpage except that it greets you on left hand side saying "Hi, admin"

In this status, whenever you view a content of the web page, there is an editor icon next to the title of the content.

after u click it, editor shows then u can edit that part, but after u saved your change, the web page exits the editor WITHOUT really updating the content according to what u have just done.

If I am working in the backend (logged into the admin interface), this problem does not exist.

BUT FRONTEND EDITOR TO ME IS A MUST  :-\

This problem does not exist if I am using this server:

Database Version:  4.1.14-standard-log 
PHP Version:  4.3.11 
Web Server:  Apache 
WebServer to PHP interface:  cgi 
Joomla! Version:  Joomla! 1.0.7 Stable [ Sunburst ] 15-Jan-2006 20:00 UTC 


Any more info needed?

thanks again
Andrew


Top
  E-mail  
 
Posted: Thu Jan 26, 2006 2:42 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Aug 21, 2005 4:08 am
Posts: 151
Dont know how I over looked the mambot system writable comment. It worked now, everythings is insalled. Ill have to run through it and try it out when I get home tonight. Thanks for your help!!!


Top
   
 
Posted: Thu Jan 26, 2006 3:25 pm 
User avatar
Joomla! Guru
Joomla! Guru
Online

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 553
Location: Gogledd Cymru
[quote author=VR2VKHIf I am working in the backend (logged into the admin interface), this problem does not exist.
BUT FRONTEND EDITOR TO ME IS A MUST  :-\

This problem does not exist if I am using this server:
[/quote]

Just to double check - did you publish the translations made in the frontend?  Rather confusingly the default behaviour is that "NEW" translations can ONLY be published via the backend.

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
  E-mail  
 
Posted: Thu Jan 26, 2006 3:25 pm 
User avatar
Joomla! Guru
Joomla! Guru
Online

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 553
Location: Gogledd Cymru
shutterbug wrote:
Dont know how I over looked the mambot system writable comment. It worked now, everythings is insalled. Ill have to run through it and try it out when I get home tonight. Thanks for your help!!!


You probably didn't I only just added it since this problem was coming up rather often.

_________________
email: opensourcematters at copynDOTplusDOTcom


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, 6, 7, 8 ... 13  Next

Quick reply

 



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 © 2000, 2002, 2005, 2007 phpBB Group