Version: 0.3.1, by fci
Developer Last Online: Aug 2009
Category: Forum Home Enhancements -
Version: 3.6.4
Rating:
Released: 01-06-2007
Last Update: 01-09-2007
Installs: 39
Uses Plugins
No support by the author.
Description:
Users who have a field with a specific value set in their profile will have access to the forums that have been specified in the vBulletin options.
Example:
Explanation of the screenshot in English...
If a user has their Location (field2) set to Canada then they can post to forum id 73. If users do not have INTP for their Type (field5) then they will have read only access to it.
If a user has their Location (field2) set to USA AND have a minimum of 50 posts then they can post to forum id 74. If users do not have INTP for their Location (field2) then they will have read only access to it.
changelog:
0.1 - initial release
0.2 - display the real titles of the field options in vbulletin options select menus, have up to 2 field restrictions, updated screenshot.
0.3 - added the constraint that you could optionally require a minimum number of posts first, tiny code/plugin cleanups
0.3.1 - bug fix, my mistake
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I don't have a test forum I would be willing to demo it on. The other people seem to understand it without a demo.
Here is an example in context..
let's when a user registers they choose whether they are male or female. the values for male/female are stored in the userfield table (e.g., in field5). Now let's say you only wanted people who specified "Male" then they would be allowed to post in the male forum but the females would only have read access. It will be easy to expand the number of field-profile-forum permissions, I just didn't do that during testing. I am still pretty new to vbulletin hacking but this plugin would probably be more intuitive if the drop down option in the vbulletin options area actually listed the real names of the different fields which I think I can do based on some code I was skimming through earlier... anyway, if anyone has actual comments/feedback I would be glad to hear it, thanks.
just a couple of questions if i may ask:
- does this work only at registration or also changeable from the user profile?!
- I don't see multiple decisions, like if field5=USA then forums_id_to_view=9 10 11 elseif field5=Canada then forums_id_to_view=11 12 13, does it allow multiple decisions options?
EDITED:
now i read the code and i think i can allow multiple choices from the first line in the code, instead of x<2, make it x<5 or whatever number i want it to stop at+1, is that correct? I guess it just needs more explanation for ppl not into much coding as myself to show its full potential, looks very promising though.
just a couple of questions if i may ask:
- does this work only at registration or also changeable from the user profile?!
It is changeable from the user profile.. it uses the honor system but that is why I added in the ability to disallow users who would abuse the system.
Quote:
- I don't see multiple decisions, like if field5=USA then forums_id_to_view=9 10 11 elseif field5=Canada then forums_id_to_view=11 12 13, does it allow multiple decisions options?
In the version I just uploaded, you can set two field restrictions.. the code can be modified to allow more field restrictions though.
Quote:
EDITED:
now i read the code and i think i can allow multiple choices from the first line in the code, instead of x<2, make it x<5 or whatever number i want it to stop at+1, is that correct? I guess it just needs more explanation for ppl not into much coding as myself to show its full potential, looks very promising though.
yeah.. you're partly correct. the other part that would need to be changed is the vbulletin settings/options stuff which would need to be duplicated but that is simple. What number of field restrictions do you think would be useful to have? 5? 10?
Thanks for your reply FCI, good to know i got something right
anyway, right now i am only interested in like 4 fields, but the main problem is i need country fields to be added regularly. Right now i support like 4 countries, 2 years or so from now i guess i'll be hitting 15 or something.
My main point, i need something that can be easily updated "countries+1", can this be done?
Note:
i really liked the part where the user can change this field from his profile.
Thanks for your reply FCI, good to know i got something right
anyway, right now i am only interested in like 4 fields, but the main problem is i need country fields to be added regularly. Right now i support like 4 countries, 2 years or so from now i guess i'll be hitting 15 or something.
My main point, i need something that can be easily updated "countries+1", can this be done?
Note:
i really liked the part where the user can change this field from his profile.
Ok, I have just attached a product/plugin thing that has 15 possible options. I'll update the main release later as there is some minor tweaks I'd like to do first. Please let me know how it works for you as it hasn't been thoroughly tested since it is my lunch break.