vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Exclude a forum from external data RSS (https://vborg.vbsupport.ru/showthread.php?t=237751)

melbo 03-07-2010 08:05 PM

Exclude a forum from external data RSS
 
How can I exclude a forum from my sites RSS feed (external.php)?
or include everything but that forum . either way, I don't want my 'news' forum showing up on other sites that use my RSS for content.

Some people have told me to manipulate the URL I'm using but that won't work. I don't use my RSS, people I don't know from all over the world 'subscribe' to my RSS feed and I want to limit output from one forum.

Any tips or ways I can change external.php?

Thanks

Lynne 03-07-2010 08:39 PM

Plugin, hook location 'external_start':
PHP Code:

$vbulletin->GPC['forumids'] = 'x,y,z'

x,y,z being the forumids you want to include.

melbo 03-07-2010 09:59 PM

Thanks Lynne.

Do I replace this or add your code additionally?

Code:

$vbulletin->GPC['type'] = strtoupper($vbulletin->GPC['type']);
--------------- Added [DATE]1268006456[/DATE] at [TIME]1268006456[/TIME] ---------------

Nevermind. I think I found it.

Thanks

--------------- Added [DATE]1268007853[/DATE] at [TIME]1268007853[/TIME] ---------------

I did this

Code:

Go to Admin CP, Plugin & Products, Plugin Manager and Add New Plugin

Product: Exclude Forums From external.php
Hook Location: external_start
Title: Anything you want
Execution Order: 4
Plugin PHP Code: $vbulletin->GPC['excludeids'] = '1,2,3';
Plugin is Active: Yes

Note: 1,2,3 are the forum id's you want to exclude.

from this thread: https://vborg.vbsupport.ru/showthrea...=154323&page=2


All times are GMT. The time now is 09:28 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.00932 seconds
  • Memory Usage 1,718KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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