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
Exclude Forums From external.php Details »»
Exclude Forums From external.php
Version: 1.00, by echamberlain echamberlain is offline
Developer Last Online: Mar 2017 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.8 Rating:
Released: 08-03-2007 Last Update: 08-03-2007 Installs: 79
Uses Plugins
 
No support by the author.

Ever wanted to exclude some of your forums from the external.php output, without having to add and maintain a huge include list?

Now you can, this mod adds two attributes to the external.php query string.
  • excludeids is a comma delimited string of forums to exclude from the external.php output.
  • notitleids=1 will not list all the included forum ids in the RSS feed title.
Why was this mod created and how is it used?

We redirect all our feed requests to feedburner and use it to serve all our forum feeds. We have a feed for each of our individual forums and a general feed for the entire site. Recently we added some commercial forums and don't want to clutter the feed with the commercial content, so we needed to exclude two forums. Our forum feed string now looks like:
Code:
http://forum.voxilla.com/external.php?type=rss2&lastpost=1&excludeids=97,98&notitleids=1
How does this mod work?

This mod uses the hooks in external.php to add the new settings without the need for custom code modifications.

Show Your Support

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

Comments
  #12  
Old 08-09-2007, 03:54 PM
echamberlain's Avatar
echamberlain echamberlain is offline
 
Join Date: Aug 2006
Location: San Francisco
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SBlueman View Post
Ok...let me try this....what do I edit and where do I go to edit which forums to exclude?
You add the new attributes to where ever you are using external.php.

My main RSS feed now looks like:
Code:
http://forum.voxilla.com/external.php?type=rss2&lastpost=1&excludeids=97,98&notitleids=1
Reply With Quote
  #13  
Old 08-11-2007, 07:20 PM
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Posts: 717
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So I am editing something in external.php to exclude forums now?
Reply With Quote
  #14  
Old 08-12-2007, 05:35 AM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

interesting, i thin i can use this, need to look into it
Reply With Quote
  #15  
Old 08-12-2007, 05:54 AM
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Posts: 717
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What I am trying to do is only include one forum in my rss feed. Any suggestions on how to do this efficiently?
Reply With Quote
  #16  
Old 08-12-2007, 11:31 PM
echamberlain's Avatar
echamberlain echamberlain is offline
 
Join Date: Aug 2006
Location: San Francisco
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SBlueman View Post
What I am trying to do is only include one forum in my rss feed. Any suggestions on how to do this efficiently?
It's documented in the vBulletin manual.
Reply With Quote
  #17  
Old 08-20-2007, 06:54 PM
nfn nfn is offline
 
Join Date: Feb 2007
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this Mod.
I am the one who asked for this here and here!

This is special great if you have forums that are "feed by feeds"

Here is my contribution so you don't have to add or change any query string in external.php

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.

Done!

Installed

Thanks
Reply With Quote
  #18  
Old 08-21-2007, 08:58 AM
nfn nfn is offline
 
Join Date: Feb 2007
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One more note, you can add

Code:
$vbulletin->GPC['notitleids'] = 1;

in the Plugin PHP Code to hide the ID of you forums.
Reply With Quote
  #19  
Old 09-25-2007, 01:22 PM
NeutralizeR NeutralizeR is offline
 
Join Date: Aug 2005
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

notitleids=1 still lists id's in the titles for me. It's the last forum created, is this the reason?

Is there a way to automatically exclude a specific forum from the feed without changing the original url?
Reply With Quote
  #20  
Old 10-06-2007, 08:15 PM
Cybertims Cybertims is offline
 
Join Date: Nov 2005
Location: Bedfordshire
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to feed forums that have no guest access, I want to share a staff room on two seperate forums, so a feed to and from each seems to be the answer.....is it possible though>

Cheers
Reply With Quote
  #21  
Old 11-18-2007, 01:56 AM
mexicanpizza mexicanpizza is offline
 
Join Date: Oct 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

echamberlain, nice work, thanks! Any idea how to write a mod to INCLUDE specific THREADS?
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 06:21 PM.


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.04553 seconds
  • Memory Usage 2,307KB
  • 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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (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
  • (3)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