1
irmtfan
multimenu: changing image directory in treemenu by changing the language
  • 2006/6/12 16:23

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


there is a folder for RTL image in treemenu but it must be change by changing the directoy name to "black_gif".

is there a way that it reads the directory "black_right_gif" in RTL and "black_gif" in LTR languages functionally?

it is usefull for multilanguage websites.

2
irmtfan
Re: multimenu: changing image directory in treemenu by changing the language
  • 2006/6/23 6:14

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


in block options it can be possible to change direction bu input a negative/positive number.

and in multimenu_dyn_tree it shows:

var url="<{$xoops_url}>/modules/multiMenu/script/10/<{if $block.block_size < 0}>black_right_gif<{else}>black_gif<{/if}>/"


but it doesnt work when i use xlanguage module with the code:
[en]20[/en][fa]-20[/fa]

any solution?

3
blueteen
Re: multimenu: changing image directory in treemenu by changing the language
  • 2006/6/23 9:08

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


hello, i'm not familiar with multilanguage, so i've no idea :(

4
irmtfan
Re: multimenu: changing image directory in treemenu by changing the language
  • 2006/6/23 9:14

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


its a little strange because it parse to correct numbers.

<{$block.block_size}> in en return "20"
and in fa return "-20"

maybe something wrong in templates? or xlanguage? dunno

edit:
Aha i mentioned this part works fine:
<div align="<{if $block.block_size > 0}>left<{else}>right<{/if}>">
<
table <{if $block.block_size 0}>dir="rtl"<{/if}> cellspacing="0" cellpadding="0">

just this part doenst work:
<script type="text/javascript">
var 
url="<{$xoops_url}>/modules/multiMenu/script/10/<{if $block.block_size < 0}>black_right_gif<{else}>black_gif<{/if}>/" 
script>

maybe the script tag cause problem?

5
solo71
Re: multimenu: changing image directory in treemenu by changing the language
  • 2006/6/24 10:18

  • solo71

  • Module Developer

  • Posts: 941

  • Since: 2003/1/29


Have you checked the source code when testing the page ? Also, check you don't have cache on your block.


6
irmtfan
Re: multimenu: changing image directory in treemenu by changing the language
  • 2006/6/24 14:27

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


no its not a cache problem.i see the source code too.
with using a number like "20" or "-20" it works fine.

just when i put "[en]20[/en][fa]-20[/fa]" it failed to wrok.

against of my last post i mentioned that by inputing such a number just the ELSE part works in multimenu_dyn_tree.html

Login

Who's Online

178 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 178


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits