![]() |
Access Forum Based On Value in User Profile Field
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 |
very intersting, I like it.
|
demo please.
|
Seems Interesting, Good Add-on ;)
|
Quote:
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. |
I have a few forums that would be better off as user optional.. This will work nicely for those.
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. |
Quote:
Quote:
Quote:
Thanks for the feedback |
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. |
Quote:
|
All times are GMT. The time now is 07:44 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:
|