vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   End-User Options - Selective Forum Filter (https://vborg.vbsupport.ru/showthread.php?t=215001)

Artes_Marciales 04-29-2010 06:47 PM

Nice mod!
THANKS!!!!

Artes_Marciales 05-03-2010 04:27 PM

Is strange, not work for my : S
https://vborg.vbsupport.ru/
Any idea?

MjrNuT 05-13-2010 03:04 PM

Hi, would someone kindly explain this in crayons?

Quote:

enable "can be excluded" in all forums, run this query:
UPDATE PFXforum SET excludable = 1
To disable "can be excluded" in all forums, run this query:
UPDATE PFXforum SET excludable = 0
In both cases, PFX must be replaced with the actual table prefix that you have defined in config.php.
If you have not defined a prefix, remove PFX from the queries.
After you run either one of these queries, you must then open and save any one forum for the forum cache to be updated.
I just don't understand what it's saying!

AngelBlue 05-23-2010 03:31 AM

Quote:

Originally Posted by Artes_Marciales (Post 2031204)
Is strange, not work for my : S
https://vborg.vbsupport.ru/
Any idea?

Are all your top-level forums set to be categories, with sub-forums underneath them?

If so, try opening the plugin "SPF: User Options", and replacing:
Code:

        if (trim($forum['link']))
        {
                return false;
        }

With:
Code:

        if (($forum['options'] & $vbulletin->bf_misc_forumoptions['cancontainthreads']) AND trim($forum['link']))

Samish 05-23-2010 09:58 AM

How can you make it so that some Forums do not show up in the list so 'have to be viewed'?

Artes_Marciales 05-23-2010 01:44 PM

Quote:

Are all your top-level forums set to be categories, with sub-forums underneath them?
Yes.

Quote:

Originally Posted by AngelBlue (Post 2042087)
Are all your top-level forums set to be categories, with sub-forums underneath them?

If so, try opening the plugin "SPF: User Options", and replacing:
Code:

        if (trim($forum['link']))
        {
                return false;
        }

With:
Code:

        if (($forum['options'] & $vbulletin->bf_misc_forumoptions['cancontainthreads']) AND trim($forum['link']))

THANKS for reply, but d?ont wok for my :confused:
Any idea?

Tettinntil 05-23-2010 02:20 PM

Quote:

Originally Posted by Tettinntil (Post 2012259)
We have a modified "new posts" search on the forum; http://myforum/search.php?do=getnew&f=xx , where xx is a forum with many sub forums. The members choices for which forums to filter from new posts search do not work on this modified search. Is there anything I could do to make it work?

Any help on this?

AngelBlue 06-02-2010 06:46 AM

1 Attachment(s)
Here's how I got this working with vb4:
  1. Import attached version of the product, allowing overwrite. (this is the standard product, but with Fiel's changes included)
  2. Edit your 'navbar' template. Add: "&exclude={vb:raw bbuserinfo.excludeforumids}" to the end of all links which go to search.php, and which contain both "do=getnew" and "contenttype=vBForum_Post" in the URL.

thefnool 06-04-2010 11:40 AM

Hey — love the look of this, but is there any way to get it to apply to forums that aren't listed on the index? I have a few boards that are linked to through unconventional means and aren't present on the index at all, and as such they don't turn up on the menu in the user control panel. My goal is to allow people to filter certain forums/sections out and prevent them from appearing on areas like the "new posts" page.

Cheers.

Trek 07-04-2010 05:33 AM

Quote:

Originally Posted by AngelBlue (Post 2046926)
Here's how I got this working with vb4:
  1. Import attached version of the product, allowing overwrite. (this is the standard product, but with Fiel's changes included)
  2. Edit your 'navbar' template. Add: "&exclude={vb:raw bbuserinfo.excludeforumids}" to the end of all links which go to search.php, and which contain both "do=getnew" and "contenttype=vBForum_Post" in the URL.

Works perfectly, excellent work, thank you!

Trek 07-04-2010 06:33 AM

So I installed this, then realized it wasn't working with PaulM's Unread Posts mod.

There is probably a better way to get this to work with it, but this is what I did.

Open Plugin: Unread Posts and Reputation, Hook: Parse Templates

Find:

Code:

$eforums = unserialize($vbulletin->options['dupexcl']);
Add under it:

Code:

$eforums2 = explode(",", $vbulletin->userinfo['excludeforumids']);

Find:

Code:

in_array($xid,$eforums)
Add under it:

Code:

OR in_array($xid,$eforums2)
That should be it!

Hopefully this helps someone else using the same mod. =) Keep in mind though if/when Paul updates his mod, you'll have to make these changes again.

Robbed 07-11-2010 07:25 PM

Quote:

Originally Posted by AngelBlue (Post 2046926)
Here's how I got this working with vb4:
  1. Import attached version of the product, allowing overwrite. (this is the standard product, but with Fiel's changes included)
  2. Edit your 'navbar' template. Add: "&exclude={vb:raw bbuserinfo.excludeforumids}" to the end of all links which go to search.php, and which contain both "do=getnew" and "contenttype=vBForum_Post" in the URL.

Thanks, it's working now.

Fraxter 07-18-2010 02:49 PM

An update for vB4 would be the best and easiest way. I hope Psionic Vision will do it soon.

mikexxx 07-21-2010 02:14 PM

If i use this mod in vb4 the layout is not good.

El Orans 07-27-2010 06:12 PM

Quote:

Originally Posted by mikexxx (Post 2072448)
If i use this mod in vb4 the layout is not good.

Template modifyoptions_excludeforums is easily changed. :)

benstillman 10-13-2010 07:45 PM

Quote:

Originally Posted by Saint_ago (Post 1874761)
Same here!

http://www.battlecentral.xpg.com.br/forum/

Works fine on IE and FF, but in Opera don't.. :/

Same problem here.

scottct1 10-29-2010 03:29 PM

I am running this on vBulletin 4 and it has been working fine but I have a few issues

1) I added a new forum and its not being displayed in the list to be able to block it. How do I get the new forum to show?

2) People are upset they are seeing results in excluded forums in their searches, how do I get this to work with all searches?

