[RSS Feed/News] isMemberOf in PHP file

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Okay what am I doing wrong here?

In my listener file I have this.

PHP:

Code:
<?php

namespace OzzModz\Myaddon;

class Listener
{
    public static function appSetup(\XF\App $app)
    {
        // get options
        $options = \XF::options();

        // Get variables
        $this= $options->optionone;
        $that = $options->optiontwo;
        $groups = $options->select_groups;
        $visitor = \XF::visitor();
       
        // If this
        if ($this && $visitor->isMemberOf($groups))...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom