Log in

View Full Version : A question about external.php


PingCity
06-13-2012, 04:30 PM
Hi,

Do you know how can I limit the number of description words in external.php?

Currently all the text body of threads and posts is placed in RSS page. I want to make it limited to 250 words.

Thank you.

kh99
06-13-2012, 04:41 PM
external.php uses the "Length of Thread Preview Text" option (under Forum Display Options) for the description length, unless the url contains &fulldesc=1. If you don't want to change the thread preview length used in other places, I believe you could create a plugin using hook external_start and set $vbulletin->options['threadpreview'] = 250 there.

PingCity
06-13-2012, 04:58 PM
external.php uses the "Length of Thread Preview Text" option (under Forum Display Options) for the description length, unless the url contains &fulldesc=1. If you don't want to change the thread preview length used in other places, I believe you could create a plugin using hook external_start and set $vbulletin->options['threadpreview'] = 250 there.

Thank you for your help.

I made a mistake in describing the problem. My problem is not the description. It is the content. I want the external.php not to show the whole content. Only the description is enough. How can I remove the content from external.php output?

Content is placed between <content:encoded> and </content:encoded> on the external.php output page. I want to remove it.

Thank you in advance.

kh99
06-13-2012, 05:06 PM
There's no setting that I can see, but try a plugin using hook external_start and this code:

$vbulletin->GPC['nohtml'] = 1;

PingCity
06-13-2012, 05:12 PM
There's no setting that I can see, but try a plugin using hook external_start and this code:

$vbulletin->GPC['nohtml'] = 1;

Thank you.

--------------- Added 1339637550 at 1339637550 ---------------

I have been struggling with this, but no success. Please someone help me with this. Thank you.