vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   limit rss description (https://vborg.vbsupport.ru/showthread.php?t=134474)

jahshaka 12-20-2006 09:46 PM

limit rss description
 
hey,

reall going crazy trying to figure this out! i have 2 forums running vbulletin and am about to start a 3rd but cant get my feeds to work right.

on my main forum, running vb 3.5, my rss feeds are cut at about 200 characters - i didnt set this and cant figure out how and where this was done?

http://www.vfxtalk.com/forum/external.php?type=rss2

on my 2nd forum, running vb 3.6, the feeds show the entire post!

http://www.vfxjobs.com/forum/external.php?type=rss2

and so people can jack all my job listings! how can i cut it back to be the same as in my first forum?

i also want to upgrade my first forum but am now concerned that the same problem will happen!

UPDATE!

ok so this is what i got back from vbulletin.com

Quote:

I believe that is the difference between how RSS feeds are processed between 3.5 and 3.6. Changing this requires modifying the code.
are there any mod's for 3.6 that do just this - shorten the description in the feed?

jahshaka 12-23-2006 07:27 AM

bump???

jahshaka 01-25-2007 07:37 AM

yea bump again,

this is a serious fricking problem in vb 3.6 in that your forums content gets jacked by everyone out there with a site and a rss reader... they can scoop down text, images, etc....

its a night mare how do i fix things so they just get the first 100 words??? rss is supposed to promote my site not let people jack it!

help please!!!

ResaleBroker 02-16-2007 10:45 PM

Did anyone come up with a solution for this?

jahshaka 03-30-2007 10:36 AM

i have not been able to ... cant find a mod for this either!

jahshaka 04-24-2007 01:05 AM

still no-one?

mccollin 10-31-2007 05:55 PM

I would like to know this too... I would like to limit the feed to a few lines... not the whole article. Otherwise someone could just feed my news stories directly to their site. This is a crazy design if there is no way to limit it.

Paul M 10-31-2007 07:57 PM

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


mccollin 10-31-2007 08:08 PM

Thanks for sharing that. I'm actually onto another plan now. It looks like its not that difficult to convert everything to Feedburner. I'm going to attempt to convert my stuff to that. In order to then force everyone through Feedburner, I wonder if there would be any side-effects if I changed the name of external.php to something else after I get it converted. That would assure that no one could use the old method and get full feeds.

ResaleBroker 02-06-2008 04:00 PM

Quote:

Originally Posted by Paul M (Post 1372991)
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";


This works great. Thank You!!!

maxicep 04-26-2008 08:55 PM

it doesnt work

I created a new plugin for external_query and product is vbulletin, plugin description is

Quote:

unset($vbulletin->GPC['fulldesc']);
$vbulletin->options['threadpreview'] = 200;
$hook_query_fields .= ",LEFT(post.pagetext,400) AS message";
But RSS Feeds still not cuting.

Stil, looking full description and it is bad.

Version: vbb 3.7 b4

lackhand 06-16-2008 03:01 PM

Quote:

Originally Posted by Paul M (Post 1372991)
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";


This worked for me, but does anyone know how to do this for vBulletin Blog?

siliconfinance 11-29-2008 05:22 PM

Anyone find a solution?

TitanJeff 12-17-2008 06:16 PM

I'm in the same boat. I want to cut this to 50 characters.

Brandon Sheley 12-19-2008 12:58 AM

Quote:

Originally Posted by Paul M (Post 1372991)
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";


Will this work in 3.7?
How would we remove description all together and just show the thread title?
I'll play around with the 200 and 400

Thanks
-Brandon

pappocapo 01-26-2009 09:37 PM

not work in 3.7.4, not cut feed rss

Rappy 02-01-2009 01:07 PM

In external_start
Code:

unset($vbulletin->GPC['fulldesc']);
$vbulletin->GPC['nohtml'] = true;
$vbulletin->options['threadpreview'] = 200;

Use this, works fine in 3.7.x.
Change 200 to the characters to display.
Also remove the "nohtml" line if you want the feed to display post HTML.

Pebbled 03-14-2009 03:48 PM

Quote:

Originally Posted by Paul M (Post 1372991)
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";


Hi there Paul M, thanks for the code, it works a treat on our forum :)

Small addition, is it possible to add a small amount of text at the bottom along the lines "for the full length article go to www.examplesite.com" and turn it into an advert for your own website :cool:

as7apcool 03-14-2009 08:40 PM

<a href="http://www.vfxtalk.com/forum/external.php?type=rss2" target="_blank">http://www.vfxtalk.com/forum/external.php?type=rss2</a>

this make any body can take all your new forum topics

it's better to stop this service

lackhand 08-17-2009 03:54 AM

Does anyone know how to do a similar plugin for vbulletin Blog RSS?

Budget101 02-02-2010 12:02 PM

Quote:

Originally Posted by Paul M (Post 1372991)
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";


What can we add to this to make it work on Blog Feeds as well??

craiovaforum 03-19-2010 08:09 AM

Hi

It seems that adding &nohtml=1 to the feed url will cut the description and remove the attachments from the feed.
So I simply made a plugin attached to the external_start hook with this code:
PHP Code:

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

This produced the desired effect for me on the feed. Hope it helps anyone.

ZeroHour 03-02-2012 05:43 PM

Quote:

Originally Posted by craiovaforum (Post 2006340)
Hi

It seems that adding &nohtml=1 to the feed url will cut the description and remove the attachments from the feed.
So I simply made a plugin attached to the external_start hook with this code:
PHP Code:

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

This produced the desired effect for me on the feed. Hope it helps anyone.

This worked on 4.1.11 with execution order set to 1.

Naijasite 12-08-2012 10:51 PM

can you make this work for vb 4?


All times are GMT. The time now is 05:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01284 seconds
  • Memory Usage 1,775KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete