Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

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
  #32  
Old 01-18-2009, 10:38 AM
cionfs's Avatar
cionfs cionfs is offline
 
Join Date: Jun 2007
Location: Taranto - Italy
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works on vBulletin 3.8.0.
Reply With Quote
  #33  
Old 04-02-2009, 11:47 PM
NLP-er's Avatar
NLP-er NLP-er is offline
 
Join Date: Aug 2008
Location: Wrocław
Posts: 1,353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nfn View Post
Here is my plugin:

Hook: esterna?_start
$vbulletin->GPC['excludeids'] = 'X,Y,Z';
$vbulletin->GPC['notitleids'] = 1;
$vbulletin->GPC['lastpost'] = 1;
For me everything is working when it is explicity in link:
http://www.forum.simple-nlp.pl/exter...ds=23,25,52,54

But when I set options in plugin and leave link without those params:
http://www.forum.simple-nlp.pl/external.php?type=rss2

Then code in plugin have no effect. Honestly - it have no effect at all. I don't know what I'm doing wrong. Plugin is set like it is described in some post earlier. I put my ids of forums. And still empty link shows everything.

I need to find a way to change default behaviour, bacauose I already propagated by RSS link to some sites - and I even don't remember where. So right now those pages are just spammed by welcome messages in my forum, and real content is not visible :/
Reply With Quote
  #34  
Old 04-03-2009, 11:43 AM
NLP-er's Avatar
NLP-er NLP-er is offline
 
Join Date: Aug 2008
Location: Wrocław
Posts: 1,353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I already did it

You have to change existing plugin: Exclude Forum From external.php

Change:
Code:
 $vbulletin->input->clean_array_gpc('r', array(
   'excludeids' => TYPE_STR,
   'notitleids' =>TYPE_INT
 ));
To:
Code:
if ($vbulletin->GPC['excludeids'] != '') {
 $vbulletin->input->clean_array_gpc('r', array(
   'excludeids' => TYPE_STR,
   'notitleids' =>TYPE_INT
 ));
}
Be aware that now it will not react on excludeids and notitleids from link if you set it in plugin, but I don't need it. If somebody does - You know right now where make changes.
Reply With Quote
  #35  
Old 05-29-2009, 01:16 AM
fogjuice fogjuice is offline
 
Join Date: May 2009
Location: Toronto, Canada
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

why the hell have ppl rated this mod up? did they not check their rss feed? it doesn't work and this mod is so temperamental. Maybe it is just my v3.8.2 but after examining the code, I can't see how this thing works.
Reply With Quote
  #36  
Old 06-23-2009, 03:33 PM
beduino's Avatar
beduino beduino is offline
 
Join Date: Dec 2005
Location: Rio de Janeiro
Posts: 280
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Somebody knows if other mod make this excludes?
all the best
beduino
Reply With Quote
  #37  
Old 06-23-2009, 11:22 PM
NLP-er's Avatar
NLP-er NLP-er is offline
 
Join Date: Aug 2008
Location: Wrocław
Posts: 1,353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fogjuice View Post
why the hell have ppl rated this mod up? did they not check their rss feed? it doesn't work and this mod is so temperamental. Maybe it is just my v3.8.2 but after examining the code, I can't see how this thing works.
I had it working, but after update to v3.8.2 it doesn't work anymore :/

I mean it doesn't work with params written in plugin. But with teaken from url it works. Unfortunatelly I want to dissable by default some forums...
Reply With Quote
  #38  
Old 06-23-2009, 11:54 PM
NLP-er's Avatar
NLP-er NLP-er is offline
 
Join Date: Aug 2008
Location: Wrocław
Posts: 1,353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I have solution - forget about previous changes I wrote about. Starting from original version - find plugin Exclude Forum From external.php and under

Code:
// clean our new excludeids attribute
 $vbulletin->input->clean_array_gpc('r', array(
   'excludeids' => TYPE_STR,
   'notitleids' =>TYPE_INT
 ));
add

Code:
if ($vbulletin->GPC['excludeids'] == '') {
  $vbulletin->GPC['excludeids'] = ',23,25,52,54';
  $vbulletin->GPC['notitleids'] = 1;
  $vbulletin->GPC['lastpost'] = 1;
}
Of course change ids and other options if you want. In this way if excludes ate in url then those will be used and only those. If not then default excludes will be applied. Of course if it is used forumids then excludes are ignored (last block of code in mentioned plugin). For me it is great
Reply With Quote
  #39  
Old 03-08-2010, 01:32 AM
melbo melbo is offline
 
Join Date: Jun 2006
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome NLP-er! Works great.
Reply With Quote
  #40  
Old 09-27-2010, 06:41 PM
cevo cevo is offline
 
Join Date: Jun 2010
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this mod working for vb 4.x?
Reply With Quote
  #41  
Old 10-07-2010, 02:58 PM
T34's Avatar
T34 T34 is offline
 
Join Date: Nov 2009
Location: Moscow, Russia
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2 NLP-er

Dosn't works with 3.8.5
Reply With Quote
Reply

Thread Tools

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 12:36 AM.


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.10328 seconds
  • Memory Usage 2,306KB
  • Queries Executed 27 (?)
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
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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