@Shaun Thanks but unfortunately the RSS feed plugin seems to be having some issues (at least for me), particularly with not grabbing all posts and/or duplicating them.
I'll keep my eye on the rss thread and see if it gets any updates.
I can't get to translate this piece of code to place it in my NodeBB. I'd be thankful if yoy guys can help out!
<? session_set_cookie_params(0, '/', '.site.net');
session_start();
if(!isset($_SESSION["auth_token"])) {
$_SESSION["auth_token"] = bin2hex(random_bytes(16));
$full_url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
header("Location: https://secure.site.net/auth/$_SESSION[auth_token]?return_url=".$full_url);
}
?>
NodeBB doesn't use $_SESSION
or auth tokens in this manner. I think you should look into the session sharing plugin instead:
@julian I'm newbie to Node.js, lol so I don't really understand what do I have to do after I enabled the plugin on my NodeBB.
The readme contains a comprehensive guide to setting it up... basically, you'll want to save a cookie for NodeBB to read... save this cookie in your other app.
@julian thanks, but I do not understand what is that. My webmaster helped me with the PHP code, but I'm not a programmer, and he does not use Node.js.
can you please paste the code conversion so that I can place it in my index.js
No I cannot, the code cannot be "converted" in the manner which you want. Please have your webmaster read the session sharing documentation.
@julian He abandoned me. Please tell me what to do step by step to get something similar. Thanks!