Jump to content
  • 0

Question on the tape rss


nikita54421

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  31
  • Reputation:   0
  • Joined:  05/06/17
  • Last Seen:  

I have news on the site on the rss tape.
But it is displayed incorrectly, not all text!
2017-06-10_23-53-24.png.3dbd50a3a244223fd00f00c21414a140.png

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

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  333
  • Reputation:   66
  • Joined:  09/05/12
  • Last Seen:  

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.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  31
  • Reputation:   0
  • Joined:  05/06/17
  • Last Seen:  

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

×
×
  • Create New...