nikita54421 Posted June 10, 2017 Posted June 10, 2017 I have news on the site on the rss tape. But it is displayed incorrectly, not all text! It should be like this: Ведутся работы над сервером lordro 23/05/2017 I do not understand what the problem is! In my rss file? Or is the problem something else? p.s. I'm new at this =)) <?xml version="1.0" encoding="utf-8"?> <rss version="2.0"> <channel> <title>lordro.ru - Рагнарок Онлайн сервер</title> <link>http://lordro.ru </link> <description>Последние новости Рагнарок</description> <language>ru-ru</language> <webMaster>[email protected]</webMaster> <lastBuildDate>Tue, 23 Mar 2017 11:00:00 GMT</lastBuildDate> <item> <title>Ведутся работы над сервером lordro</title> <link>https://goo.gl/FBlordr </link> <description>Команда активно ведёт работу над сервером!</description> <author>[email protected]</author> <pubDate>Tue, 23 May 2017 11:00:00 GMT</pubDate> </item> </channel> </rss>
1 GodKnows Jhomz Posted June 11, 2017 Posted June 11, 2017 Check your rsslib.php in your site and find code look like this : <a target=\"_blank\" href=\"$link\">" . (( strlen($title) > 16)? substr($title, 0, 16) . "...":$title) . "</a> Change the 16 to the max value you want to display. In your example the max text to display is 16, but the title contains 34 texts so the other 18 characters will be hidden since the max title length in rsslib.php is only 16. try to change it like 40 or 35 just not to reach the date texts. (Change both 16 values) Hopefully this helps you. 1
0 nikita54421 Posted June 11, 2017 Author Posted June 11, 2017 7 hours ago, GodKnows Jhomz said: Check your rsslib.php in your site and find code look like this : <a target=\"_blank\" href=\"$link\">" . (( strlen($title) > 16)? substr($title, 0, 16) . "...":$title) . "</a> Change the 16 to the max value you want to display. In your example the max text to display is 16, but the title contains 34 texts so the other 18 characters will be hidden since the max title length in rsslib.php is only 16. try to change it like 40 or 35 just not to reach the date texts. (Change both 16 values) Hopefully this helps you. Thank you so much! It helped me!
Question
nikita54421
I have news on the site on the rss tape.

But it is displayed incorrectly, not all text!
It should be like this: Ведутся работы над сервером lordro 23/05/2017
I do not understand what the problem is! In my rss file? Or is the problem something else?
p.s. I'm new at this =))
2 answers to this question
Recommended Posts