Page 1 of 1

module not shown at all when using rtl template

Posted: Sat Apr 07, 2012 8:32 am
by lord alaa
Hi, I hope I posted in the right place.

After I made my site a multilingual site, all languages worked fine.

But I had a problem with the "rtl direction" language;which is: The slideshow module not shown at all when using rtl template

the firebug console debugger shows this message:

Code: Select all

Script suspended on line 1 in anonymous, file "module_name".js
detailed error:  
JCaption is not defined
onClick()                                                                                  /altai...php/ar/ (line 1)
d()                                                                                      mootools-core.js (line 367)
   k = Object { event=Event load, $extended=true, type="load", more...}
e()                                                                                      mootools-core.js (line 368)
   k = Object { event=Event load, $extended=true, type="load", more...}


note: that the slideshow flashes at first then disappear; and when I change the live css to left or right or so....; it comes and goes but not in any acceptable way.

I surfed the internet looking for solution; I didn't find even a tiny clue.

any replays would be appreciated.
great thanks in advance.

Re: module not shown at all when using rtl template

Posted: Sat Apr 07, 2012 8:55 am
by infograf768
1. Which version of Joomla are you using?
2. Which template ?

Re: module not shown at all when using rtl template

Posted: Sat Apr 07, 2012 8:59 am
by lord alaa
joomla version: 2.5
template: zt_hemi

Re: module not shown at all when using rtl template

Posted: Sat Apr 07, 2012 9:05 am
by lord alaa

Re: module not shown at all when using rtl template

Posted: Sat Apr 07, 2012 9:27 am
by lord alaa
Hope you take a look a look at the demo.
note that the RTL language works Correctly.

As I think it's a JavaScript thing.
or the module just need to be adjusted for RTL direction.

Any suggestions would be very appreciated :).

Re: module not shown at all when using rtl template

Posted: Sat Apr 07, 2012 1:08 pm
by infograf768
Last Joomla version is 2.5.4
Please update first and test.

Re: module not shown at all when using rtl template

Posted: Sat Apr 07, 2012 1:42 pm
by lord alaa
infograf768 wrote:Last Joomla version is 2.5.4
Please update first and test.

Code: Select all

No updates available

You already have the latest Joomla! version, 2.5.4. 
my joomla version up to date.

it looks like a blocked way.
I tried almost every thing

I neeed a solution

the disappoint point here is that this kind problems Appears at last.

I'll keep looking and predicting a clue here.

thnks for your concern ,
waiting & working

Re: module not shown at all when using rtl template

Posted: Sat Apr 07, 2012 8:53 pm
by oc666
Can I see it in action for debugging purpose?

Re: module not shown at all when using rtl template

Posted: Sun Apr 08, 2012 7:22 am
by lord alaa
bad lock, nothing available online for the meantime.

MR. infograf768 I have a question if you may

my problem is a template supports the RTL languages have a mdule _which I added_ not supporting the RTL Direction

I think I need a tow lines of php code will be added to the module which checks the page direction and do the right CSS & JS reassignments, relocation, right to left and Vice versa

may be other possibility which is more common that the positions Conflict with the slideshow, so I need to disable the RTL direction for the slideshow position.

Any help,_even a clue_ would be highly appreciated.

Re: module not shown at all when using rtl template

Posted: Mon Apr 09, 2012 10:23 am
by infograf768
If you follow the API and install your css and js files in media/mod_mymodule/...,

Basic code to integrate is something like:

Code: Select all

$lang = JFactory::getLanguage();
if ($lang->isRTL()) {
JHtml::_('stylesheet', 'mod_mymodule/css/mycss.css', array(), true);
JHtml::_('script', mod_mymodule/js/myjs.js', true, true);
}

Re: module not shown at all when using rtl template

Posted: Mon Apr 09, 2012 2:33 pm
by ced1870
Hi
I had the same issue with my slideshow module, I had to remove the text-align:left; in the css to display the images with RTL
Hope it helps
CEd

Re: module not shown at all when using rtl template

Posted: Tue Apr 10, 2012 6:45 pm
by lord alaa
thank you all for your help.
infograf768, I used the first two lines of your code, it worked perfectly
I just needed a clue, and you gave me that.

great thanks.

Re: module not shown at all when using rtl template

Posted: Tue Apr 10, 2012 6:54 pm
by lord alaa
ced1870, my site is more complicated than just remove a "text-align" :D
even though i tried :),
thank you very much for your replay, it meant a lot.

kind regards.

Re: module not shown at all when using rtl template

Posted: Sat Sep 14, 2013 8:00 pm
by telme
lord alaa wrote:But I had a problem with the "rtl direction" language;which is: The slideshow module not shown at all when using rtl template
Hello!
Which templates are now RTL compatible?