Jump to content

LinkedIn Login Method


Lavo

Recommended Posts

%7Boption%7D



File Name: LinkedIn Login Method

File Submitter: Lavo

File Submitted: 22 Nov 2012

File Category: Integration

Supported Versions: IP.Board 3.3.x, IP.Board 3.4.x



With this addon users will be able to sign in with their LinkedIn accounts!

Current Features:

  • New accounts signup seamlessly with LinkedIn.
  • Existing accounts can link their LinkedIn account to their accounts.
  • LinkedIn profile photos are imported to users avatars, new users are imported automatically.
  • Existing users can Import/Update their photo from LinkedIn.

Any suggestions to improve this plugin? Post them in the support topic!



I will be starting work on improving this application to make it a more deeply integrated app with IP.Board soon, thanks to those of you who donated!

Want to speed up that process? Donate! I've reached the $65 target and will be starting development on the next version shortly, so now would be a good idea to post in the topic or PM me your ideas/feature requests!



here to download this file

Link to comment
Share on other sites

Bought. Good stuff.

You asked for ideas for the next upgrade so here are some:

1. An update stream in Sidebar.

2. The ability to post updates to Linkedin from within the board. I tried that, isn't doing it as such I don't think.

3. If we can feed some profile information from someone's LinkedIn acct into the board profile, top onions.

4. If you have an in-post profile field for LinkedIn which we have, User A links his LinkedIn acct with his board acct, and user B clicks on that, instead of taking User B outside of the board a pop-up window showing User A's LinkedIn profile information shows, that would be ace.

5. An update entry field in Sidebar. This would be a seperate hook no doubt. I want to bring LinkedIn INTO the board as much as possible. A good method for this would be to have some sort of sidebar hook with an update entry field with three check boxes underneath; one for Twitter, one for Google+, one for LinkedIn. The user checks the boxes they want to send the update to.

It would be good if a user can send updates, links and information to all his / her social sites from our boards.

Link to comment
Share on other sites

What is the CSS code to use the Use Linked IN button in other locations ?

This should be the code your looking for :)

<a href='{$base_url}app=core&amp;module=global&amp;section=login&amp;do=process&amp;use_linkedin=1&amp;auth_key={$hash}' class='ipsButton_secondary fixed_width'><img src='{$board_url}/public/style_extra/signin/login-linkedin-icon.png' alt='linkedin' /> &nbsp; {$this->lang->words['sign_in_linkedin']}</a>

You will also need to define these somewhere and pass them through to the code.

$this->lang = $this->registry->getClass('class_localization');
ipsRegistry::getClass('class_localization')->loadLanguageFile( array( 'public_linkedin_integration' ), 'core' );

$base_url = ipsRegistry::$settings['base_url'];
$board_url = ipsRegistry::$settings['board_url'];
$hash = ipsRegistry::instance()->member()->form_hash;
Link to comment
Share on other sites

I get this error when I try to Sign into the site

Parse error: syntax error, unexpected T_FUNCTION in /home/content/03/4850003/html/ips_kernel/linkedin/linkedin.php on line 244

Even When I try logging into admin section I see this error ...so cant even disable at this stage !

Sending you a PM.

Link to comment
Share on other sites

  • 2 weeks later...

So I just purchased, followed install instructions (3.4) but when testing it, I click the button from my login page and receive the following error:

Assuming your LinkedIn account uses the same email as your forum account that will happen if your accounts aren't linked through the UserCP in the Manage LinkedIn area. It's a security precaution I took when building this to make sure someone couldn't just register a linkedin account with your accounts email and sign into it. The owner must link the accounts manually to verify it is them that are linking the accounts.

If it's not that do you want to check the login method is enabled in the AdminCP

Link to comment
Share on other sites

Okay so it now works. But I guess my question is - A new member visiting the site can't sign into my site using the LinkedIn login option?

A new member can sign into your site with LinkedIn and it will use their LinkedIn email for the accounts email, since there isn't nothing to takeover. It only affects existing accounts on your board.

Link to comment
Share on other sites

This should be the code your looking for :smile:

<a href='{$base_url}app=core&amp;module=global&amp;section=login&amp;do=process&amp;use_linkedin=1&amp;auth_key={$hash}' class='ipsButton_secondary fixed_width'><img src='{$board_url}/public/style_extra/signin/login-linkedin-icon.png' alt='linkedin' /> &nbsp; {$this->lang->words['sign_in_linkedin']}</a>

You will also need to define these somewhere and pass them through to the code.

$this->lang = $this->registry->getClass('class_localization');
ipsRegistry::getClass('class_localization')->loadLanguageFile( array( 'public_linkedin_integration' ), 'core' );

$base_url = ipsRegistry::$settings['base_url'];
$board_url = ipsRegistry::$settings['board_url'];
$hash = ipsRegistry::instance()->member()->form_hash;

I tried adding the first piece of code directly into my skin but assume it's not working when clicked, because I didn't insert the second piece of code anywhere. But I'm not sure what you mean by defining these somewhere. Can you explain a bit more? Thanks

Link to comment
Share on other sites

I tried adding the first piece of code directly into my skin but assume it's not working when clicked, because I didn't insert the second piece of code anywhere. But I'm not sure what you mean by defining these somewhere. Can you explain a bit more? Thanks

Try this one

<a href='{$this->settings['base_url']}app=core&amp;module=global&amp;section=login&amp;do=process&amp;use_linkedin=1&amp;auth_key={$this->member->form_hash}' class='ipsButton_secondary fixed_width'><img src='{$this->settings['board_url']}/public/style_extra/signin/login-linkedin-icon.png' alt='linkedin' /> &nbsp; {$this->lang->words['sign_in_linkedin']}</a>
Link to comment
Share on other sites

We're really considering buying and donating, especially regarding this:

3. If we can feed some profile information from someone's LinkedIn acct into the board profile, top onions.

I'm not sure if the LinkedIn API supports this, but we would like to ask the user for access to their LinkedIn profile regarding certain data (like the field they're working in or diplomas / certificates they have recently obtained. This should be dynamic, ie when a new diploma has been obtained we should be able to be able to use that info right away, not only when a user logs in using LinkedIn again. Perhaps that will require a statistics page on LinkedIn, instead of storing info in the IPB database. But then again, I'm not even sure if that's possible at all.
Link to comment
Share on other sites

  • 2 weeks later...

cheers for wicked login method, but since installing when i try log in via twitter it sends me a error

Fatal error: Cannot redeclare class OAuthException in /********/********/board/ips_kernel/linkedin/oauth.php on line 33

i can log in via the other methods i use (Site default, Facebook, LinkedIn, Google) but not twitter, when i disable LinkedIn the problem disappears all together and i can log in via twitter.

Is there something i'm doing wrong?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...