Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Access Forum Based On Value in User Profile Field Details »
Access Forum Based On Value in User Profile Field
Mod Version: 0.3.1, by fci (Member) fci is offline
Developer Last Online: Aug 2009 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.4 Rating: (6 votes - 4.67 average) Installs: 37
Released: 07 Jan 2007 Last Update: 10 Jan 2007 Downloads: 213
Not Supported Uses Plugins  

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

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	product-fieldaccessforum-0.3.png
Views:	705
Size:	123.1 KB
ID:	58730  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Add User to Primary Usergroup Based on Value of Custom Profile Field amykhar vBulletin 3.5 Add-ons 129 22 Dec 2013 17:06
Add User to Secondary Usergroup Based on the Value of a Custom Profile Field at Reg. amykhar vBulletin 3.5 Add-ons 133 01 Jan 2013 15:06

Comments
  #2  
Old 07 Jan 2007, 01:21
Bolas's Avatar
Bolas Bolas is offline
 
Join Date: Jan 2003
very intersting, I like it.
Reply With Quote
  #3  
Old 07 Jan 2007, 02:52
abramelin's Avatar
abramelin abramelin is offline
 
Join Date: Mar 2006
demo please.
Reply With Quote
  #4  
Old 07 Jan 2007, 05:08
FunaGuy's Avatar
FunaGuy FunaGuy is offline
 
Join Date: Dec 2005
Seems Interesting, Good Add-on
__________________

Retired
Reply With Quote
  #5  
Old 07 Jan 2007, 07:59
fci fci is offline
 
Join Date: Nov 2004
Real name: Clayton Smith
Originally Posted by abramelin View Post
demo please.
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.
Reply With Quote
  #6  
Old 07 Jan 2007, 08:10
Reef Reef is offline
 
Join Date: May 2003
I have a few forums that would be better off as user optional.. This will work nicely for those.

Thanks
Reply With Quote
  #7  
Old 07 Jan 2007, 10:30
DeMagH DeMagH is offline
 
Join Date: Oct 2006
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.

Last edited by DeMagH; 07 Jan 2007 at 10:49. Reason: EDITED part
Reply With Quote
  #8  
Old 07 Jan 2007, 20:55
fci fci is offline
 
Join Date: Nov 2004
Real name: Clayton Smith
Originally Posted by DeMagH View Post
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.

- 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.

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 the feedback
Reply With Quote
  #9  
Old 09 Jan 2007, 03:59
DeMagH DeMagH is offline
 
Join Date: Oct 2006
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.
Reply With Quote
  #10  
Old 09 Jan 2007, 18:41
fci fci is offline
 
Join Date: Nov 2004
Real name: Clayton Smith
Originally Posted by DeMagH View Post
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.

Last edited by fci; 16 Jan 2007 at 18:05.
Reply With Quote
  #11  
Old 10 Jan 2007, 01:24
DeMagH DeMagH is offline
 
Join Date: Oct 2006
thanks will give it a try later tomorrow and will report here later for sure.

thanks for your help and support, really appreciated.
Reply With Quote
  #12  
Old 10 Jan 2007, 05:17
Kalina's Avatar
Kalina Kalina is offline
 
Join Date: Mar 2005
Location: Canada
Real name: Colleen
I don't know if I misunderstood, but what I wanted was my members had to choose "yes" to see a specific forum. I still want them to see all the other forums, however, it caused my members to all see no forums at all, til they answered yes, did I do something wrong?

I only entered one ID, the ID of the forum you need to check off "yes" to see it.
Reply With Quote
  #13  
Old 10 Jan 2007, 14:26
fci fci is offline
 
Join Date: Nov 2004
Real name: Clayton Smith
Hi Kalina,

I had a bug in my code, I am sorry for the mess up, please try the latest version and let me know how it goes. Thanks.

Last edited by fci; 10 Jan 2007 at 19:08.
Reply With Quote
  #14  
Old 16 Jan 2007, 01:49
DeMagH DeMagH is offline
 
Join Date: Oct 2006
i gave it a shot, but the problem is it doesn't override the usergroup permission, which is cool, but the main problem is, i based all my forum sections on usergroup permission, will give it a try to mess things up whenever my apache server is ready for any further testing before changing anything major in my forums construction.

Will report here later, again
Reply With Quote
  #15  
Old 16 Jan 2007, 14:11
fci fci is offline
 
Join Date: Nov 2004
Real name: Clayton Smith
Originally Posted by DeMagH View Post
i gave it a shot, but the problem is it doesn't override the usergroup permission, which is cool, but the main problem is, i based all my forum sections on usergroup permission, will give it a try to mess things up whenever my apache server is ready for any further testing before changing anything major in my forums construction.

Will report here later, again
I'll need to regenerate it so it has the 15 options you'd need because there's a bug in the attachment I posted for you early..
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:04.

Layout Options | Width: Wide Color: