-
AuthorPosts
-
February 10, 2011 at 12:28 pm #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
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 11, 2011 at 7:54 am #376144You 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]1 user says Thank You to Saguaros for this useful post
February 17, 2011 at 11:53 am #377157Thanks!
It works perfect!!!
May 14, 2011 at 3:51 pm #391239Would 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.
AuthorPostsViewing 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
JA News Frontpage and special characters
Viewing 4 posts - 1 through 4 (of 4 total)