The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Is it possible to limit the length output of each thread e.g. 200 Characters to produce a RSS with the external data provider?
|
#2
|
|||
|
|||
![]()
I need something like this too please, to limit words not characters. I also want to be able to put a "signature" at the end of each item
|
#3
|
||||
|
||||
![]()
Yes. Here is a link to a post that covers this: https://vborg.vbsupport.ru/showpost....91&postcount=8
|
#4
|
|||
|
|||
![]()
There is no way to limit it without using a plugin (as we do here).
This is a simplfied version of what we do ; Hook: external_query Code: unset($vbulletin->GPC['fulldesc']); $vbulletin->options['threadpreview'] = 200; $hook_query_fields .= ",LEFT(post.pagetext,400) AS message"; __________________ And what do I have to do here? Write this in a file and upload it as a plugin? ![]() |
#5
|
|||||
|
|||||
![]() Quote:
Product: Quote:
Quote:
Quote:
Quote:
|
#6
|
|||
|
|||
![]()
Tried it but the RSS output looks not good:
XML Parsing Error: junk after document element Location: http://www.domainxyz/external.php&rss2 Line Number 2, Column 1:<b>Parse error</b>: syntax error, unexpected $end in <b>/forum/external.php(67) : eval()'d code</b> on line <b>4</b><br /> |
#7
|
||||
|
||||
![]()
I have updated the code in my previous post. You might give it a try.
|
#8
|
|||
|
|||
![]()
ok now it works...but I fo not see any differences if I change 250 to 150?
|
#9
|
||||
|
||||
![]() Quote:
$vbulletin->options['threadpreview'] = 250; to $vbulletin->options['threadpreview'] = 150; And this: AdminCP >> vBulletin Options >> Forum Display Options (forumdisplay) >> Length of Thread Preview Text (Set this value to 150) |
#10
|
|||
|
|||
![]()
hmm...when I call ...external.php?rss2 on Firefox it looks like that it shows up short but on the IE7 it still shows the full content...
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|