vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Removing full posts from feeds (https://vborg.vbsupport.ru/showthread.php?t=233207)

dlan 01-14-2010 10:00 PM

Removing full posts from feeds
 
1 Attachment(s)
I had a problem with content theft in the past, so i wanted to limit the content provided by vbulletin's rss feeds.

I didn't want to mess with the templates to avoid manual checks every time vbulletin updates and for the same reason i didn't want to edit php files. So i came up with this (really) tiny plugin which i hope you'll find useful.
  1. Login to your admin panel
  2. Expand Plugins & Products block
  3. Click Add New Plugin
    • Product: vBulletin
    • Hook Location: external_complete
    • Title: (anything you want, i entered Limit Feeds)
    • Plugin PHP Code (one line):
      PHP Code:

      $output preg_replace('/(\<content\:encoded\>.*\<\/content\:encoded\>)/s'''$output); 

  4. Plugin is Active: Yes
  5. Press Save

All done, now you just made content theft a bit more difficult :p

yahooooh 01-16-2010 05:27 AM

i test ot on 3.8.4
not work

dlan 01-16-2010 06:17 AM

vB Version: 4.0.1

starman? 03-15-2010 03:06 PM

Nice work - tagged.

alessai 03-15-2010 08:26 PM

nothing happened used it and tried google reader and it gets the full thing..... ??!

4.0.2

Marco van Herwaarden 03-16-2010 08:44 AM

Please export the plugin and attach as file to this the first post. Modifications must always be uploaded as a file.

ChopSuey 05-24-2010 07:57 AM

1 Attachment(s)
Here it is, good luck! Install as PLUGIN

InfoAddict 05-29-2010 12:16 AM

Could you post an example of what it does to the feed?

evildon 05-29-2010 03:10 AM

Same problem.. Nothing happended..Still getting the full FEEDS

ChopSuey 05-29-2010 04:12 AM

NO people who feed from YOUR forum, don't get full feeds. Atleast thats what it says.

howard007 06-10-2010 04:32 AM

How can you make it so that specific forums don't feed?

ChopSuey 06-10-2010 11:18 AM

I have no idea, you would need to edit the external.php i guess.

sam.hackint0sh 11-28-2011 09:14 AM

If it doesnt work for you, you need to truncate the externalcache table via execute query to see an effect. "TRUNCATE externalcache" does the trick. After that, every new query cached will no longer have the full content.

sticky 11-29-2011 10:49 AM

Can this mod be edited to provide the correct image in a feed? I have my feeds go directly into facebook but the wrong preview image is always selected. I would like for it to use the same image I use on the CMS preview.

Naijasite 08-13-2012 06:55 PM

Is not working on 4.2.0


All times are GMT. The time now is 05:29 AM.

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.01095 seconds
  • Memory Usage 1,735KB
  • 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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