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
  #22  
Old 12-19-2007, 04:15 PM
zmmmzz zmmmzz is offline
 
Join Date: Nov 2007
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks!!!
Reply With Quote
  #23  
Old 02-05-2008, 08:01 PM
Eq4bits Eq4bits is offline
 
Join Date: May 2006
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What if I want to exclude ALL but one forum? Sort of the opposite of what this mod does...
Reply With Quote
  #24  
Old 02-05-2008, 08:28 PM
echamberlain's Avatar
echamberlain echamberlain is offline
 
Join Date: Aug 2006
Location: San Francisco
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Instructions for creating feeds for individual forums is in the vBulletin documentation.
Reply With Quote
  #25  
Old 04-30-2008, 09:24 AM
smestas smestas is offline
 
Join Date: Nov 2002
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sorry if this is obvious, but will this work OK in 3.7?
Reply With Quote
  #26  
Old 05-02-2008, 01:54 PM
nfn nfn is offline
 
Join Date: Feb 2007
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mine is working!
Reply With Quote
  #27  
Old 05-03-2008, 07:52 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've added the above $vbulletin->GPC['notitleids'] = 1; to the plugin code, and it is still out putting all the forum id's!

any idea?
Reply With Quote
  #28  
Old 05-04-2008, 09:31 PM
nfn nfn is offline
 
Join Date: Feb 2007
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is my plugin:

Hook: esternaç_start
$vbulletin->GPC['excludeids'] = 'X,Y,Z';
$vbulletin->GPC['notitleids'] = 1;
$vbulletin->GPC['lastpost'] = 1;
Reply With Quote
  #29  
Old 08-19-2008, 10:15 PM
zmmmzz zmmmzz is offline
 
Join Date: Nov 2007
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this working in 3.7.2?
Reply With Quote
  #30  
Old 08-30-2008, 03:32 AM
Ingmar Ingmar is offline
 
Join Date: Aug 2005
Location: Ontario, Canada
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you echamberlain and nice contribution nfn!

*clicks installed*
Reply With Quote
  #31  
Old 09-20-2008, 08:46 AM
ColinP ColinP is offline
 
Join Date: Jun 2002
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I've just installed this and it works brilliantly. Just one issue - the notitleids parameter has no effect. Any ideas?
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:13 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.04301 seconds
  • Memory Usage 2,297KB
  • 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)bbcode_code
  • (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
  • (4)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