nodebb-plugin-session-sharing not working

NodeBB Plugins
  • @julian

    Hello,

    I had installed this plugin before and it works.

    Now I have installed it again after a few months, but somehow it no longer works. Here are my settings and my code in the application. Am I doing something wrong? This is actually how it should work.

    Or is the plugin no longer compatible with the new Nodebb version?

    NodeBB v1.17.1

    Herunterladen.png

    My PHP Code

    //// NODEBB LOGIN COOKIE START ////	
    $payload = [
    	'id' => $obj->userID,
    	'username' => $obj->userName,
    	'email' => $obj->userEmail,
    	'firstName' => $obj->userFirstName,
    	'lastName' => $obj->userLastName,
    	'exp' => time() + 3600,
    ];
    
    $secret = '123456789';
    $token = Token::customPayload($payload, $secret);
    #print_r(json_encode($payload));
    // set cookie
    setcookie("lol", $token, time() + 3600, "/", "myteamspeak.online", false, true);
    //// NODEBB LOGIN COOKIE ENDE ////	
    

    https://github.com/RobDWaller/ReallySimpleJWT

    Does anyone have an idea or even know what I'm doing wrong?

  • No idea guys?


Suggested Topics


  • Is this working?

    NodeBB Plugins
    0 Votes
    2 Posts
    898 Views

    Take a look at mine plugin. Maybe this could be something for you 🙂

    GitHub - Jenkler/nodebb-widget-minecraft-stats: A widget that shows stats from Mincraft data files

    A widget that shows stats from Mincraft data files - GitHub - Jenkler/nodebb-widget-minecraft-stats: A widget that shows stats from Mincraft data files

    favicon

    GitHub (github.com)

    It uses the minecraft files directly. I intend to rewrite it in the future but it will do for now. It should be compatible with all minecraft server

  • 11 Votes
    92 Posts
    12k Views

    Published a new version(2.1.6) of this plugin for NodeBB 3.3.0

    Changes:

    Update acp with the new design Add chat message reactions Ability to toggle reaction support on posts/chats from the ACP Optimized loading of data, tooltips are only created if you mouseover a reaction instead of loading every single user who reacted on page load.
  • 0 Votes
    5 Posts
    2k Views

    The official plugin is the one maintained by the NodeBB team 🙂

    Other forks might add additional functionality or fixes, but it's up to the user who forked it to make sure the changes are transmitted upstream

  • 0 Votes
    7 Posts
    3k Views

    Yes, as @Schamper recommends, do not use relative paths to break out of the plugin's root directory, just use module.parent.require to require from the context of plugins.js, or require.main.require to require from the context of app.js

    To answer OP, I use npm link to link my folders together. I have one big messy NodeBB install ( 😉 ) and next to it is a plugins/ folder where all the plugins live.

    @psychobunny integrated grunt into NodeBB, so I just use grunt --verbose to develop now, instead of ./nodebb dev 😄

  • 1 Votes
    23 Posts
    12k Views

    @Oroton said:

    @Codejet said:

    @Mega , have uploaded this pic, simply these are 3 dif screenshots in the one pic.

    First is initial reload pushes all adjacent horizontal categories downwards leaving gap in masonary, middle is after 2 reloads (perfect, what we want), last one is after navigating and coming back to the front page.

    masonaryfbembedplugin.png

    I have a solution to cause a page reload whenever condition is met in

    $(document).on('ready', function() {}

    if condition matches front page url. But obviously you would not advise this

    EDIT: scratch that can't even get that to work since a root url link just doesn't exist. lol I'll keep trying

    Have you got this facebook plugin working?

    Working correctly in 0.7.0-dev. Both in the Masonry and Widgets.