Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-18-2005, 01:19 AM
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
Location: Aiken, SC, USA
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help requested: Auto entry into usergroup from fieldX profile entry

[Edited to simplify request]

I've searched but not found anything similar. Maybe I just wasn't creative enough in my search terms.

I would like to restrict entry to a given forum to those that have a particular value entered in a custom field in their profiles. I've created the field in the profile and also added a new vBphrase in which I can store the required value.

Would appreciate any guidance on how to accomplish this. I see two possibilities:
  1. Each time the user enters the board, his fieldx value is compared to the reference vBphrase value, and if they match, he is automatically put into a special usergroup created for the purpose. If the fieldx value doesn't match the reference value, he is not put in/removed from the special usergroup. Then I can just use standard usergroup permissions to allow entry to the forum.
  2. Some custom code entered into the section that grants forum access. Pseudocode would look something like
    Code:
    if [(requesting specified conference number)
       and (fieldx doesn't match required value)]
    then (deny access)
    end if

Method "a" would be preferable because there may be some other permissions that could be added later and easily managed by this usergroup, but if method "b" is all anyone can help with, I'll gratefully take that too.

Any suggestions on how to do this?
Reply With Quote
  #2  
Old 04-21-2005, 11:37 PM
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
Location: Aiken, SC, USA
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since I've received no responses in 4 days, I've revised my post to make it clearer and more concise. Anybody got any ideas?
Reply With Quote
  #3  
Old 04-22-2005, 03:25 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any reason this must be based on a field in the profile, instead of just using Public Joinable Usergroup?
Reply With Quote
  #4  
Old 04-22-2005, 04:51 AM
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
Location: Aiken, SC, USA
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
Is there any reason this must be based on a field in the profile, instead of just using Public Joinable Usergroup?
Heh heh. Now we're getting into the stuff I edited out of the original post to make it more concise ...

The bbs is an adjunct to an organization's existing website. People who have paid to join the organization receive a username and password that gets them into the members-only portions of the site. The password is changed periodically for security reasons.

I already do a comparison with the custom profile field value against a reference phrase set to the current org pwd and display their member status in postbits. When the organization password is updated, I just change the reference phrase value and folks aren't shown as members again until they update their profiles with the updated org. pwd.

The forum in question is to be reserved for organization members only. I've initially set this forum up to require a password, which I've set to the organization password. When the organization password is updated, we just update the forum password. This works, but I'd like to automate it so that organization members wouldn't have to enter the password every time they enter this forum.

Further, I'd like for the members to have to update the organization password in their profiles each time it's updated by the organization to weed out people that have not renewed their organization membership.

The organization is large enough that I don't want bbs staff to have to manually approve entry into a user group, For one thing the bbs staff does not have access to the organization's membership records, plus I don't want the members to have to wait for somebody to react to their request every time the org pwd is updated.

Maybe there's some other way to go about this that I haven't thought of (I'm very new to vB except as a user).

I've not yet looked into promotions. Could promotions somehow be used for this?

i.e. automatically promote users from Registered to Org_Member when they have the required value in fieldx?

if so, does this ratchet them permanently, or would they be demoted out of Org_Member when they no longer have the correct value in fieldx?
Reply With Quote
  #5  
Old 04-22-2005, 02:45 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you have access from php to organisation records in some way, so you can validate board members (mail address or some other value) then this could be automated yes.

A bit hte same as we are doing here to make a difference between licensed and unlicensed members.
Reply With Quote
  #6  
Old 04-22-2005, 06:29 PM
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
Location: Aiken, SC, USA
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
If you have access from php to organisation records in some way, so you can validate board members (mail address or some other value) then this could be automated yes.

A bit hte same as we are doing here to make a difference between licensed and unlicensed members.
No, I'm afraid we don't have access to the organization membership records, which is why we're trying to "come in the back door" via the org password in the user profile.
Reply With Quote
  #7  
Old 04-22-2005, 07:26 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well if you can not do some matching against the organization database, then a password stored in the userprofile would be one of the less bad options. But i would try to investigate if there really is no way of integration.
Reply With Quote
  #8  
Old 04-22-2005, 08:07 PM
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
Location: Aiken, SC, USA
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
Well if you can not do some matching against the organization database, then a password stored in the userprofile would be one of the less bad options. But i would try to investigate if there really is no way of integration.
This may be possible, eventually. I'm not sure what they are using for user records now, but they are just starting to talk about migrating to a database on the same server host as the bbs. And at the rate at which things seem to be done, I don't want to wait for it.

So now that we've decided a field in the profile is at least a half-way reasonable approach for now (all the thought processes I've gone thru before posting in the first place) does anybody have any ideas how to pull it off?
Reply With Quote
  #9  
Old 04-22-2005, 08:10 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would not be to difficult:
- Create user profile field
- Hack all places where a forum password is checked to match against the field stored in profile
- 1 query to reset all passes when changed (not even needed)

But how often does the organisations membership info change? Could you do with a text file that is once a day downloaded to your server?
Reply With Quote
  #10  
Old 04-22-2005, 11:18 PM
joeychgo's Avatar
joeychgo joeychgo is offline
 
Join Date: Mar 2004
Location: Chicago, IL
Posts: 933
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not just add to the profile field, an option for the user to choose this?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 05:14 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
  • Page Generation 0.22500 seconds
  • Memory Usage 2,267KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete