Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Closed Thread
 
Thread Tools Display Modes
Share |
  #1  
Old 02-12-2014, 08:59 AM
dodlhuat dodlhuat is offline
Junior Member
 
Join Date: 02-05-14
Posts: 17
iTrader: 0 / 0%
Google+ Login

Hey. I tried to add a Google+ Login to one of my sites, but it won't work. Button click is just not doing anything.
Has anyone of you done this before and can give me a hint on what to do?
 

Advertisement

Advertisement

  #2  
Old 02-12-2014, 04:43 PM
snakeair snakeair is offline
Super Moderator - Rest in Peace 2018
 
Join Date: 12-31-07
Location: Medford, NJ
Posts: 54,771
iTrader: 3 / 100%
What CMS is your website running? You need to provide more details.
 
  #3  
Old 02-13-2014, 12:10 AM
dodlhuat dodlhuat is offline
Junior Member
 
Join Date: 02-05-14
Posts: 17
iTrader: 0 / 0%
I've tried to accomplish it on a single html page just for testing purpose. Here's the code:
Code:
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <body> <span id="signinButton"> <span class="g-signin" data-callback="signinCallback" data-clientid="MY-CLIENT-ID" data-cookiepolicy="single_host_origin" data-requestvisibleactions="link-to-schemas" data-scope="link-to-google-apis"> </span> </span> <!-- Place this asynchronous JavaScript just before your </body> tag --> <script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'link-to-plusone-js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); function signinCallback(authResult) { if (authResult['status']['signed_in']) { // Update the app to reflect a signed in user // Hide the sign-in button now that the user is authorized, for example: document.getElementById('signinButton').setAttribute('style', 'display: none'); } else { // Update the app to reflect a signed out user // Possible error values: // "user_signed_out" - User is signed-out // "access_denied" - User denied access to your app // "immediate_failed" - Could not automatically log in the user console.log('Sign-in state: ' + authResult['error']); } } </script> </body> </html>
I filled in my ID instead of MY-CLIENT-ID. And I thought I've done it just like in the tutorial from Google, but the Button isn't clickable. Any advice?

EDIT: And as I am not allowed to post links, you cannot copy and test the code but take a look at the original: developers [dot] google [dot] com/+/web/signin/add-button
 
  #4  
Old 02-13-2014, 02:32 AM
sumoncpi sumoncpi is offline
Banned
 
Join Date: 03-01-13
Location: Bangladesh
Posts: 56
iTrader: 0 / 0%
I am using wordpress for my website is my decision is right .
 
  #5  
Old 02-13-2014, 04:55 AM
snakeair snakeair is offline
Super Moderator - Rest in Peace 2018
 
Join Date: 12-31-07
Location: Medford, NJ
Posts: 54,771
iTrader: 3 / 100%
Quote:
Originally Posted by sumoncpi View Post
I am using wordpress for my website is my decision is right .
Have you just tried a plugin?

https://wordpress.org/plugins/de-social-login/
 
  #6  
Old 02-13-2014, 05:18 PM
JPC-Sabrina JPC-Sabrina is offline
Contributing Member
 
Join Date: 01-31-12
Location: Southwest Mountains
Posts: 96
iTrader: 0 / 0%
Yes, you should be fine with WordPress. Just grab the plugin for the Google +1. WordPress has a plugin for most everything. Take a little time exploring them and grab a security plugin as long as you are there.
 
  #7  
Old 08-18-2014, 02:49 AM
melissawetzel melissawetzel is offline
Contributing Member
 
Join Date: 08-08-14
Posts: 51
iTrader: 0 / 0%
I think you need to add API of the Google+ in your site!
 
Go Back   Webmaster Forum > Web Development > Coding Forum

Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to implement login with google function is site? capulkit Social Network Marketing 4 09-02-2013 12:52 AM
Google Checkout + Registration/Login for Repeat Customers? RawAthletics Online Business Forum 1 06-07-2012 08:16 PM
Login with multiple Google accounts PromoDirect Google Forum 2 10-13-2011 04:44 PM
Any fast way to login Google, Yahoo or MSN? msmary Tech Talk 15 06-07-2010 12:47 AM
Question on google serps; WP login pages think_tom SEO Forum 5 02-06-2009 12:02 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 07:46 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC