Jump to content
  • 0
nikita54421

Question on the tape rss

Question

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

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
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.