Thank you for your help!

onealien 10-29-2010 09:37 PM

geez...large board...huge forums...huge load of threads...

wat a great problem to have...lolll...ill save this until i can get on yur level...thanks

scottct1 10-29-2010 09:53 PM

I have problem #1 fixed. Didnt set the forum to be allowed to be excluded. (DOH!)

BirdOPrey5 10-30-2010 05:04 PM

They need to install this here on vbulletin.org!

wmlvb 12-05-2010 10:16 AM

keep trying to download but getting a download failed message.

BirdOPrey5 12-05-2010 12:57 PM

Maybe try another web browser because it's working for me...

Artes_Marciales 12-06-2010 06:53 AM

VB 3.8.6
Quote:

Originally Posted by Artes_Marciales (Post 2031204)
Is strange, not work for my : S
https://vborg.vbsupport.ru/
Any idea?


blue6995 12-29-2010 07:55 AM

Quote:

Originally Posted by AngelBlue (Post 2046926)
Here's how I got this working with vb4:
  1. Import attached version of the product, allowing overwrite. (this is the standard product, but with Fiel's changes included)
  2. Edit your 'navbar' template. Add: "&exclude={vb:raw bbuserinfo.excludeforumids}" to the end of all links which go to search.php, and which contain both "do=getnew" and "contenttype=vBForum_Post" in the URL.

Where would I insert "&exclude={vb:raw bbuserinfo.excludeforumids}" and do I need to include the quotes "at each end"

I have this line for instance - <li><a href="search.php?{vb:raw session.sessionurl}
do=getnew&amp;contenttype=vBForum_Post">{vb:rawphr ase new_posts_nav}</a></li>

Where in it would I insert "&exclude={vb:raw bbuserinfo.excludeforumids}"

Thanks

BirdOPrey5 12-29-2010 12:51 PM

Quote:

Originally Posted by blue6995 (Post 2140573)
Where would I insert "&exclude={vb:raw bbuserinfo.excludeforumids}" and do I need to include the quotes "at each end"

I have this line for instance - <li><a href="search.php?{vb:raw session.sessionurl}
do=getnew&amp;contenttype=vBForum_Post">{vb:rawphr ase new_posts_nav}</a></li>

Where in it would I insert "&exclude={vb:raw bbuserinfo.excludeforumids}"

Thanks

You'd make it:

Code:

<li><a href="search.php?{vb:raw session.sessionurl}
do=getnew&exclude={vb:raw bbuserinfo.excludeforumids}&amp;contenttype=vBForum_Post">{vb:rawphrase new_posts_nav}</a></li>


blue6995 12-29-2010 01:52 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2140690)
You'd make it:

Code:

<li><a href="search.php?{vb:raw session.sessionurl}
do=getnew&exclude={vb:raw bbuserinfo.excludeforumids}&amp;contenttype=vBForum_Post">{vb:rawphrase new_posts_nav}</a></li>


Very many thanks. That worked

Mellow 12-30-2010 01:00 PM

Quote:

Originally Posted by Trek (Post 2064210)
So I installed this, then realized it wasn't working with PaulM's Unread Posts mod.

There is probably a better way to get this to work with it, but this is what I did.

Open Plugin: Unread Posts and Reputation, Hook: Parse Templates

Find:

Code:

$eforums = unserialize($vbulletin->options['dupexcl']);
Add under it:

Code:

$eforums2 = explode(",", $vbulletin->userinfo['excludeforumids']);

Find:

Code:

in_array($xid,$eforums)
Add under it:

Code:

OR in_array($xid,$eforums2)
That should be it!

Hopefully this helps someone else using the same mod. =) Keep in mind though if/when Paul updates his mod, you'll have to make these changes again.

