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)
-   -   Miscellaneous Hacks - Exclude Forums From external.php (https://vborg.vbsupport.ru/showthread.php?t=154323)

echamberlain 08-03-2007 10:00 PM

Exclude Forums From external.php
 
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.

FreshFroot 08-04-2007 08:36 PM

pretty cool hack, thanks mate :D

tpearl5 08-05-2007 09:42 PM

Thanks! Exactly what I needed!

pictureboarduk 08-06-2007 08:45 PM

What does this do?

Thanks.

SBlueman 08-07-2007 03:06 AM

Where do you edit the forums to include/exclude in the ACP?

baghdad4ever 08-07-2007 08:47 AM

Quote:

Originally Posted by SBlueman (Post 1311606)
Where do you edit the forums to include/exclude in the ACP?


i wanna the same thing

ringleader 08-07-2007 09:15 AM

Excellent stuff - perfect for me when hiding forums from RSS feeds :D

echamberlain 08-08-2007 03:34 PM

Quote:

Originally Posted by SBlueman (Post 1311606)
Where do you edit the forums to include/exclude in the ACP?

I didn't add any ACP control.

The excluded forums are controlled from the external.php query string.

SBlueman 08-09-2007 02:44 AM

Ok...let me try this....what do I edit and where do I go to edit which forums to exclude?

StarBuG 08-09-2007 10:51 AM

Hi

Even though I have the &notitleids=1 command in my url, for one of my forums it still shows the ids when I add more then 2 forum ids to exclude.

http://www.patientenfragen.net/exter...3&notitleids=1

On my other forum, this problem does not exist even with 3 ids in the url.

http://www.elternfragen.net/external...2&notitleids=1

I have no clue why this happened

Thanks for this mod. ;)

StarBuG


All times are GMT. The time now is 11:32 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.01742 seconds
  • Memory Usage 1,733KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (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