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)

cionfs 01-18-2009 10:38 AM

It works on vBulletin 3.8.0.

NLP-er 04-02-2009 11:47 PM

Quote:

Originally Posted by nfn (Post 1508623)
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 :/

NLP-er 04-03-2009 11:43 AM

Ok I already did it :D

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.

fogjuice 05-29-2009 01:16 AM

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.

beduino 06-23-2009 03:33 PM

Somebody knows if other mod make this excludes?
all the best
beduino

NLP-er 06-23-2009 11:22 PM

Quote:

Originally Posted by fogjuice (Post 1819200)
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...

NLP-er 06-23-2009 11:54 PM

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 :D

melbo 03-08-2010 01:32 AM

Awesome NLP-er! Works great.

cevo 09-27-2010 06:41 PM

Is this mod working for vb 4.x?

T34 10-07-2010 02:58 PM

2 NLP-er

Dosn't works with 3.8.5 :(


All times are GMT. The time now is 06:36 AM.

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.01177 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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