PDA

View Full Version : help to mod external.php


wold3mort
05-17-2014, 12:44 PM
Hi everyone, I'm trying to use the rss feed but as you can see in this link:

http://www.informaticagames.com/external.php?do=rss&type=newcontent&sectionid=1&days=120&count=10

articles that show are cut, I would that they were given in full can you help?

cellarius
05-17-2014, 02:02 PM
No, how should we? The only one who could help would be the one providing that RSS feed. If he choose to provide only a certain part of each article, he probably did so for a reason. Likely, he does not want someone else to automatically repost his whole articles.

Your only chance would be to contact the feed provider.

kh99
05-17-2014, 02:15 PM
If you are talking about the feed from your own site, you could edit external.php and find the 2 lines like this:
$xml->add_tag('description', fetch_trimmed_title($plainmessage, $vbulletin->options['threadpreview']));


and replace $vbulletin->options['threadpreview'] with 0.

You could also use a plugin on hook external_start, and code like:
$vbulletin->options['threadpreview'] = 0;

Edit: also note that the feed is cached, so you might not see the changes right away.

wold3mort
05-17-2014, 04:07 PM
exact is my site that I can't change the length of the text ... I tried to create the plugin we see how it goes, how long do I have to wait?

kh99
05-17-2014, 04:54 PM
The setting is External Data Provider > Thread Cache Lifespan, and the default is 60 minutes.

kh99
05-17-2014, 05:00 PM
You could also delete all records from the externalcache table.

cellarius
05-17-2014, 05:55 PM
A, sorry, I misunderstood!