nikita54421 Posted June 10, 2017 Group: Members Topic Count: 16 Topics Per Day: 0.01 Content Count: 31 Reputation: 0 Joined: 05/06/17 Last Seen: December 8, 2018 Share 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> Link to comment Share on other sites More sharing options...
1 GodKnows Jhomz Posted June 11, 2017 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 333 Reputation: 68 Joined: 09/05/12 Last Seen: June 13, 2023 Share 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 Link to comment Share on other sites More sharing options...
0 nikita54421 Posted June 11, 2017 Group: Members Topic Count: 16 Topics Per Day: 0.01 Content Count: 31 Reputation: 0 Joined: 05/06/17 Last Seen: December 8, 2018 Author Share 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! Link to comment Share on other sites More sharing options...
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 =))
Link to comment
Share on other sites
2 answers to this question
Recommended Posts