but now I find a temporary fix for it and I publish it here for use of other member

After clean install of joomla and virtuemart, if you switch the language to a RTL language all tabs on virtuemart forms will disappear.
( tab in the entrance page “control panel|statistics”, new product tabs and so on)

I have checked it with joomla 1.5.10 and joomla 1.5.14 with the latest version of virtuemart 1.1.3

I think the problem is with the script in “vmTabPanel” class definition.
I change the code and set the text direction of “startPane” function manually to “ltr” later in the same class I changed the text direction of “startTab” function back to current language direction (eg. ‘rtl’) this changes apparently solved the problem and tabs reappeared again, although they are aligned to the left of the screen but the form content is well aligned according to the global text direction (eg. ‘rtl’ ).

here is the exact code:
open the file administrator/components/com_virtuemart/classes/htmlTools.class.php
find class definition “class vmTabPanel”

change the line 400 under class definition from
function startPane($id) {

echo '<div id="'.$id.'" >';

$this->pane_id = $id;

}

to

function startPane($id) {

echo '<div id="'.$id.'" dir="ltr">';

$this->pane_id = $id;

}

also change line 462 under class definition from

function startTab( $tabText, $paneid ) {

echo "<div class="tab-page" id="".$paneid."" >";

$this->tabs[$paneid] = $tabText;

}

to

function startTab( $tabText, $paneid ) {

echo "<div class="tab-page" id="".$paneid."" dir='rtl'>";

$this->tabs[$paneid] = $tabText;

}

I hope developers solve this issue for the next release.

I will appreciate  if someone tell me how to use the global direction in this class
I like to use something like dir=’$direction’ as we do on themes but I was unsucseccful

Regards

[cc lang=”php”]

2 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.