phpVMS Vanilla Forum Bridge
phpVMS module to login users from your phpVMS based virtual airline to a Vanilla Forum install.
Released under the following license:
Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License
A visible link to http://www.simpilotgroup.com must be provided on any site utilizing this script for the license to be valid.
Developed by:
simpilot - David Clark
www.simpilotgroup.com
www.david-clark.net
Developed on:
phpVMS 2.0.874
php 5.2.11
mysql 5.0.51
apache 2.2.11
Install Instructions:
http://www.simpilotgroup.com/home/vanilla_bridge
Thanks for sharing this beautiful addon!
but I get a error when a pilot would like to join the forum,
Fatal error: Access to undeclared static property: Auth::$pilot in /home/airopavi/public_html/core/modules/Vanilla/Vanilla.php on line 78
Greets,
Michael Kraan
Is this when an existing phpVMS member is trying to create an account, or when a new member to the phpVMS site is trying to register? Is the pilot confirmed in the phpVMS system? Have any pilots been able to connect to the forum, or is it everyone? Were you able to connect when you initially set up the bridge?
This problem is with al pilots. i test 4 accounts. and the same error:
Fatal error: Access to undeclared static property: Auth::$pilot in /home/airopavi/public_html/core/modules/Vanilla/Vanilla.php on line 78
when i go to the forum admin center and than on jsconnect en than test url get i this:
test({“email":"[email protected]”,“name”:“Test Test”,“photourl”:“http://www.airopavitrual.com/lib/avatars/GBV2807.png”,“uniqueid”:“2807”,“client_id”:“681600372”,“signature”:“946520374e38c079041f0c1838963589”}
What version of phpvms are you using?
Copyright © 2007 - 2012 phpVMS, nsslive.net
License & About | Version 2.1.934
Looks like there have been some changes to the Auth class between the stable and the latest beta. I think if you change
Auth::$pilot->
to
Auth::$userinfo->
on lines 78, 83, & 87 I think it will fix the issue. Please let me know if this solves it and I will add it to the read me and install instructions.
I think the changes were made here -> https://github.com/p…e/modules/Login in April 2011 on version 2.1.934-141
error is gone!
but he is now 4 minutes on connecting
This is my settings in jsconnect:
Client ID = 681600372
Secret = secret?
Site name= My airline name
Authenticate Url = http://www.airopavitrual.com/index.php/vanilla
Sign In Url = http://www.airopavitrual.com/index.php/vanilla/login
Register Url = http://www.airopavitrual.com/index.php/registration
in modules:
class Vanilla extends CodonModule {
//Place your client ID and secret here. These must match those in your jsConnect settings.
public static $clientID = ‘681600372’;
public static $secret = ‘Secret ?’;
public static $forum_url = ‘/forum’;
function __construct() {
parent::__construct();
define(‘JS_TIMEOUT’, 24 * 60);
Greets
Michael Kraan
Read the instructions closely for the Authenticate url.
its working! thanks for you service!
I have just tried to download and install the Vanilla Forum and am hitting a problem with the jsconnect plugin setup. It is asking me to fill in various filepaths to the phpvms registration page, login page etc. I put in what I think is right and everytime it returns an error saying Oops something went wrong, we cannot process at this time.
The layout is slightly different to your instructions with one extra field and some checkboxes for ticking things. I’m not sure what any of them relate to and so I leave them as default. Try as I might, I cannot get past this page.
Is there any help you can provide. Either I’m just getting the filepaths wrong or their is something wrong with the plugin. Personally I think it’s my filepaths.
Ok so I am now further forward with this. I have finally got it to take me to the phpvms to login, but then when it is supposed to take me back to the forum site once Ive logged in, it doesn’t and I get a “whoops that page doesn’t exist”. I’ve tried a bunch of different urls which make little difference. Not sure where else to look at the moment
What is the URL of the forum? What is the URL that the site is running on?
The url of the forum installation is:
http://www.virginatlanticvirtual.co.uk/airline-operations/forum/vanilla/index.php’>http://www.virginatlanticvirtual.co.uk/airline-operations/forum/vanilla/index.php
The site itself is obviously http://www.virginatlanticvirtual.co.uk
The forum itself works lovely, I can connect just through using the forum itself. The problem is just setting up the jsconnect. In the instructions, where it tells you to create the connection and input urls for authorisation, registration etc, it says that when set up correctly and test it, it should return a result such as:
However, mine did not. It just showed me a “page cannot be found”. So I am guessing that either the forum files have been updated since this tutorial and something different needs to happen (I say this because the screenshots in the tutorial don’t match the actual software) or I am just getting the urls wrong or the “vanilla.php” settings wrong for the phpvms connection script.
So anyways, even with that problem I can get as far as the sign in link on the forum taking me to phpvms as it should. Then when I sign in, it takes me to the blank page and says “provider could not be found”.
It feels like i’m inches away from it working
Reading through the comment threads on the plugin page it looks like the current version of jsconnect (1.4.1) available here -> http://vanillaforums.org/addon/jsconnect-plugin is actually written for vanilla 2.2 which is currently unreleased. I would try downloading the 1.0.3b version here -> http://vanillaforums.org/addon/jsconnect-plugin-1.0.3b and try replacing everything with that and see if that clears things up.
[sOLVED]
Reading through the comment threads on the plugin page it looks like the current version of jsconnect (1.4.1) available here -> http://vanillaforums…sconnect-plugin is actually written for vanilla 2.2 which is currently unreleased. I would try downloading the 1.0.3b version here -> http://vanillaforums…t-plugin-1.0.3b and try replacing everything with that and see if that clears things up.
Ok so I’m not entirely sure whether it was just your suggestion or whether indeed my filepaths were screwed up, or maybe both. But I shall give you credit nonetheless! Thanks for your advice simpilot.
[sOLUTION]
- I deleted the version of jsconnect and installed the version you suggested.
- I manually deleted the auth details from the “authenticationprovider” table in the database just to give it a clean start.
- I then logged back into the dashboard for Vanilla (If you find you’ve logged out and can’t back into the admin panel follow this http://vanillaforums…-login-as-admin
- From the admin panel I then accessed the jsconnect plugin again and setup a new ID and Secret Code
- Re-entered all of the filepaths to the authorization, login and register pages (be very careful to get these right as I suspect this was a large part of the problem for me)
- Then I went back to my “vanilla.php” file from vanilla bridge and entered my new ID and Secret Key, along with the filepath to vanilla forum.
- Once I’d set everything, I then tested the url link and I got the result as per the “Vanilla Bridge” instructions from simpilotgroup.
- Tested the logins and it worked beautifully!
Another problems self-created to check off the list
I think it was the version conflict more than anything, it seems to be a common theme in the vanilla support forums.
Hello,
This addon is very good but the same for phpBB or other it would be nice.
Hello,
This addon is very good but the same for phpBB or other it would be nice.
There is a lot of good information on the phpBB site on how to intergrate a single login system with other sites and systems.
A few are:
https://www.phpbb.co…ons-integration
https://www.phpbb.co…ons-integration
https://www.phpbb.co…p?f=71&t=719055
Hi, can you explain to me how it’s done with phpVMS because I not know too much phpVMS API ?