KILLOVER
Member
Hello there!
I try to develop a small script that allows me to send Alerts to members. This works pretty well so far, I just cannot find out, how I can send text.
I jump on top of the xenForo SDK with this function:
	
	
	
		
And basic:
	
	
	
		
And I'm calling the script this way:
	
	
	
		
Here is the result, no errors:

Somewhere any idea how I get text in there? Maybe how I add a link?
Regards,
				
			I try to develop a small script that allows me to send Alerts to members. This works pretty well so far, I just cannot find out, how I can send text.
I jump on top of the xenForo SDK with this function:
		PHP:
	
	    public function sendAlert($user, $message) {
        $temp = $this->getUser($user);
        
        $username = $temp['username'];
        
        $alertModel = XenForo_Model::create('XenForo_Model_Alert');
        return $alertModel->alertUser($user, 2, "ILLUX", "user", 2, "https://...", array("alert_text" => $message));
    }And basic:
		PHP:
	
	    public function sendAlert($userToSendTo, $message) {
        
        $alertModel = XenForo_Model::create('XenForo_Model_Alert');
        return $alertModel->alertUser($userToSendTo, AdminUserID, "AdminUserName", "ContentType", ContentID, "action", array("alert_text" => $message));
    }And I'm calling the script this way:
		PHP:
	
	$sdk->sendAlert(1, "Testing...");Here is the result, no errors:

Somewhere any idea how I get text in there? Maybe how I add a link?
Regards,
 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		