1
oilkp
Publisher and xlanguage problem
  • 2010/6/30 14:37

  • oilkp

  • Just popping in

  • Posts: 23

  • Since: 2010/6/30


Hi there,

Need some help on solving problem with xlanguage and publisher

My layout is screwed in publisher index/category page - The last item table is not showing correctly

in the item article page it is displayed correctly it is just in the index/category page im having this problem

eg: some screenshots

http://www.glowfoto.com/static_image/ ... jpg/06/2010/img5/glowfoto

http://www.glowfoto.com/static_image/ ... jpg/06/2010/img4/glowfoto
Help...

Thank you in advance


p/s Publisher alpha & xl 3.02

2
oilkp
Re: Publisher and xlanguage problem
  • 2010/11/8 1:39

  • oilkp

  • Just popping in

  • Posts: 23

  • Since: 2010/6/30


solved by increasing the last item and title size

3
ghia
Re: Publisher and xlanguage problem
  • 2010/11/8 9:42

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Yes, it is a general problem with modules and xLanguage.

The truncating functions, that provide extracts of (= short) descriptions or titles, do not take in account the language tags.
This way they become unbalanced and wrong parts are left out by xLanguage.

To correct this, the truncating function in the modules should filter the multi language string of the content or title first for the selected language and then truncate the resulting string to the desired length.
Example code:
$result substr $string 0$length );

=>
$module_handler =& xoops_getHandler('module');
$module $module_handler->getByDirname('xlanguage');
if (
$module && $module->getVar('isactive')) 
{
  global 
$xlanguage;
  include_once(
XOOPS_ROOT_PATH.'/modules/xlanguage/include/vars.php');
  include_once(
XOOPS_ROOT_PATH.'/modules/xlanguage/include/functions.php');
  
$result substr xlanguage_ml($string) , 0$length );
}
else
{
  
$result substr $string 0$length );
}


The same goes for core functions as eg search.

4
serial-weber
Re: Publisher and xlanguage problem

Hi,

In which file, which line must we make this change??

Thanks

Login

Username:
Password:

Lost Password? Register now!

Who's Online

72 user(s) are online (38 user(s) are browsing Support Forums)


Members: 0


Guests: 72


more...

Donat-O-Meter

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

Latest GitHub Commits