vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - YAFB - Yay! Another Facebook Bridge (https://vborg.vbsupport.ru/showthread.php?t=223555)

mrpaint 09-18-2009 10:00 PM

YAFB - Yay! Another Facebook Bridge
 
1 Attachment(s)
The add-on has been updated to reflect Facebook new policy starting October 1st (read more here). Basically this is a maintenance update for user of this add-on from the past. The add-on now supports vBulletin 3.8.x only. In this new version, there are only the basic features: register and login (some simple sharing too). It keeps old settings so you don't need to re-configure.

How to update (this is important):
1. Disable the add-on in AdminCP
2. Upload files in the package (make sure you disable the add-on before uploading)
3. Import the xml in the package, choose Yes to rewrite.
4. Re-enable the add-on
5. Done

Just remember to disable the add-on before uploading files and you will be okie.

A little note for attachment downloads:
- YAFB v1.4 had been downloaded 36 times before I removed it
- YAFB v1.5: 4 downloads, YAFB v1.5.1: 26 downloads, YAFB v1.6: 29 downloads, YAFB v1.7: 22 downloads, YAFB v1.8: 48 downloads
- YAFB v1.9: 150 downloads
- YAFB v2.0: 31 downloads, YAFB v2.0.1: 10 downloads, YAFB v2.0.2: 49 downloads, YAFB v2.1: 55 downloads; YAFB v2.2: 1210 downloads; YAFB v2.2.5: 661 downloads

mrpaint 09-19-2009 02:51 AM

1 Attachment(s)
Once again, here is the demo board: http://daohoangson.com/vb38/ you can come and check it out. Some must-check features:
  1. Register with Facebook (and then login with Facebook)
  2. Playing around with enabling and disabling options (yeah, it's kinda relaxing)
  3. Display profile block in profile page (member.php?u=x)
  4. Posting thread/reply and get it published to your stream
  5. Posting reply to an appropriate thread and comment auto-added to the corresponding Facebook post
  6. Rating a thread is equal to clicking the Like button! You can even share the post via news feed
  7. Receive PM and get notification in Facebook
  8. Upload avatar/profile image and fullsize image uploaded to Facebook
  9. Synchronizing Avatars. In the demo board, the cache timeout is set to 120 seconds. That value is pretty low but I think it's enough to demostrate the feature. Make sure you won't set it that low in your boards :D
  10. Uploading pictures and posting comment
There are some screenshots for you to see right below. Enjoy your stay here ;)
More screenshots are available in the post #240

RTMdotORG 09-19-2009 03:19 AM

Thanks..
First install...
I'll test now...

azxS 09-19-2009 04:13 AM

Thaaaanks! i testing now.

BBR-APBT 09-19-2009 04:32 AM

I have a couple questions before I install.

What about custom fields I require on register? Like user intro, Could have the option to add required fields under the user name block?

What if we de-install this mod, what will happen to the users that registered with this mod?

I didn't see an option for an email address?

Great work so far.

mrpaint 09-19-2009 05:32 AM

Quote:

Originally Posted by BBR-APBT (Post 1887382)
I have a couple questions before I install.

What about custom fields I require on register? Like user intro, Could have the option to add required fields under the user name block?

What if we de-install this mod, what will happen to the users that registered with this mod?

I didn't see an option for an email address?


Great work so far.

Very nice suggestion, I'm going to add required custom field into the register form. Hmm, but it will make the registration less streamline...

After uninstall/disable the product, registered accounts won't be able to login. I have several ideas for these accounts but I'm still thinking

Yes, the proxied email from facebook is used currently. But of course the forum can't send email unless member approve the email extend permission. I think I will ask for that permission after the registration, what do you think?

BBR-APBT 09-19-2009 05:43 AM

Quote:

Originally Posted by mrpaint (Post 1887392)
Very nice suggestion, I'm going to add required custom field into the register form. Hmm, but it will make the registration less streamline...

After uninstall/disable the product, registered accounts won't be able to login. I have several ideas for these accounts but I'm still thinking

Yes, the proxied email from facebook is used currently. But of course the forum can't send email unless member approve the email extend permission. I think I will ask for that permission after the registration, what do you think?

Or you could just add a box for email address like the other facebook mod.
Some of us have the email verification turned on and would cause problems.

principino1984 09-19-2009 06:58 AM

I thinkg i'm gonna use this bridge..it seems to be the best one around so far for the admincp option!

I'll try on my first forum..and then if everything's ok I'll use for my biggest one.

marco

principino1984 09-19-2009 07:34 AM

what's the link if i don't have a standard navbar?

I got database error if I try to edit the templates clickiing on .../admincp/fbb_admin.php?do=template

Code:

Database error in vBulletin 3.8.4:

Invalid SQL:

                SELECT  administrator.*,
                        userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate, user.languageid AS saved_languageid,
                        IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
                        language.phrasegroup_global AS phrasegroup_global,
                        language.phrasegroup_kbank AS phrasegroup_kbank,
                        language.phrasegroup_cpglobal AS phrasegroup_cpglobal,
                        language.options AS lang_options,
                        language.languagecode AS lang_code,
                        language.charset AS lang_charset,
                        language.locale AS lang_locale,
                        language.imagesoverride AS lang_imagesoverride,
                        language.dateoverride AS lang_dateoverride,
                        language.timeoverride AS lang_timeoverride,
                        language.registereddateoverride AS lang_registereddateoverride,
                        language.calformat1override AS lang_calformat1override,
                        language.calformat2override AS lang_calformat2override,
                        language.logdateoverride AS lang_logdateoverride,
                        language.decimalsep AS lang_decimalsep,
                        language.thousandsep AS lang_thousandsep
                       
                FROM vb_user AS user
                LEFT JOIN vb_userfield AS userfield ON (user.userid = userfield.userid)
                LEFT JOIN vb_usertextfield AS usertextfield ON (usertextfield.userid = user.userid) LEFT JOIN vb_administrator AS administrator ON (administrator.userid = user.userid) LEFT JOIN vb_language AS language ON (language.languageid = IF(user.languageid = 0, 2, user.languageid))
               
                WHERE user.userid = 1;

MySQL Error  : Unknown column 'language.phrasegroup_kbank' in 'field list'
Error Number  : 1054
Request Date  : Saturday, September 19th 2009 @ 10:30:37 AM
Error Date    : Saturday, September 19th 2009 @ 10:30:37 AM
Script        : http://www.xxxx.it/forum/admincp/fbb_admin.php?do=template
Referrer      : http://www.xxxxx.it/forum/admincp/options.php?do=options&dogroup=fbb&advanced=0
IP Address    : xxxxxxxxxxx
Username      :
Classname    : vB_Database
MySQL Version :


and... I don't get anything if I click on the admincp link for Facebook Bridge => Edit Settings.. i get an empty page. (The link is this one: http://www.xxxxxx.it/forum/admincp/o...fbbsdo=options

rugby 09-19-2009 07:41 AM

is it possible to get activities of facebook users and there friends in members profile? and also it would be good if you can implement wall comments in users profile for vbulletin site.

principino1984 09-19-2009 09:22 AM

ok...nevermind..i found the url to edit the option in the usercp...but.. what about the db error when I click on "Template Bundles Manager"??

marco

mrpaint 09-19-2009 09:43 AM

Quote:

Originally Posted by principino1984 (Post 1887412)
what's the link if i don't have a standard navbar?

I got database error if I try to edit the templates clickiing on .../admincp/fbb_admin.php?do=template

Code:

Database error in vBulletin 3.8.4:

Invalid SQL:

                SELECT  administrator.*,
                        userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate, user.languageid AS saved_languageid,
                        IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
                        language.phrasegroup_global AS phrasegroup_global,
                        language.phrasegroup_kbank AS phrasegroup_kbank,
                        language.phrasegroup_cpglobal AS phrasegroup_cpglobal,
                        language.options AS lang_options,
                        language.languagecode AS lang_code,
                        language.charset AS lang_charset,
                        language.locale AS lang_locale,
                        language.imagesoverride AS lang_imagesoverride,
                        language.dateoverride AS lang_dateoverride,
                        language.timeoverride AS lang_timeoverride,
                        language.registereddateoverride AS lang_registereddateoverride,
                        language.calformat1override AS lang_calformat1override,
                        language.calformat2override AS lang_calformat2override,
                        language.logdateoverride AS lang_logdateoverride,
                        language.decimalsep AS lang_decimalsep,
                        language.thousandsep AS lang_thousandsep
                       
                FROM vb_user AS user
                LEFT JOIN vb_userfield AS userfield ON (user.userid = userfield.userid)
                LEFT JOIN vb_usertextfield AS usertextfield ON (usertextfield.userid = user.userid) LEFT JOIN vb_administrator AS administrator ON (administrator.userid = user.userid) LEFT JOIN vb_language AS language ON (language.languageid = IF(user.languageid = 0, 2, user.languageid))
               
                WHERE user.userid = 1;

MySQL Error  : Unknown column 'language.phrasegroup_kbank' in 'field list'
Error Number  : 1054
Request Date  : Saturday, September 19th 2009 @ 10:30:37 AM
Error Date    : Saturday, September 19th 2009 @ 10:30:37 AM
Script        : http://www.xxxx.it/forum/admincp/fbb_admin.php?do=template
Referrer      : http://www.xxxxx.it/forum/admincp/options.php?do=options&dogroup=fbb&advanced=0
IP Address    : xxxxxxxxxxx
Username      :
Classname    : vB_Database
MySQL Version :


and... I don't get anything if I click on the admincp link for Facebook Bridge => Edit Settings.. i get an empty page. (The link is this one: http://www.xxxxxx.it/forum/admincp/o...fbbsdo=options

Quick Fix:

Open admincp/fbb_admin.php
Find (actually, it's line number 15)
PHP Code:

$phrasegroups = array('kbank'); 

Delete it!

Sorry for this mess :(

Mark Fortune 09-19-2009 10:38 AM

:) Statement and suggestion:

The main reason I probably wouldn't install this mod is because I use my forum as a means to cultivate membership as well as email address. The most important being the email address because I send a bi-weekly newsletter to members.

Would it be possible to offer the abilty to log in with FaceBook, but to activate their log in, they must put in a valid email address and click on an activation link in the email?

burlesque 09-19-2009 11:01 AM

Will this work on 3.8.2?

erel34 09-19-2009 11:25 AM

thanks

Veer 09-19-2009 11:30 AM

Great Job.

Tell me what will happen with the existing Facebook users that connects via other Facebook mod?
One more thing I need to know, If I delete old Facebook app and create a new one, will I lose all facebook users that connects via that app?

principino1984 09-19-2009 12:30 PM

Quote:

Originally Posted by mrpaint (Post 1887441)
Quick Fix:

Open admincp/fbb_admin.php
Find (actually, it's line number 15)
PHP Code:

$phrasegroups = array('kbank'); 

Delete it!

Sorry for this mess :(

ok..now no more db problems!

I'm testing the option for the usercp... it's damn slow to accept modify...is it cause of facebook or somthing's wrong with my installation?


bug:

it's five minutes i'm trying to modify something and i don't get anything then https://vborg.vbsupport.ru/ (in http://www.xxxx.it/forum/profile.php?do=fbb)

In the admincp the line: Facebook Bridge + Edit Settings doesn't show up anything.


Is it possible to have an email field when someone register with facebook?

marco

BBR-APBT 09-19-2009 01:08 PM

Quote:

Originally Posted by principino1984 (Post 1887476)
ok..now no more db problems!

I'm testing the option for the usercp... it's damn slow to accept modify...is it cause of facebook or somthing's wrong with my installation?


bug:

it's five minutes i'm trying to modify something and i don't get anything then http://www.passioneadueruote.it/forum/fbb/loading.gif (in http://www.xxxx.it/forum/profile.php?do=fbb)

In the admincp the line: Facebook Bridge + Edit Settings doesn't show up anything.


Is it possible to have an email field when someone register with facebook?

marco

Looks like a javascript error.

principino1984 09-19-2009 01:15 PM

Quote:

Originally Posted by BBR-APBT (Post 1887486)
Looks like a javascript error.

yup..but I don't know if something wrong with my installation since I'm tryin this mod on the default vb 3.8 style

Marco

principino1984 09-19-2009 01:37 PM

one more bug...

when you deactivate temaplates from admincp it turns out this windows "Could not find phrase 'fbb_template_deleted'." but it does deactivate the template...i think it's only a missing phrase on the language.

Marco

mrpaint 09-19-2009 02:36 PM

Well, released the YAFB 1.5. Please check it out

About slow page-load when "edit" templates, I think Facebook servers are a little slow these days and that why your page loaded slowly. Please be patient, if it works, it will work (err... did I make any sense saying that?)

About the javascript error. It's so weird, please send me your forum link via PM and I will come and check the bug down. Thank you

mrpaint 09-19-2009 02:38 PM

Quote:

Originally Posted by Veer (Post 1887460)
Great Job.

Tell me what will happen with the existing Facebook users that connects via other Facebook mod?
One more thing I need to know, If I delete old Facebook app and create a new one, will I lose all facebook users that connects via that app?

You don't need to create new Facebook Application. Just use the old one to keep all connection...
I'm planning to use the reclaming feature from Facebook to help recover password for user how deactivated their accounts. This thing will need a deep look to get it run smoothly

principino1984 09-19-2009 02:46 PM

Quote:

Originally Posted by mrpaint (Post 1887542)
Well, released the YAFB 1.5. Please check it out

About slow page-load when "edit" templates, I think Facebook servers are a little slow these days and that why your page loaded slowly. Please be patient, if it works, it will work (err... did I make any sense saying that?)

About the javascript error. It's so weird, please send me your forum link via PM and I will come and check the bug down. Thank you

you got pm ;)

Marco

Xencored 09-19-2009 02:56 PM

Works great soo much easyer than the other one thanks
Nominated and 5 stars!

BBR-APBT 09-19-2009 03:31 PM

One last suggestion.
What about those of us that have custom templates? Could you post the manual template edits in the install instructions in case we would need them.

I am about to run the test install in a two hours.

mrpaint 09-19-2009 03:45 PM

Quote:

Originally Posted by BBR-APBT (Post 1887584)
One last suggestion.
What about those of us that have custom templates? Could you post the manual template edits in the install instructions in case we would need them.


I am about to run the test install in a two hours.

There is no manual template edit as long as your style templates use default template_hook positions from vBulletin (and they should). If you have problem in page displaying, just post it here

principino1984 09-19-2009 03:46 PM

do you think you can make some kind of popup that let you choose what to publish and what not to publish? cause sometime there are some thread that my users don wanna share in fb.

Or just the "Staff" things...

Marco

ps. it would be awesome to have some king of check to select to let the post go to fb or not.

BBR-APBT 09-19-2009 03:56 PM

Quote:

Originally Posted by principino1984 (Post 1887586)
do you think you can make some kind of popup that let you choose what to publish and what not to publish? cause sometime there are some thread that my users don wanna share in fb.

Or just the "Staff" things...

Marco

ps. it would be awesome to have some king of check to select to let the post go to fb or not.

A check box would be nice.

BBR-APBT 09-19-2009 03:58 PM

Quote:

Originally Posted by mrpaint (Post 1887585)
There is no manual template edit as long as your style templates use default template_hook positions from vBulletin (and they should). If you have problem in page displaying, just post it here

I have no facebook connect link on my site. It shows up in usercp but thats it. I use a custom navbar template and a custom registration page. So I need the custom edits for those two templates.

Thanks for all your work its much appreciated.

principino1984 09-19-2009 04:55 PM

yup...if you can do it there will be no other facebook bridge other then yours!!!

One more question, do we need to translate the language phrase to have the notification in our language or what? Cause I have only three templates in the options (the first for the test, one to invite guys and another one i don't remember what for) but I don't have i.e. the notification for new private message and so on.

Marco

mrpaint 09-20-2009 02:18 AM

Quote:

Originally Posted by BBR-APBT (Post 1887592)
I have no facebook connect link on my site. It shows up in usercp but thats it. I use a custom navbar template and a custom registration page. So I need the custom edits for those two templates.

Thanks for all your work its much appreciated.

Well, for the navbar link, please add this line of code into your navbar or header template (to find out which one should be altered, you need to look for other navbar links, if you're not sure about it you can send me your templates via email)

PHP Code:

$template_hook[navbar_buttons_right

With the registration page. It is completely rewritten and it can work independently

Good luck

Quote:

Originally Posted by principino1984 (Post 1887620)
yup...if you can do it there will be no other facebook bridge other then yours!!!

One more question, do we need to translate the language phrase to have the notification in our language or what? Cause I have only three templates in the options (the first for the test, one to invite guys and another one i don't remember what for) but I don't have i.e. the notification for new private message and so on.

Marco

I will think about the checkbox. It's a great idea I think.
About the notifications, they don't use template. FYI, the template bundle model is the old method. Facebook introduced the new stream and for most of the time, the product will try to publish with new API functions which don't use template bundles... Back to the notifications, you will need to search for the phrase in vBulletin and translate them. Yay! You are done

PS: I think I will added the checkboxes right now :cool:

BBR-APBT 09-20-2009 02:56 AM

That worked, I will just build from there for my register page.
I can get the template from there now that I got something to show up. I am going to change that with the other facebook button looks cleaner. Thanks a lot.

As for the check box for each post even though they allowed it to be posted would be great so they still have to check the box if they want it to show on their wall and what not would be a great addon.

Thanks for taking all the suggestions and implementing them so fast.

motowebmaster 09-20-2009 03:49 AM

Would it be possible to relocate the navbar link connect code?

BBR-APBT 09-20-2009 03:54 AM

Quote:

Originally Posted by motowebmaster (Post 1887861)
Would it be possible to relocate the navbar link connect code?

You just have to get the code from your templates and put it where ever you want.

BBR-APBT 09-20-2009 04:45 AM

Quote:

After uninstall/disable the product, registered accounts won't be able to login. I have several ideas for these accounts but I'm still thinking
When I disable it the users are still able to login long as they set email and password. So if I uninstall it will they be removed? If so will that cause errors on member numbers?

Bug Report:
This bypasses auth email. Members are sent directly to registered users.

When you log out the site you log out facebook too.

I have a forced intro thread on register. Most of it works just fine. It post the message but the user of the post is "test2 - test2" when it should just be "test2"

Also for some reason on index.php the link that it shows to the intro thread shows a link like this http://www.domain.com/forums/showthread.php?p=0#post0
it should be http://www.domain.com/forums/showthr...p?t=2842#post0

Both these errors are only in the last post section on index.

mrpaint 09-20-2009 05:18 AM

Quote:

Originally Posted by BBR-APBT (Post 1887874)
When I disable it the users are still able to login long as they set email and password. So if I uninstall it will they be removed? If so will that cause errors on member numbers?

Bug Report:
This bypasses auth email. Members are sent directly to registered users.

When you log out the site you log out facebook too.

I have a forced intro thread on register. Most of it works just fine. It post the message but the user of the post is "test2 - test2" when it should just be "test2"

Also for some reason on index.php the link that it shows to the intro thread shows a link like this http://www.domain.com/forums/showthread.php?p=0#post0
it should be http://www.domain.com/forums/showthr...p?t=2842#post0

Both these errors are only in the last post section on index.

The idea of Facebook Connect is the user already done human verification and has a valid email address so it's not necessary to require email validation. And it's impossible also because we need the sending email permission in order to send email but if user can't log in, they won't be able to grant that email permission

When you log out of vBulletin, it's a required to log out of Facebook also to prevent a loop of logging in and logging out

Well, I use some hooks in the standard registration process to support other mods/hacks/products but sometimes, the other mod get conflicted with the Facebook registration. So, if you give me the name of the Introducing Thread, I will check it out and prevent future conficts

PS: FYI, the checkboxes are done :>

principino1984 09-20-2009 06:47 AM

come on man.. please share the "checkbox" version!!!! :D

marco

mrpaint 09-20-2009 07:42 AM

Quote:

Originally Posted by principino1984 (Post 1887902)
come on man.. please share the "checkbox" version!!!! :D

marco

I'm waiting for BBR-APBT to get the confict fixed

principino1984 09-20-2009 07:53 AM

Quote:

Originally Posted by mrpaint (Post 1887915)
I'm waiting for BBR-APBT to get the confict fixed

nice!!!! did you get my pm?

Marco

mrpaint 09-20-2009 10:17 AM

Well, 1.6 is out there with the checkboxes displayed in quick reply form, full reply form, full new thread form to allow member who enabled those specified actions to temporary disable for the upcoming post. Wow, I forgot to mention, the checkboxes are applied in sending private message also ;)

Won't send any update email this time. Hope you guys can get it all. I think 3 releases are enough for this weekend. Cya later!


All times are GMT. The time now is 06:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02045 seconds
  • Memory Usage 1,897KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete