test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • timtecsa Friend
    #199811

    The Ticker tooltip for the article below gets cut short. Any idea why?

    http://globalprintmonitor.net/en/tech/technology/solar/46971-et-solar-extends-its-presence-in-turkey

    The intro tsxt is: ET Solar Energy Corp. (“ET Solar”), a leading smart energy solutions provider, announces that it has supplied high quality PV modules to DOMILUX Leuchten Herstellung und Vertrieb GmbH (“DOMILUX”), a German solar developer and EPC company, for a 728 kW rooftop solar power plant in Turkey.

    The tooltip is cut after: ET Solar Energy Corp. (

    Ninja Lead Moderator
    #542974

    I just solved the problem directly on your site, below is solution to solve it

    Open “ET Solar Extends Its Presence in Turkey” article and change

    <blockquote>ET Solar Energy Corp. (“ET Solar”), a leading smart energy solutions provider, announces that it has supplied high quality PV modules to DOMILUX Leuchten Herstellung und Vertrieb GmbH (“DOMILUX”), a German solar developer and EPC company, for a 728 kW rooftop solar power plant in Turkey</blockquote>

    To

    <blockquote>ET Solar Energy Corp. (‘ET Solar’), a leading smart energy solutions provider, announces that it has supplied high quality PV modules to DOMILUX Leuchten Herstellung und Vertrieb GmbH (‘DOMILUX’), a German solar developer and EPC company, for a 728 kW rooftop solar power plant in Turkey.</blockquote>

    Please check it again, let me know if it helps

    timtecsa Friend
    #543007

    Thanks, Ninja. Yes, that edit does indeed fix the tooltip on that article, but it’s not a practical general solution. Expecting editors to spot such character combinations on the fly won’t work in practise. I expect you realise this too 🙂 Back to the coders?

    Tim

    Ninja Lead Moderator
    #543212

    <em>@timtecsa 437553 wrote:</em><blockquote>Thanks, Ninja. Yes, that edit does indeed fix the tooltip on that article, but it’s not a practical general solution. Expecting editors to spot such character combinations on the fly won’t work in practise. I expect you realise this too 🙂 Back to the coders?

    Tim</blockquote>

    You can try to apply another solution with this bug again

    Open templates/ja_teline_iv_t3/html/mod_janewsticker/default.php file

    Change

    <a title="<?php echo modJANewStickerHelper::trimString( trim(strip_tags($item->introtext) ), 300); ?>" <?php echo $aClass ;?> href="<?php echo modJANewStickerHelper::getLink($item, $userRSS); ?>"><span><?php echo modJANewStickerHelper::trimString( $item->title, $titleMaxChars );?></span>

    To

    <a title='<?php echo modJANewStickerHelper::trimString( trim(strip_tags($item->introtext) ), 300); ?>' <?php echo $aClass ;?> href="<?php echo modJANewStickerHelper::getLink($item, $userRSS); ?>"><span><?php echo modJANewStickerHelper::trimString( $item->title, $titleMaxChars );?></span>

    timtecsa Friend
    Ninja Lead Moderator
    #543436

    <em>@timtecsa 438079 wrote:</em><blockquote>See: http://globalprintmonitor.net/en/blogs/packaging/47198-ball-s-let-s-can-hunger-food-drive-provides-nearly-145-000-meals-for-community-food-share

    The php edit seems to make no difference.</blockquote>

    I just fixed it directly on your site.

    Open templates/ja_teline_iv_t3/html/mod_janewsticker/default.php file

    Change

    <?php echo modJANewStickerHelper::trimString( trim(strip_tags($item->introtext) ), 300); ?>

    To

    <?php echo htmlentities(addslashes(modJANewStickerHelper::trimString( trim(strip_tags($item->introtext) ), 300))); ?>

    Please check it again, let me know if it helps

    timtecsa Friend
    #543503

    Yes, it works better than before but why not use the same code as is used for JA News Featured and JA News Pro which works so well, even with languages containing accented characters? Speed?

    Ninja Lead Moderator
    #543584

    Yes, I just raised this bug to development team here. They need time to check and update.

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 2 voices, and was last updated by  Ninja Lead 10 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum