Recent content by rhs

  1. R

    XF 2.1 Maximum mention alerts?

    Perfect. Thank you!
  2. R

    XF 2.1 Maximum mention alerts?

    Can anyone else answer the question in the first post?
  3. R

    XF 2.1 Maximum mention alerts?

    Okay, what setting is that exactly? I don't know where I would have activated it myself… :unsure: And to the first question, what does the above setting mean?
  4. R

    XF 2.1 Maximum mention alerts?

    What exactly controls this setting? My users tell me that not all @TaggedUsers are mentioned. For example, if a user taggs 10 other users in a post, maybe 3-4 of those 10 people will receive a notification. But all users have activated all notifications. Thanks!
  5. R

    XF 2.1 Getting user instance from XF?

    Thank you Liam. I had already tried this, but had not received any data. I solved it now with \XF::visitor() and it works like before with XF 1.5. But I only change a little. This was about connecting DokuWiki to the forum in such a way that a registered user can call the Wiki and is immediately...
  6. R

    XF 2.1 Getting user instance from XF?

    I'm not angry ... I don't even know how I get this data in XF 2.1. That's why I asked. Then come up with the answer, use \XF::visitor(). So far so good, but that's only half the battle ... But anyway, it works now, and I thank you for your help.
  7. R

    XF 2.1 Getting user instance from XF?

    These two lines were still missing ... $app = \XF::setupApp('XF\Pub\App'); $app->start(); So it works now. What I find a little strange is that here it is assumed that everyone feels at home in XF code. From you professionals could also come a tip/example, how it works correctly ...
  8. R

    XF 2.1 Getting user instance from XF?

    I am definitely logged in. I have called the test script also over a new menu point in xf, also there comes only empty data. I don't know what else to check. With XF 1.5 it worked immediately with the old method. Does the script work for you without any changes if it is in the forum root?
  9. R

    XF 2.1 Getting user instance from XF?

    So the above code is correct? I am probably logged in, but I only get empty user data. The test script is in the root of the forum.
  10. R

    XF 2.1 Getting user instance from XF?

    <?php $dir = __DIR__; require ($dir . '/src/XF.php'); XF::start($dir); $xf_user = \XF::visitor(); print_r($xf_user); Only gives me an empty user object, but I need the actual user ...
  11. R

    XF 2.1 Getting user instance from XF?

    That's internal from an add-on?. What I need would be external via PHP: <?php $headers = array( 'Content-type: application/json', 'XF-Api-Key: wg8N4eyz2DhBXdfCZU7AZ23mCnmR1UDc', ); $url = 'https://www.myforum.de/forum/api/me/'; $ch = curl_init(); curl_setopt($ch, CURLOPT_HTTPHEADER...
  12. R

    XF 2.1 Getting user instance from XF?

    Hello, in XF 1.5x I was able to use ... $xf_user = XenForo_Visitor::getInstance(); ... to access the data of the user who is currently logged into the XF. Using this data, I then created an automatic login in an external wiki (Dokuwiki). How do I get this data with XF 2.1? I assume with...
  13. R

    XF 1.5 User in database but not found in ACP

    Has done with it. Sorry.
  14. R

    XF 1.5 User in database but not found in ACP

    Hi, I have a user in the database (table xf_user) with user_state = "valid", which looks completely normal compared to other records. However, I cannot search for this user, neither in the forum nor in the ACP. Can I make this user account visible again?
Top