![]() |
Quote:
I have over 300 forums, and I need to exclude just few of them and want every other included in master forum (some kind of making it What's new forum). Is it possible? EDIT: If you could program it to respect usergroup permissions, it would be excellent. |
I have no plans to have it respect usergroup permissions for thread titles at this time. I really don't even know how to start that and more importantly, it's not a feature I conceivably would ever need myself.
However to specify just forums to exclude is an easy change. In the TWO plugins, All Topic Forumdisplay Thread Count and All Topic Forumdisplay Threadid change the line: PHP Code:
PHP Code:
Now when you specify a master forum the numbers after it will be EXCLUDED instead of INCLUDED in the master forum, for example: Code:
2|11,20,58 |
Excellent. Just to ask you, if I want to make this available in one mod, but with both including and excluding forums. how can this be made? So I could make some master forums that include forums, and have some that exclude certain forums?
Or it should be made with two mods, based on the same code, but different plugins' names? In case of two mods, could variable names be the same, just plugin names different? |
For example, if it could be used + or - sign for including, or excluding forums instead having | sign.
So we would have something like this: 5+5,3,6,7,8 10-5,3,6,7,8 In this example forum 5 would show 5,3,6,7 and 8 forums and forum 10 would show every other forum. It would be great, and this way everything would be covered, even usergruop permissions we could manually control without problems. |
As it's programmed now you can either include forums or exclude forums, you can't do both. Also making a copy of the mod probably wouldn't work either because they will both try to use the same hooks at the same time.
I will only support the mod as it is written. You are free to customize it if you understand PHP and MySQL but I can't/won't support those changes. |
I don't understand it very well, but I'm looking at variables.
I think if I rename variables (not to conflict them) I probably could make this in two mods, one for including and one for excluding mods. This is what I would rename: alltopic_enable alltopic_master alltopics alltop masters assforums I think that just adding e in front of this variables (seraching and replacing) would make this two two mods (including and excluding) different enough. Do you think it is enough? |
As I said above I don't think it will work because two mods are still going to need to try and access the same hook at the same time.
But as I also said, feel free to experiment. |
Well, I'll try and see if it could work on my test site. If it works, I'll post here. :)
|
Quote:
Do you maybe know how to make excluding type of Master forum? |
1 Attachment(s)
Yeah I see now it was more work than just changing the word to "NOT".
I am uploading a working "reversed" all topic in this post. In this version of All Topic you exclude forums from the master forum only. Forums not mentioned in all-topic settings work as normal. Edited- Removed debug output from product file. |
All times are GMT. The time now is 12: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|