Simply removing the sign up button doesn't remove the ability for users to sign up. The API endpoint is still open to register.
Single Sign On
Nice!
A tutorial on how to set this up with wordpress would be greatly appreciated
wuethrich See this message is too excited, I was WordPress users, has been looking for ways to communicate with flarum. There is a request, the next document can be better with the map, so that we can not understand these English.
I dont really understand how to do this sadly. Where can i find the config.php.dist and Forum.php?
How do I generate a token?
Couldn't find anything searching Google.
dadiocoleman You can simply create a token from your command line:
strings /dev/random | grep -o '[[:alnum:]]' | head -n 30 | tr -d '\n'; echo
or just hit randomly on your keyboard...
This is perfect timing! Kudos, and a massive thank you.
Seems to be doing exactly what it should!
Now waiting for a Flarum "production ready" release... Because if I don't I'm afraid it will break at one point.
What do you guys think?
Hey guys. I'm trying to figure out how to integrate this to my website.
I follow all the steps (even though they are limited) but I cant get it to work.
Should I technically only need the following code to get it to work? Because it doesn't work for me:
require_once DIR . '/Forum.php';
$forum = new Forum();
$forum->login('username', 'a@b.c');
$forum->redirectToForum();
Using your test page "index.php" works fine, but when I implement those four lines of code into my own page,
it simply doesn't do anything.
On top of that, calling a php script that contains "$forum->redirectToForum();" from a JQuery POST call only returns the forum content. It doesn't actually redirect me to the forum page.
Please help.