OT question, but ...

2 views
Skip to first unread message

Gary

unread,
Nov 15, 2009, 6:03:35 PM11/15/09
to PhillyMediaMakers
I think a few people here are into blogs/programming

Anyone know how to fully integrate Google Friend Connect with
Wordpress?

[quote]Before you start

If you allow only Google Friend Connect users to login WordPress then:
1) Remove all logout links or replace them with the following one:

<a href="#" onClick="google.friendconnect.requestSignOut()"><?php _e
('Sign out'); ?></a>

2) Remove all links to user profile. In case Google Friend Connect
user will change his password plugin won't log him in after that.

If you allow both WordPress and Google Friend Connect users to login
WordPress then your code should distinguish user type and generate
logout and profile links appropriately.
Here is an example:

<?php
_e('Logged in as ');
// Do not add link to profile and logout link in case of GFC user
global $gfc_userdata;
if ( ! isset($gfc_userdata) ) {
echo '<a href="' . get_option('siteurl') . '/wp-admin/profile.php">' .
$user_identity . '</a>. ';
echo '<a href="' . wp_logout_url(get_permalink()) . '" title="' . __
('Log out of this account') . '">' . __('Logout ') . '»</a>';
} else {
echo $user_identity . '. ';
echo '<a href="#" onClick="google.friendconnect.requestSignOut()"
title="' . __('Log out of this account') . '">' . __('Logout ') . '»</
a>';
}
?> [/quote]

These are the instructions I got for the GFC plugin but no clue where
to post this stuff at. I have the widget added, but for comments, it
still asks for name/email when you log in, so is there a way to log in
w/ GFC and have that recognized by Videoflick WP for comments and
display your GFC id?

Anyone done this before?
Reply all
Reply to author
Forward
0 new messages