Jump to content

Recommended Posts

  • Administrators
Posted

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

Posted

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

  • Administrators
Posted

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?

Posted

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":"michaelkraan@gmail.com","name":"Test Test","photourl":"http:\/\/www.airopavitrual.com\/lib\/avatars\/GBV2807.png","uniqueid":"2807","client_id":"681600372","signature":"946520374e38c079041f0c1838963589"}

  • Administrators
Posted

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. B)

I think the changes were made here -> https://github.com/p...e/modules/Login in April 2011 on version 2.1.934-141

Posted

error is gone! :D

but he is now 4 minutes on connecting

This is my settings in jsconnect:

Client ID = 681600372

Secret = secret?:P

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 :P ?';

public static $forum_url = '/forum';

function __construct() {

parent::__construct();

define('JS_TIMEOUT', 24 * 60);

Greets

Michael Kraan

  • 2 years later...
Posted

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.

Posted

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 :(

Posted

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:

test_url.png

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 :P

  • Administrators
Posted

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.

Posted

[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 :P

  • 3 weeks later...
  • Administrators
Posted

Hi, can you explain to me how it's done with phpVMS because I not know too much phpVMS API ?

I have not built one as yet, you will have to work with the two API's and build a module to accomplish a single login system between phpBB and phpVMS. You can find the documentation for the phpVMS API here -> http://forum.phpvms.net/page/index.html/_/developers-guides/how-to-use-and-access-the-api-r16

  • 1 month later...
  • Administrators
Posted

Could you posibly do a bridge with phpbb3, I use phpbb?

I believe if you search there are a couple of phpbb scripts to auto register new phpvms users, by vanseers I think. I do not have any plans to build a bridge for it.

  • 1 year later...
Posted (edited)

where i can find the module for this forum??? at Github there is nothing!!!

or anyone to send me the module via PM..

<<UPDATED>>

Never mind...i found another forum for my VA!!

Edited by Iraklis
  • 1 year later...
Posted

Instructions link for this module is dead!

Can someone explain me what should be the URLs?

That is Authentication URL, Sign In URL, Registration URL

 

Thanks!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...