Announcement

Collapse
No announcement yet.

Possible to allow unregistered to contact members by pm or email?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Possible to allow unregistered to contact members by pm or email?

    I am building a business community where unregistered users should be able to contact members. I have tried settings for allowing unregistered to send both private messages and email without success.

    Is there any way to allow unregistered to contact members through VB?

    Thank you

  • #2
    Guests are disallowed from sending member emails in the files:

    sendmessage.php

    Code:
    // ############################### start mail member permissions ###############################
    if ($_REQUEST['do'] == 'mailmember' OR $_POST['do'] == 'domailmember')
    {
    	globalize($_REQUEST, array('userid' => INT));
    
    	//don't let people awaiting email confirmation use it either as their email may be fake
    	if ([color=red]!$bbuserinfo['userid'][/color] OR $bbuserinfo['usergroupid'] == 3 OR $bbuserinfo['usergroupid'] == 4)
    	{
    		print_no_permission();
    	}
    
    	// check that the requested user actually exists
    	if (!$destuserinfo = $DB_site->query_first("SELECT userid, username, usergroupid, email, (options & $_USEROPTIONS[showemail]) AS showemail, languageid FROM " . TABLE_PREFIX . "user WHERE userid = $userid"))
    	{
    		$idname = $vbphrase['user'];
    		eval(print_standard_error('error_invalidid'));
    	}
    	else if ($destuserinfo['usergroupid'] == 3 OR $destuserinfo['usergroupid'] == 4)
    	{ // user hasn't confirmed email address yet or is COPPA
    		eval(print_standard_error('error_usernoemail'));
    	}
    
    }
    If you need help modifying the files, then I recommend you post on www.vbulletin.org.

    Comment


    • #3
      Thanks for the info Jake. I think I can take it form here.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X