vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   End-User Options - Trim newsfeed content (https://vborg.vbsupport.ru/showthread.php?t=125100)

MrNase 08-26-2006 10:00 PM

Trim newsfeed content
 
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

Jannefant 08-27-2006 08:56 PM

Nice one! :)

MrNase 08-27-2006 09:40 PM

Thank you! :)

Snake 08-27-2006 10:35 PM

Very nice. Thanks man! :)

Barakat 08-28-2006 12:39 AM

thanks a lot great.

MrNase 08-28-2006 07:17 AM

No problem!

vB seems to have a similar function built in but I didn't found a way to actually activate it. :)

asj 08-28-2006 09:38 AM

thanks :)

MrNase 08-28-2006 11:36 AM

I've setup a live demo: http://www.pagodentreff.de/diskussio....php?type=rss2 :)

Steve B 08-30-2006 05:34 AM

Where in the Admin CP does it install the options? After doing the edits to external.php and importing the product through product manager I am stuck as I see no new options. The logical place would be in with the 'external data provider' settings but nothing relating to this plugin is showing there?

MrNase 08-30-2006 09:45 AM

Hum, I am sorry the product file was somehow corrupted. :(
Just redownload the file and import it again (and select 'overwrite existing product') and it should work fine. Again, I am sorry. :(


All times are GMT. The time now is 11:36 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.01277 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete