vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Selective Forum Filter (https://vborg.vbsupport.ru/showthread.php?t=79883)

akanevsky 04-17-2005 05:11 PM

Why would you add it to forumhome_forumbit_level1_post?

akanevsky 04-17-2005 05:16 PM

Uhm. Yeah. Now I see why. Is there anywhere I can read about which one of those four templates affect the forum in each case?

Lionel 04-17-2005 05:18 PM

What would you like?

Lionel 04-17-2005 05:25 PM

This is really cool. It removes entire subcategories if you select the parent above. When you first came out with the hack, it did not make sense to me to ask users to jot down forums numbers on a piece of paper so they could input them in control panel. Now it is 100% perfect. Thank you for improving it.

akanevsky 04-17-2005 05:29 PM

Nevermind. Also do that change for forumhome_forumbit_level2_nopost.
Thanks for pointing that out, I'll update the archive.

akanevsky 04-17-2005 05:31 PM

Lionel. As it states in the description, it does hide the entire category, however it will still be present in search facility. You need to check EVERY forum you want to hide from search facility manually :)

akanevsky 04-17-2005 05:39 PM

Update: v1.05

To update, simply apply changes to the following templates:
forumhome_forumbit_level1_post
forumhome_forumbit_level2_nopost
(of course, use the manual to find out what changes to make :))

Cyricx 04-18-2005 04:28 PM

That'd be awesome Visor. :)

I use some simliar code on my site, but nothing near this precise or clean :)

It hides then by groups rather then individually with a link to turn them all on again.

It would certainly make this hack more "dummy proof" for the users that aren't too computer minded :)

Niceboy 04-18-2005 04:39 PM

Quote:

Originally Posted by Cyricx
That'd be awesome Visor. :)

I use some simliar code on my site, but nothing near this precise or clean :)

It hides then by groups rather then individually with a link to turn them all on again.

It would certainly make this hack more "dummy proof" for the users that aren't too computer minded :)

Well i was before searching for this hack but later i f ind this do not need any hack u can done this in the Custom Profile by add a new Profile and new code that is going to be add in the profile member can go to the profile and Disbled The forum is going to be Edit .. i use this for the Adult forum so really no need hack or anything it is olny Template Modify

Thankyou :)

akanevsky 04-18-2005 05:52 PM

Stop flooding please.

Phalynx 04-19-2005 03:04 PM

Really nice Hack. It works, but I had to change 2 things:

Forum is named forum.php not index.php:
Code:

<if condition="$_REQUEST['e'] == 1 AND $bbuserinfo[userid]">
&nbsp; &nbsp;
<a href="forum.php?$session[sessionurl]e=0">$vbphrase[showhideforums_turnoff]</a></if>
<if condition="$_REQUEST['e'] != 1 AND $bbuserinfo[userid]">
&nbsp; &nbsp;
<a href="forum.php?$session[sessionurl]e=1">$vbphrase[showhideforums_turnon]</a>
</if>

After updating, go back to forumhome, instead of editmode again:
In forum.php (index.php) I added
Code:

header("Location: forum.php");
after

Code:

$DB_site->query("UPDATE user SET excludeforumids = '" . $bbuserinfo['excludeforumids'] . "' WHERE userid = '" . $bbuserinfo['userid'] . "' LIMIT 1");

akanevsky 04-19-2005 05:53 PM

Quote:

Really nice Hack.
Thank you :)

Quote:

Forum is named forum.php not index.php
I assume that any hack should be made to work on default configuration. If one is advanced enough to change things like that (like you), he will be able to fix it :)

Quote:

After updating, go back to forumhome, instead of editmode again:
In forum.php (index.php) I added
To tell you the truth, I made it go to the edit mode again on purpose. If you wish to fix it, there is no need for additional PHP code. What you have to do is change

Code:

<form method="post">
<input type="hidden" name="do" value="showhideforums_update" />

to

Code:

<form method="post" action="index.php">
<input type="hidden" name="do" value="showhideforums_update" />

In the hack code :) That's it. I do not see the reason, however, to make the user exit the mode just like that... Maybe he wants to make sure he marked everything right?

Niceboy 04-19-2005 08:19 PM

Edit : [Removed]

akanevsky 04-19-2005 09:09 PM

Phalynx, Niceboy
What does the content of your posts have to do with my hack?

scottct1 04-22-2005 01:18 PM

I installed this and my users love it, howevr I have noticed what appears to be a bug, my users are reporting they can only hide 27 forums, any more then that and it does not work correctly. Is there any ways we can bump the number up to 50?

(I have a LOT of forums) :)

Scott

akanevsky 04-22-2005 05:51 PM

Try increasing length of the DB field.

scottct1 04-23-2005 05:44 PM

And how would I go about doing that? I am not a programmer which is why I am using your hack. :) And a great hack it is!

akanevsky 04-24-2005 11:36 AM

Use phpmyadmin which is in your cpanel. :)

artonex 04-24-2005 04:02 PM

This is very nice i will install it soon :)

scottct1 04-24-2005 04:59 PM

I know that. :)

But what do I change ALTER TABLE `user` ADD `excludeforumids` VARCHAR( 100 ) NOT NULL ; to?

And is there any way to modify the table without dropping it and readding it which would force the users to select their forums again.

Thanks!

Lionel 04-24-2005 05:05 PM

That is the only field that you added in the hack. This is where you place the forums numbers, so that field is quickly filled up (1 2 300 etc...) with characters, so making that field 250 will give you more space.

akanevsky 04-24-2005 05:35 PM

ALTER TABLE `user` CHANGE `excludeforumids` `excludeforumids` VARCHAR( 255 ) NOT NULL

vakvak 04-30-2005 09:07 PM

Dark Visor thank:)

scottct1 06-14-2005 02:12 PM

Anyone know if this worked on 3.5?

My users LOVE this hack and it is a must have for my site. :)

I will not upgrade to 3.5 without it. :D

akanevsky 06-20-2005 05:47 PM

It will probably NOT work on 3.5.
However, if 3.5 will be successful and many users will upgrade, I might write a remake of this hack...

maharajah 07-19-2005 04:37 AM

When i click on the button to save, nothing happens.
Am i missing something ?

.

akanevsky 07-19-2005 02:48 PM

What do you mean - nothing happens? Can you be more specific?

It should just refresh the page, while updating your profile. If you then go back to homepage, you will not see the forums you hid..

sross 07-25-2005 10:16 AM

Hi this hack is a real life saver! I have installed it but one main problem. Have a look:

http://www.apug.org/forums/

As you can see i have 3 languages, and each language forum contains all of the forums for that language -so basically most of my forums are subforums. How hard would it be to modify this hack so that I can use it with subforums? I am willing to pay for your services and need it as soon as possible, can you PM me? THANKS!

akanevsky 07-25-2005 11:07 AM

I'll look into it..

akanevsky 07-25-2005 12:37 PM

VERSION 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 :)

HOW TO UPDATE:
1. Download 1.06 package.
2. Redo changes for index.php
3. Do new changes involving forumdisplay.php (the file was not used in prev. version)
4. Redo all template changes using the new manual
5. Done.

sross 07-25-2005 09:12 PM

This is great! I am going to install it today and send you some paypal :) :) :)

Thanks!

sross 07-26-2005 01:02 AM

ok I installed it as per instructions. Before the upgrade it was working, now after upgrading I do not have any forum errors and i have the check box visible on the subforums, but the "Save Hidden Forum State" button doesn't seem to do anything at all, it's just unresponsive. Any idea what I've done wrong? thanks!

akanevsky 07-26-2005 01:09 AM

Can I please take a look at it on your site? (Gimme URL please)...

akanevsky 07-26-2005 12:22 PM

1.07 :: BUGFIX RELEASE

To upgrade, simply redo steps that have to do with index.php and forumdisplay.php.
1 minute upgrade =)

sross 07-26-2005 08:55 PM

works perfectly now! :)

akanevsky 07-26-2005 09:15 PM

Good :)

sross 07-27-2005 10:34 AM

I am curious, is there a way to see how many people are using it, or is this all specific to their accounts. I just thought it would be cool to know if 50 people are ignoring a particular forum or not.. Maybe I can see this info in phpmyadmin? thanks :)

akanevsky 07-27-2005 11:09 AM

The data for this hack is stored in "excludeforumids" column of the "user" table.
It wouldn't be easy to read it for a human, though, because it is stored as a simple list of IDs. Therefore there is no way to find out how many people are ignoring a particular forum.

scottct1 09-29-2005 05:10 PM

Please port this to Vb3.5 ASAP. :)

And also post your Paypal information.

This should be STANDARD in Vbulletin! :D

Thanks for the great hack!

jilly 11-07-2005 03:34 AM

I have installed this, and when I go into edit mode, I can see the checkbox by the category names, but not the individual forums.

Also, when I go into subforums, it will show the checkbox by the subforums, but not the list of regular forums beloe a category


All times are GMT. The time now is 09:48 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.01223 seconds
  • Memory Usage 1,810KB
  • 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
  • (5)bbcode_code_printable
  • (4)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
  • (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