vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Restricting Forum Registration (https://vborg.vbsupport.ru/showthread.php?t=267045)

bbi 07-18-2011 09:02 PM

Restricting Forum Registration
 
Is it possible to restrict who may join your forum based on their email address extension? I am trying to limit access to only those people who belong to a specific insitution.
Thanks

Eric 07-18-2011 09:19 PM

It is possible. I thought I saw a mod for it here but I cannot seem to find it atm. You could make a plugin to block certain extensions/domains.

This has not been tested, but something like:

Hook location: register_addmember_process
PHP Code:
PHP Code:

    $emailcheck = @explode('@'$vbulletin->GPC['email']);
    
$emailcheck $emailcheck[1];

    if (
strpos($emailcheck'domain.edu') === false)
    {
        
$userdata->error('invalidemail');
    } 


bbi 07-18-2011 10:38 PM

If we have more than one institution that we want to restict the forum to then I assume we would have to include the list of institution's email extensions in the conditional statement. Is that correct?

HMBeaty 07-19-2011 12:14 AM

Quote:

Originally Posted by bbi (Post 2222186)
If we have more than one institution that we want to restict the forum to then I assume we would have to include the list of institution's email extensions in the conditional statement. Is that correct?

Yes, that would be correct


All times are GMT. The time now is 09:27 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
  • Page Generation 0.01311 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete