Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • alekoocio Friend
    #159997

    Hi,

    I have the teline III v2 template and have a problem with the especial characteres as á,é etc. and JA News frontpage

    In th ja news fp module you specify the numbers of characters that you want for the preview in the parameter “Max Chars of Featured Articles” and “Max Chars of Normal Frontpage Artcile”, thats ok, but when the cutting character is an special one (ó) an in html is written as ó the preview is shown as &oac… example:

    manipulación

    manipulaci&o… . (READ MORE)

    Any solution? It would be nice that you can define if you want to cut the text by characters or complete words.

    thanks!
    Alberto


    1. error_acento
    Saguaros Moderator
    #376144

    You open the file: modulesmod_janews_fphelpershelper.php andf ind the following code :

    [PHP]
    if (function_exists ( ‘mb_substr’ )) {
    $row->introtext1 = SmartTrim::mb_trim ( $row->introtext, 0, $maxchars, $doc->_charset );
    } else {
    $row->introtext1 = SmartTrim::trim ( $row->introtext, 0, $maxchars );
    }
    [/PHP]

    replace:

    [PHP]
    $row->introtext1 = JString::substr( strip_tags($row->introtext), 0, $maxchars );
    [/PHP]

    alekoocio Friend
    #377157

    Thanks!

    It works perfect!!!

    superior12 Friend
    #391239

    Would you please explain how to turn the description off? If I put 0 for the Max Chars, then the whole content will be shown, and if I go for 1, then: “…”. I want only the title of the content with image on the frontpage.

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

This topic contains 4 replies, has 3 voices, and was last updated by  superior12 13 years, 6 months ago.

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