Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Facebook Connect - Update for Facebook PHP SDK (v.3.0.0) Details »»
Facebook Connect - Update for Facebook PHP SDK (v.3.0.0)
Version: 3.0.5, by mtbikemike mtbikemike is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.8.7 Rating:
Released: 09-12-2011 Last Update: 09-29-2011 Installs: 56
DB Changes Uses Plugins Template Edits
Re-useable Code Additional Files Translations Is in Beta Stage  
No support by the author.

I rewrote this plugin using ideas from sllik's mod.

Not Supported!!
This code is not supported. The Facebook API has since changed. Only provided for open source purposes ... feel free to modify at your own risk.

Download Now

File Type: zip fbconnect-3.0.4.zip (35.4 KB, 212 views)
File Type: zip fbconnect-3.0.5.zip (35.6 KB, 954 views)

Screenshots

File Type: jpg indexpage-logged-in.JPG (30.4 KB, 0 views)
File Type: jpg newpost.JPG (36.0 KB, 0 views)
File Type: jpg indexpage.JPG (50.8 KB, 0 views)
File Type: jpg connectpage.JPG (99.9 KB, 0 views)
File Type: jpg FBConnectClickFlow.jpg (46.7 KB, 0 views)
File Type: jpg FBConnectSession.jpg (44.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
JohorBahru, Taringa! CS, Vibhor

Comments
  #42  
Old 09-20-2011, 12:45 PM
mtbikemike mtbikemike is offline
 
Join Date: Nov 2010
Location: Park City, Utah, United S
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Taringa! CS View Post
I've got a problem with the register button.

The facebook popup only works on register.php or login.php... not on forumhome

Any ideas?
Do you have FB like buttons on the forumhome? Having the facebook javascript included twice on a page will break the connect button. Pull out any references to ...

Code:
<script src="//connect.facebook.net/en_US/all.js"></script>
and let the FB Connect plugin handle adding the javascript which, as an added bonus, will load asynchronously and parse any FBML you might have.
Reply With Quote
  #43  
Old 09-20-2011, 12:51 PM
mtbikemike mtbikemike is offline
 
Join Date: Nov 2010
Location: Park City, Utah, United S
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Artes_Marciales View Post
VB.
I fear that my users via facebook stay one day without access to the forum.
I think it should include more data as a normal recording not just a nick name.
Once a user is connected via facebook, they will have access to their User CP where they can change their password and other info. But they will be able to come back in a few days/weeks/months, click on FB connect and it will log them in without them having to remember a VB password.

Copying over a user's avatar, location, age, sex, etc. is definitely doable, just didn't have to time to do it. I wanted to release this first to see how widely accepted it was.
Reply With Quote
  #44  
Old 09-20-2011, 12:56 PM
mtbikemike mtbikemike is offline
 
Join Date: Nov 2010
Location: Park City, Utah, United S
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hellmaster View Post
Not working on 3.8.4 :-(
What version of php are you running? 3.0.1 has a fix for php versions < 5.3.
Reply With Quote
  #45  
Old 09-20-2011, 02:44 PM
klaush klaush is offline
 
Join Date: Oct 2005
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We get a XML-error when installing the product:

Processing Instruction not finished in Line 248
Reply With Quote
  #46  
Old 09-20-2011, 02:46 PM
klaush klaush is offline
 
Join Date: Oct 2005
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, forget it; my fault!
Reply With Quote
  #47  
Old 09-20-2011, 03:18 PM
Artes_Marciales Artes_Marciales is offline
 
Join Date: Jun 2007
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mtbikemike View Post
Once a user is connected via facebook, they will have access to their User CP where they can change their password and other info. But they will be able to come back in a few days/weeks/months, click on FB connect and it will log them in without them having to remember a VB password.

Copying over a user's avatar, location, age, sex, etc. is definitely doable, just didn't have to time to do it. I wanted to release this first to see how widely accepted it was.
OK, thanks

Please... someone who has installed it can put your URL to see how it looks?
Thanks!
Reply With Quote
  #48  
Old 09-20-2011, 05:51 PM
Taringa! CS's Avatar
Taringa! CS Taringa! CS is offline
 
Join Date: May 2009
Location: Argentina
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mtbikemike View Post
Do you have FB like buttons on the forumhome? Having the facebook javascript included twice on a page will break the connect button. Pull out any references to ...

Code:
<script src="//connect.facebook.net/en_US/all.js"></script>
and let the FB Connect plugin handle adding the javascript which, as an added bonus, will load asynchronously and parse any FBML you might have.
I've got this

<script type="text/javascript" src="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_GB"></script><script type="text/javascript">FB.init("b429ea3362ecedaaacae88363d481 500");</script><fb:fan profile_id="76722401590" stream="" connections="10" width="300"></fb:fan>

maybe better to use an iframe to add it, right?
Reply With Quote
  #49  
Old 09-20-2011, 06:27 PM
Taringa! CS's Avatar
Taringa! CS Taringa! CS is offline
 
Join Date: May 2009
Location: Argentina
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got it working fine!

Is it possible to eliminate the user avatar with the facebook icon on navbar?
Reply With Quote
  #50  
Old 09-20-2011, 06:49 PM
mtbikemike mtbikemike is offline
 
Join Date: Nov 2010
Location: Park City, Utah, United S
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Taringa! CS View Post
I've got this

<script type="text/javascript" src="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_GB"></script><script type="text/javascript">FB.init("b429ea3362ecedaaacae88363d481 500");</script><fb:fan profile_id="76722401590" stream="" connections="10" width="300"></fb:fan>

maybe better to use an iframe to add it, right?

No, not really. The FeatureLoader.js is depreciated and is going away in a month or two.

just change this ...
Code:
<script type="text/javascript" src="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_GB"></script>
<script type="text/javascript">FB.init("b429ea3362ecedaaacae88363d481500");</script>
<fb:fan profile_id="76722401590" stream="" connections="10" width="300"></fb:fan>
to this ...
Code:
<fb:fan profile_id="76722401590" stream="" connections="10" width="300"></fb:fan>

and if FB Connect is installed correctly it'll work golden.
Reply With Quote
  #51  
Old 09-20-2011, 06:56 PM
mtbikemike mtbikemike is offline
 
Join Date: Nov 2010
Location: Park City, Utah, United S
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Taringa! CS View Post
I've got it working fine!

Is it possible to eliminate the user avatar with the facebook icon on navbar?
Yeah, just go into the fbconnect_button template and comment out/delete the image reference.


change this ...
Code:
<if condition="$vbulletin->userinfo['fbuid'] > 0">
	<if condition="$show['member']">
		<td class="alt2" nowrap="nowrap" align="center" style="width:51px;padding:0px">
			<div style="position: relative; padding:0px;">
				<a target="_new" href="http://www.facebook.com/profile.php?id={$vbulletin->userinfo['fbuid']}">
					<img width="40" height="40" alt="Logged in with Facebook" src="https://graph.facebook.com/{$vbulletin->userinfo['fbuid']}/picture" title="Logged in with Facebook">
			 		<img style="width: 15px; height: 15px; position: absolute; left: 2px; top: -3px; z-index: 2;" alt="Logged in with Facebook" src="images/facebook/fblogo.png" title="Logged in with Facebook" />
				</a>
			</div>
		</td>
	<else />
		<td class="alt2" nowrap="nowrap" align="center" style="width:58px;padding:0px">
			<a href="#" onclick="javascript:fblogin(); return false;">
				<img src="images/facebook/fbconnect.png" border="0" />
			</a>
		</td>
	</if>
<else />
	<td class="alt2" nowrap="nowrap" align="center" style="width:58px;padding:0px">
		<a href="#" onclick="javascript:fblogin(); return false;">
			<img src="images/facebook/fbconnect.png" border="0" />
		</a>
	</td>
</if>

to this ...
Code:
<if condition="$vbulletin->userinfo['fbuid'] > 0">
	<if condition="!$show['member']">
		<td class="alt2" nowrap="nowrap" align="center" style="width:58px;padding:0px">
			<a href="#" onclick="javascript:fblogin(); return false;">
				<img src="images/facebook/fbconnect.png" border="0" />
			</a>
		</td>
	</if>
<else />
	<td class="alt2" nowrap="nowrap" align="center" style="width:58px;padding:0px">
		<a href="#" onclick="javascript:fblogin(); return false;">
			<img src="images/facebook/fbconnect.png" border="0" />
		</a>
	</td>
</if>
Reply With Quote
Reply


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


All times are GMT. The time now is 01:38 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05622 seconds
  • Memory Usage 2,366KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete