Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Trim newsfeed content Details »»
Trim newsfeed content
Version: 1.1, by MrNase MrNase is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Category: End-User Options - Version: 3.6.0 Rating:
Released: 08-26-2006 Last Update: 08-29-2006 Installs: 31
Code Changes  
No support by the author.

Hello!

A friend of mine pointed me to this:
He's running a quite popular forum about computer security and many websites use his newsfeed. The problem is that the newsfeed publishes the full content of the thread so that the users don't have to go back to the original source. Additionally some webmasters don't even post information on the original source.

This modification let's you choose wether you want to have the full content to be published or only the first 50 (or 100 or 12 , ...) characters.

It basically turns this:

Thread title
Hello, I've found quite some interesting stuff at http://www.mrnase.de and the best of all - it's free! Go and check it out!

into this:
Thread title
Hello, I've found quite some interesting...


This modification has two settings, one to turn it completely off and one setting which let's you chose how many characters you want to display. Default is '50'.

It has been tested with the RSS2 feed (seems to be the most common one).

The instructions are simple, you have to edit external.php and import one new product.


Before:Attachment 52759

After: Attachment 52758

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-30-2006, 10:32 AM
Steve B Steve B is offline
 
Join Date: Jul 2005
Location: Munich
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Downloaded and overwritten...everything running great now thanks

Clicked INSTALL.
Reply With Quote
  #13  
Old 11-04-2006, 05:14 AM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a whole lot, I've been searching for a way to do this for a long minute now.

Could I bother you so much as to have you create something that would allow me to add a footer template of sorts to the rss2 feed? I want to insert a banner with a referral code into the bottom of every rss2 item. This would be similar to the "Add your logo to the RSS 2 Newsfeed" hack you made for 3.0.

It would also so be real nice if I could add "digg this"/"add to delicious" etc links to the bottom of each item (like feedburner does it), but this is probably asking for too much. If you don't know what I'm talking about, check out this feedburner feed of John Chow's blog: http://feeds.feedburner.com/JohnChowDotCom


Edit: I just checked the feed from your site, and it isn't trimmed. I guess this isn't working for 3.6.2 yet?
Reply With Quote
  #14  
Old 11-06-2006, 06:25 AM
ben07 ben07 is offline
 
Join Date: May 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesn't seem to work on Vb3.6.2
Reply With Quote
  #15  
Old 12-14-2006, 08:00 PM
leedjc leedjc is offline
 
Join Date: Jan 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance of getting this to work for 3.6.4? I need this badly!!
Reply With Quote
  #16  
Old 12-15-2006, 06:21 PM
The Finman's Avatar
The Finman The Finman is offline
 
Join Date: Jun 2006
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My problem is exactly the opposite.

The news feed threads my RSS bots post are too short (often not even a full sentence).

I was told that there is nothing I can do, as the publisher of the RSS feed controls the limit on how much is released.

So given that set of circumstances I doubt it would be possible, but still I am wondering if anyone knows of a possible way to overcome that limitation?

I've tried looking for longer headline news feeds, but all the ones I've found still have the same problem.

I am looking for a US headline (or breaking) news feed that publishes at least 1-2 paragraphs, if anyone knows of one. I've tried using various search engines looking for RSS news feeds that publish the length of their news feeds, but no one seems to give out that information.
Reply With Quote
  #17  
Old 03-13-2007, 04:07 AM
RaZor Edge's Avatar
RaZor Edge RaZor Edge is offline
 
Join Date: Jan 2002
Location: Quebec city
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sad to see this do not seems to work with 3.6.5 :-(

I would really like to use something like this.
Reply With Quote
  #18  
Old 03-27-2007, 08:14 AM
RedTyger's Avatar
RedTyger RedTyger is offline
 
Join Date: Nov 2006
Location: UK
Posts: 1,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a suggestion why don't you also allow users the option to trim by percentage of the total content? Perhaps if the content is longer than X characters? That way it could mean that a good proportion is always included even if the full length is very short or very long.

Oh and PS, external.php has hooks!
Reply With Quote
  #19  
Old 05-06-2007, 12:09 PM
Cybershaolin Cybershaolin is offline
 
Join Date: Nov 2006
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, does not work for me either in 3.6.5.

Edits done in external.php

Hack activated with "Yes" and Number of words set at "100".

I still see the whole posts... not trimmed at all.

Is the hack still supported? Any plans to make this work with 3.6.5?
Reply With Quote
  #20  
Old 05-19-2007, 07:57 AM
Legende Legende is offline
 
Join Date: Jan 2006
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any news on this?? Or other solutions?
Reply With Quote
  #21  
Old 08-09-2007, 08:44 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will be trying this later
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04927 seconds
  • Memory Usage 2,295KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete