![]() |
Selective Forum Filter
/*================================================= =====================*\
|| Selective Forum Filter for vBulletin 3.0.3 - 3.0.7 || Author : Psionic Vision \*================================================ ======================*/ What's That For: It enables your forum users to selectively hide various forums from the forum list and from search by using the new "Edit Forum Visibility Mode" on the index page of your forums. When hidden, users can access those forums using direct url, or using the edit mode. The user will still be able to access his hidden forums by using direct url, and he will be able to search from within them. 1.07 [+] Bugfix release.. 1.06 [+] Now you can also enter visibility edit mode in subforums. That is useful when there are many forum levels and thus not all of them are accessible from forumhome. [+] Edit mode is now saved into cookie, so until you either exit from that mode or close your browser, your state will be saved between pages :) 1.05 Two more template changes that were forgotten about in 1.04. 1.04 Major Update! The confusing type-in-digits text field in the user profile is no more. Now, to edit forum visibility, user must simply click on a new link, and that link will take him to the edit interface. See screenshots. Note: Of course, guests will not be able to access that mode. 1.03 Once again the manual has been corrected... :( 1.02 [BugFix] The subforums now get hidden as well (subforums are the list of forums that are outside your forum depth view). 1.01 My apologies - The manual has been incomplete. A query and a step were missing. This time everything is fixed :) 1.00 First Public Release P.S. I do not think there is a screenshot needed here, because the only visual thing the hack does is a new field in user options panel. I WILL ONLY PROVIDE SUPPORT IF YOU CLICK INSTALL |
I'll stick with https://vborg.vbsupport.ru/showthread.php?t=77687 - but good to see some variations :)
|
Just 1 remark. If i understand it correct a user can give a list of comma seperated forumid's.
The following however would turn the user input into an integer (so no list of comma seperated values anymore). Didn't install this, but just did a quick look at the code: PHP Code:
|
Jimpsed,
Alright, I don't mind. :squareeyed: Besides, when I was making this hack I did not know something like this exists already :) Fixed, thanks. |
Quote:
I'm probably missing something. |
not badly, beautiful job, that can be very useful in certain situation, thank you has you :)
ps: you should add a "screen" directly in this thread ;) |
Letting user type is a bad idea. Can it be like the image in second post?
|
No worries.
He can only type what he should type :) And there is no way around typing only digits separated by commas :) P.S >> If you are talking about the image in the OTHER thread, yes it can be done. However, it would require enabled JavaScript to work, and it just wouldn't if JS was off... So no, sorry, but I won't do it the graphic way. |
I learn that which seems easy for us is not for others. I can already see myself bombarded with emails: "How do I know the forum id?". It's also easier to select when you have a visual.
|
As I said, many people have javascript off. Therefore, you could then get bombarded with email "why won't that thing work". Besides, you could put the explanation about the ID into the phrase that is used to describe that field...
|
It would appear that this hack wants a field that doesn't exist in my database.
Might be an idea to include this information in the readme. :) |
And even when having a field in the user table called excludeforumids .. it doesn't do anything.
I was wondering how it could, when forumdisplay.php nor forumhome.php are changed. |
Uh, damn, yea I forgot about that. Hold on, I shall fix the readme.
|
Manual has been updated :)
|
Quote:
|
Ahh.
Also in functions_forumlist.php find: PHP Code:
And it works 100% PERFECTION! I don't need to delete any Forums now. :) |
Quote:
|
The first change only hides the forums on Forumdisplay...the one I mention hides them on ForumHome (if they are subforums, they would show if you don't apply my bit).
The code to insert is the same as you inserted as per the hack instructions, you just have to insert it again where I said to. |
For some strange reason, on my board it does hide the forum from forumhome, only with my chunk of code. And I don't really understand why wouldn't it work on yours... What version of vB do you have?
|
Quote:
It doesn't hide subforums without the bit I added. What depth of subforums are you displaying? |
Umm... What exactly do you mean by "sub"forums?
The way I did it, it hides every forum starting from the one your specified. On my board, there is only one depth level. |
Oh! Now I understand what you are talking about! And what the code is for, too. Thanks. I'll add that.
|
Manual has been updated once more :) Thanks, kall.
|
Quote:
In the install file, HTML Code:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- HTML Code:
FIND The way I have it, it is saying ONLY "If the forum is not in the excluded list, and the member has permission to see it, show it in the list of available forums to search." |
lol. yeah you are right :)))) Idk, I was probably rushing through the code.
|
Actually... I only see one instance of that eval in my search.php
Are you sure you did everything right? |
Nevermind. The thing is, I have modded my file, but forgot the fact that the line was originally there :)
|
Quote:
|
Very very nice, I'll have to test this one out. I do something with the $hidden_forums array right now, but this is much cleaner.
I wonder how one could go about making a small link to disable a forums display... Then people could just click the link for the forums they want to hide while viewing forumhome. |
Any chance of having a multiple check-box with all forums listed? So users can conveniently select the forums they want to hide? That will really complete this hack.
Anyways, good work. |
I have a better idea. How about.. hmm...
Cyrixc - good idea. How about making a link which would hide the forum, and then... Make a link which would show aLL the forums, but the hidden ones would have UNHIDE link on them :) Hehe. How about that? |
Quote:
Quote:
|
UPDATED, YAY!
NOW THERE ARE SCREENSHOTS, YAY! ^^ To upgrade: - Void any template changes you made in previous version - Void any phrases you created in previous version - Void changes made in profile.php - Void changes made in functions_forumslist.php - Make new template changes - Add new phrases - Make changes in index.php - Make new changes in functions_forumslist.php |
Look at screenshot to see what is happening to my subforums. All the names disappeared on forumhome.
|
Make sure you did the forumhome_subforumbit_post template right.
If you think you did, post its contents here. |
It seems like you have some hack installed there. Probably the "forum names in columns"... Anyways, post the template here. Because it might be in conflict w/ that other hack.
|
here are the contents
Quote:
|
Looks like I closed the conditional too far.
That was it.... Beautiful Hack!!!!! |
Yes. Fix it like this :):
HTML Code:
<if condition="$_REQUEST['e'] == 1 AND $bbuserinfo[userid]"> |
I also had to add it to 'forumhome_forumbit_level1_post'
|
All times are GMT. The time now is 04:45 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|