That didn't work for me for some reason..

The rest of the product is working just not Paul's mod w/your changes.

I'm also on 4.1 so that might have something to do with it.

Mellow 12-30-2010 09:55 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2140690)
You'd make it:

Code:

<li><a href="search.php?{vb:raw session.sessionurl}
do=getnew&exclude={vb:raw bbuserinfo.excludeforumids}&amp;contenttype=vBForum_Post">{vb:rawphrase new_posts_nav}</a></li>


For this to work with Paul's unread post mod there's 3 phrases that also need to be modified I believe.

dup_no_posts
dup_unread_posts
dup_x_unread_posts

But, I'm not sure how to do that as editing the phrases and inserting the above won't work. Any ideas?

BirdOPrey5 12-31-2010 03:58 AM

I'm not familiar with Paul's mod- the best place to ask would be in the mod thread.

Mellow 12-31-2010 10:49 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2141679)
I'm not familiar with Paul's mod- the best place to ask would be in the mod thread.

You're right, my bad, will do it now.

Mellow 12-31-2010 11:02 AM

Quote:

Originally Posted by Trek (Post 2064210)
So I installed this, then realized it wasn't working with PaulM's Unread Posts mod.

There is probably a better way to get this to work with it, but this is what I did.

Open Plugin: Unread Posts and Reputation, Hook: Parse Templates

Find:

Code:

$eforums = unserialize($vbulletin->options['dupexcl']);
Add under it:

Code:

$eforums2 = explode(",", $vbulletin->userinfo['excludeforumids']);

Find:

Code:

in_array($xid,$eforums)
Add under it:

Code:

OR in_array($xid,$eforums2)
That should be it!

Hopefully this helps someone else using the same mod. =) Keep in mind though if/when Paul updates his mod, you'll have to make these changes again.

What did you do about the phrases in the plugin? What version of vb are you running?

dutchbb 01-06-2011 01:36 PM

It doesn't seem to be working correctly, it just shows an empty box. And I have run the query to enable every forum...

sticky 01-17-2011 05:35 AM

Any chance of getting this updated for VB4?

Trek 01-17-2011 05:51 AM

Quote:

Originally Posted by sticky (Post 2150332)
Any chance of getting this updated for VB4?

It already works actually. There's a post somewhere in this thread where someone made a couple updates, but overall it works, I've been using it on my forum for a long time now.

sticky 01-23-2011 07:58 AM

Quote:

Originally Posted by Trek (Post 2150335)
It already works actually. There's a post somewhere in this thread where someone made a couple updates, but overall it works, I've been using it on my forum for a long time now.

Yes, but from what I read there are some issues? What version are you running on? Does it work well for you?

Trek 01-23-2011 08:54 PM

Quote:

Originally Posted by sticky (Post 2153249)
Yes, but from what I read there are some issues? What version are you running on? Does it work well for you?

I'm running vB 4.1.0 at the moment and it works fine. The best thing I can tell you is to try it if it doesn't work, just remove it. =)

sticky 01-26-2011 03:52 AM

Quote:

Originally Posted by Trek (Post 2153498)
I'm running vB 4.1.0 at the moment and it works fine. The best thing I can tell you is to try it if it doesn't work, just remove it. =)

Thanks, I saw all the changes necessary to make it work and I have so many different styles and such it just would be a pain in the butt to make all the edits. I'm also using Paul's mod so I will wait until someone gets a VB 4 version up.

Braincrusher 02-09-2011 07:30 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2140690)
You'd make it:

Code:

<li><a href="search.php?{vb:raw session.sessionurl}
do=getnew&exclude={vb:raw bbuserinfo.excludeforumids}&amp;contenttype=vBForum_Post">{vb:rawphrase new_posts_nav}</a></li>


Works fine thanx

LoveStream 02-13-2011 09:07 PM

I like this hack too.

But I want another feature that I need Usergroup based filter than user based.
So, how could I modify it?

Could you teach how the code should be included?

Every usergroup can select exclude or include.
Every forum can be exclude or include


This two option is necessary.

Thank you.

TalkVirginia 04-09-2011 05:09 AM

Quote:

Originally Posted by AngelBlue (Post 2046926)
Here's how I got this working with vb4:
  1. Import attached version of the product, allowing overwrite. (this is the standard product, but with Fiel's changes included)
  2. Edit your 'navbar' template. Add: "&exclude={vb:raw bbuserinfo.excludeforumids}" to the end of all links which go to search.php, and which contain both "do=getnew" and "contenttype=vBForum_Post" in the URL.

The second part of this doesn't work when you have the mod
Tabs Add System for vBulletin 4 (sstab advanced) installed.

https://vborg.vbsupport.ru/showthread.php?t=233629

Not sure how to fix this.


All times are GMT. The time now is 05:56 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.01493 seconds
  • Memory Usage 1,847KB
  • 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
  • (20)bbcode_code_printable
  • (23)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
  • (40)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