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 10-29-2009 08:27 AM

Quote:

Originally Posted by OrangeStu (Post 1907581)
Under the login box I have the https://vborg.vbsupport.ru/ that won't go away.

Also it has overwritten my login button - starkvilleforums.com

Please help :)

Edit: Swapped to another bridge until fixed, but really want to use this Yay! bridge :)

Hi,

Sound like a javascript confict that prevent the script from loading. It's best if you can turn YAFB on, take screenshot of everything (your forum home page, the Error Console of Firefox, yes, I suggest you to use Firefox, at least this time,etc). And then send me via email daohoangson[at]gmail.com. I will see if I can do anything :D

Quote:

Originally Posted by gufgar (Post 1907621)
I am currently using fb connect user and I like how I can set it up so the only thing fb connect does is user login and 1 news feed when the user is registering to my site.

I don't want my user to post some stuff on my forum and automatically publish it on their facebook wall. Basically I want YAFB to only handle the login process. Is that possible with yafb? I've been reading the last 30 pages of the discussion but I can't really get the answer.


Any known migrating issue problem from fb connect to yafb?
After the migration, the user won't notice a thing right?

Thanks!

Quote:

Originally Posted by gufgar (Post 1907687)
Okay I just installed the plugin into my forum.
The biggest drawback is having a facebook link on the contact info of the profile page.
How do I remove that?

Also what happen if a user register through facebook and then click the option to disconnect from facebook and then log out from the forum?
It seems that the user won't be able to login again.

I also want to know the code for the "Connect with Facebook" button.
I'd like to put it somewhere else.

Thanks for the plugin mrpaint

Hi gufgar,

To remove the link in the contact info section, please go to AdminCP > Facebook Bridge > Edit Settings. Find and uncheck the box called "IM icon in ContactInfo"

In the case you described, yes, that use won't be able to login unless they contact the Administrator. I have no idea with those users. They decided to disconnect, hmm.. what can we do? Delete that account automatically? Do you have any ideas?

I'm not sure of your purpose using the "Connect with Facebook" button but you can take a look at the templates named "fbb_register" and "fbb_navbar_button".

Please note: if you decide to use FBML (some kind of special mark up from Facebook), you will have to add a plugin in place because I tried to skip the Facebook Javascript library as much as possible to improve users' experiences. So... it's a high chance that your FBML won't work. Okie, if you get confused, send me a PM. I will answer and help you if I can

sailnet 10-29-2009 07:27 PM

has anyone else had problems with this mod not doing anything at all?

I followed the directions perfectly and nothing happens. My Control Panel does not show any of the Facebook options.

ps: I read in the instructions that some other mods may interfere with this, so I disabled all of the other mods and this mod still does not work for me.

like I said - anyone else have the problem of this not working at all?

mrpaint 10-30-2009 12:31 AM

Quote:

Originally Posted by sailnet (Post 1907979)
has anyone else had problems with this mod not doing anything at all?

I followed the directions perfectly and nothing happens. My Control Panel does not show any of the Facebook options.

ps: I read in the instructions that some other mods may interfere with this, so I disabled all of the other mods and this mod still does not work for me.

like I said - anyone else have the problem of this not working at all?

If no link displayed in your UserCP, please check the Settings page in your AdminCP to see if the templates are populated. It's the easiest way to determine if things are going on the right way or not :D

gufgar 10-30-2009 03:12 AM

Quote:

Originally Posted by mrpaint (Post 1907729)
Hi,
Hi gufgar,

To remove the link in the contact info section, please go to AdminCP > Facebook Bridge > Edit Settings. Find and uncheck the box called "IM icon in ContactInfo"

In the case you described, yes, that use won't be able to login unless they contact the Administrator. I have no idea with those users. They decided to disconnect, hmm.. what can we do? Delete that account automatically? Do you have any ideas?

I'm not sure of your purpose using the "Connect with Facebook" button but you can take a look at the templates named "fbb_register" and "fbb_navbar_button".

Please note: if you decide to use FBML (some kind of special mark up from Facebook), you will have to add a plugin in place because I tried to skip the Facebook Javascript library as much as possible to improve users' experiences. So... it's a high chance that your FBML won't work. Okie, if you get confused, send me a PM. I will answer and help you if I can

Mrpaint, I unchecked the show im icon thing, and it eliminates the facebook icon. But if you go to the member profile page, the homepage is pointing to their facebook account. Can we remove that?

Also I would think it would be best to just delete "disconnect link". If there's a link, everyone will try it.
I have one more request, can you change the indicator from "sleeping" and "working" to "off" and "on". It's easier for the user.

kether1 10-30-2009 02:54 PM

IT works in firefox for me, but not in IE. Cannot see the 'connect to facebook' button on the Facebook Bridge>>options page. All other functions seem to work. ?? confused.

Thanks
K

mrpaint 10-31-2009 06:07 AM

Quote:

Originally Posted by gufgar (Post 1908169)
Mrpaint, I unchecked the show im icon thing, and it eliminates the facebook icon. But if you go to the member profile page, the homepage is pointing to their facebook account. Can we remove that?

Also I would think it would be best to just delete "disconnect link". If there's a link, everyone will try it.
I have one more request, can you change the indicator from "sleeping" and "working" to "off" and "on". It's easier for the user.

The homepage is fetched at the registration. People who don't want that homepage can change it in their profile. FYI, homepage is vBulletin default profile field

You can remove the link by an easy to done template edit but I don't think it's a good idea. Members should always be able to know how to manage their connections, I think

You can change the text to whatever you want by using the Phrase tool in your AdminCP.

Regards, :D

Quote:

Originally Posted by kether1 (Post 1908333)
IT works in firefox for me, but not in IE. Cannot see the 'connect to facebook' button on the Facebook Bridge>>options page. All other functions seem to work. ?? confused.

Thanks
K

Which version of IE are you using? The javascript scope is written as simple as possible to work on almost every browsers. I myself tested with Firefox, IE, Chrome, Safari, Opera,.v.v. But if older version of IE (IE6?), maybe the script won't work... Tell me your version so I will try to find an instance of that IE to test (and fix)

Regards :D

sharemee 10-31-2009 12:20 PM

hello, please can someone tell me where the code for the "connect with facebook" button code is as i need to change the background colour to match my navbar

Thanks in advance

Andy

mrpaint 10-31-2009 12:51 PM

Quote:

Originally Posted by sharemee (Post 1908665)
hello, please can someone tell me where the code for the "connect with facebook" button code is as i need to change the background colour to match my navbar

Thanks in advance

Andy

It's in the template named "fbb_navbar_button".

sharemee 10-31-2009 01:08 PM

thanks mate your a star

mrpaint 10-31-2009 01:09 PM

Quote:

Originally Posted by sharemee (Post 1908675)
thanks mate your a star

You are welcome :D
Hope your members like it

Calash 11-01-2009 06:48 PM

Quote:

Originally Posted by minman40324 (Post 1905656)
Ok now i get this error after i run it.
fbb_log Check Error: Incorrect information in file: './mydatabase/fbb_log.frm'
fbb_log Check Error: Corrupt

I am now getting this error as well. REPAIR does nothing to help it. phpMyAdmin is also showing the error...nothing is correcting it.

filt 11-01-2009 09:29 PM

I tried this on my Swedish board... i get some errors in the facebook feed with the swedish swedish characters...

Quote:

IJ det n姯n annan 䮠jag som 嫥r ner med Turkish Airlines fr宠Stockholm till Mumbai den 16 november?
It should be:

Quote:

?r det n?gon annan ?n jag som ?ker ner med Turkish Airlines fr?n Stockholm till Mumbai den 16 november?
My board runs on charset ISO-8859-1

Also, i cant seem to find all the templates.. id love to help you translate the application to Swedish...

mrpaint 11-02-2009 02:31 AM

Quote:

Originally Posted by Calash (Post 1909095)
I am now getting this error as well. REPAIR does nothing to help it. phpMyAdmin is also showing the error...nothing is correcting it.

You got PM :D

Quote:

Originally Posted by filt (Post 1909140)
I tried this on my Swedish board... i get some errors in the facebook feed with the swedish swedish characters...



It should be:



My board runs on charset ISO-8859-1

Also, i cant seem to find all the templates.. id love to help you translate the application to Swedish...

Hi,

I'm experimenting character encoding from diffrent charset to UTF-8 (which works best with Facebook) and I will update to you soon.
About the templates and phrases, as I remember now, everything text is phrases, you can do a search in your Phrase Manager (in AdminCP). Thank you :D

filt 11-02-2009 07:09 AM

Couldnt you just utf8-encode the strings you send and recieve to/from facebook?
http://php.net/manual/en/function.utf8-encode.php

RadioErewan 11-02-2009 07:15 AM

Quote:

Originally Posted by filt (Post 1909287)
Couldnt you just utf8-encode the strings you send and recieve to/from facebook?
http://php.net/manual/en/function.utf8-encode.php

iconv works for me, just tested it on hook_threadratedata_postsave.php
Added $message = iconv('ISO-8859-2','UTF-8',$message); in line 51 and
$notification = iconv('ISO-8859-2','UTF-8',$notification); in 80.
Now rating is properly rendered. Remember, my forum runs ISO-8859-2.
There are 32 hooks only, so doing it on my own every release is not wise solution.
Will wait for author feedback.

Regards

mrpaint 11-02-2009 09:22 AM

Quote:

Originally Posted by filt (Post 1909287)
Couldnt you just utf8-encode the strings you send and recieve to/from facebook?
http://php.net/manual/en/function.utf8-encode.php

This function can only convert string from ISO-8859-1, I intended to use mbstring library or iconv

Quote:

Originally Posted by RadioErewan (Post 1909290)
iconv works for me, just tested it on hook_threadratedata_postsave.php
Added $message = iconv('ISO-8859-2','UTF-8',$message); in line 51 and
$notification = iconv('ISO-8859-2','UTF-8',$notification); in 80.
Now rating is properly rendered. Remember, my forum runs ISO-8859-2.
There are 32 hooks only, so doing it on my own every release is not wise solution.
Will wait for author feedback.

Regards

Hi,

If you are a coder and open fbb/functions.php you will find out a function named "fb_encoding_to_Facebook" I intended to use to convert encoding. Hmm, but it give the wrong result so for most of the functions, I commented out the encoding part. But as you confirmed that iconv works, I will provide you with a new functions.php soon. You test it and tell me the result, okie?

Regards,

PS: Yeah, 42 hooks with manual editing is definitely not a wise way to do this :D Let the developer (me, haha) do his work!

RadioErewan 11-02-2009 10:11 AM

Quote:

Originally Posted by mrpaint (Post 1909325)
If you are a coder and open fbb/functions.php you will find out a function named "fb_encoding_to_Facebook" I intended to use to convert encoding. Hmm, but it give the wrong result so for most of the functions, I commented out the encoding part. But as you confirmed that iconv works, I will provide you with a new functions.php soon. You test it and tell me the result, okie?

Okie :-) Just uncommented three calls to fb_encoding_to_Facebook (replaced mbconvert with iconv), and nothing changed. Still titles are truncated at first polilsh diacritic mark in shorts sent to wall.

Regards

mrpaint 11-02-2009 10:22 AM

Quote:

Originally Posted by RadioErewan (Post 1909341)
Okie :-) Just uncommented three calls to fb_encoding_to_Facebook (replaced mbconvert with iconv), and nothing changed. Still titles are truncated at first polilsh diacritic mark in shorts sent to wall.

Regards

Oh oh, I sent you a PM. Did you read it? The new functions.php script is sent

dfc005 11-02-2009 07:20 PM

What about automatically bringing across some Facebook details? I like to collect users first and last names but don't really want these on the register page. Would you be able to set something up in the admin section so we can link some details from Facebook to specific profile fields.

tldagent 11-03-2009 11:22 AM

Haven't installed this yet as I was trying your demo board listed in the first post and I like the looks of it so far but I'm running into one issue. I enter my username, password and email to register and I keep getting this error on your demo board:

Quote:

You must enter at least 5 characters for the intro.
I can't get past this point to see if how it works with facebook and to adjust user settings.

mrpaint 11-03-2009 11:59 AM

Quote:

Originally Posted by dfc005 (Post 1909525)
What about automatically bringing across some Facebook details? I like to collect users first and last names but don't really want these on the register page. Would you be able to set something up in the admin section so we can link some details from Facebook to specific profile fields.

Well, this is a feature which exists in other modifications long time ago... I think I will add it soon

Quote:

Originally Posted by tldagent (Post 1909759)
Haven't installed this yet as I was trying your demo board listed in the first post and I like the looks of it so far but I'm running into one issue. I enter my username, password and email to register and I keep getting this error on your demo board:



I can't get past this point to see if how it works with facebook and to adjust user settings.

Hi, it's a modification which I installed to demonstrate that YAFB can work with other modification. You should put some dummy value in the Location field (which is placed in Required section) :up:

dfc005 11-03-2009 08:34 PM

Mate, I'm not sure what I've done wrong but I've broken my test board somehow. Keep getting this error....

Code:

Warning: include([path]/fbb/hook_init_startup.php) [function.include]: failed to open stream: No such file or directory in [path]/includes/init.php(301) : eval()'d code on line 43
Any idea how I can fix this problem?

mrpaint 11-04-2009 12:38 AM

Quote:

Originally Posted by dfc005 (Post 1909944)
Mate, I'm not sure what I've done wrong but I've broken my test board somehow. Keep getting this error....

Code:

Warning: include([path]/fbb/hook_init_startup.php) [function.include]: failed to open stream: No such file or directory in [path]/includes/init.php(301) : eval()'d code on line 43
Any idea how I can fix this problem?

Reason: File missing
Quick fix: Upload all files/directories under "upload" to your forum root :D

dfc005 11-04-2009 12:44 AM

Tried that though, a couple of times. The file is definitely there.

Thing is my board seems to work, it's just accessing the /admincp/ that has troubles....

mrpaint 11-04-2009 01:00 AM

Quote:

Originally Posted by dfc005 (Post 1910007)
Tried that though, a couple of times. The file is definitely there.

Thing is my board seems to work, it's just accessing the /admincp/ that has troubles....

Which part of AdminCP generates that error message?

dfc005 11-04-2009 01:14 AM

Quote:

Originally Posted by mrpaint (Post 1910016)
Which part of AdminCP generates that error message?

I can't even get into the /admincp/ otherwise I would uninstall the product and try reinstalling it.

Likewise, I tried disabling plugins in the config.php thinking that would allow me in but that hasn't helped either. Not really sure what I've done to break it....

mrpaint 11-04-2009 01:24 AM

Quote:

Originally Posted by dfc005 (Post 1910018)
I can't even get into the /admincp/ otherwise I would uninstall the product and try reinstalling it.

Likewise, I tried disabling plugins in the config.php thinking that would allow me in but that hasn't helped either. Not really sure what I've done to break it....

Huh? Disabling hook in config.php is the ultimate way to prevent hook from running, it works all the time. You can follow this post to disable hook system http://www.vbulletin.com/forum/showt...ystem-globally

Anyway, it's really weird since your front-end runs normally while the back-end sucks. If you wouldn't mind, send me your board address with an account information so I can login and see what's going wrong.

Regards,

dfc005 11-04-2009 01:36 AM

Typical, I try uploading all the files again and disabling hooks again and bingo, it lets me in first time. Reinstalled the product and enabled hooks, and it's all fine. Go figure.

Sorry about that! I swear I'd done the exact same thing 2-3 times before....

mrpaint 11-04-2009 01:43 AM

Quote:

Originally Posted by dfc005 (Post 1910025)
Typical, I try uploading all the files again and disabling hooks again and bingo, it lets me in first time. Reinstalled the product and enabled hooks, and it's all fine. Go figure.

Sorry about that! I swear I'd done the exact same thing 2-3 times before....

Software sucks by itself sometimes (or many times? :D). No worries. If you have any further problems, feel free to ask here. Cheers

dfc005 11-04-2009 02:37 AM

OK, after my earlier dilemma I've come across a new problem. I can't seem to authorise my account to post messages to a Facebook page using the Page Account itself.

Quote:

This Facebook Profile must be connected with a forum Account with Offline Access permission granted!. If you wish to publish to Page using Page Account itself, ask the Page Owner to visit this page: http://www.myurl.com/profile.php?do=fbb_pages. To get the Facebook UserID of a user, you can visit his/her Profile, move your mouse over "Send [name] a Message" (under Profile Avatar), copy the link, it is in the form of "http://www.facebook.com/gigaboxx/dialog/MessageComposer.php?id=987654321", so the Facebook UserID is "987654321"
I've got the right PageID and my UserID but whenever I visit http://www.myurl.com/profile.php?do=fbb_pages, nothing changes, I still see....

Quote:

Facebook Pages

* Page #6340028662 - Not Permitted

Could it be because we have multiple users who can update the page maybe?

dfc005 11-04-2009 04:28 AM

Also, what about posting Blogs to your Facebook feed?

dfc005 11-04-2009 09:06 AM

And finally, my last question for now....

What about if we wanted to add custom pushes to a users news feed? For instance my site has quizzes and games etc. Would it be possible for me to push to a users news feed their latest results from a quiz etc?

mrpaint 11-04-2009 10:08 AM

Quote:

Originally Posted by dfc005 (Post 1910044)
OK, after my earlier dilemma I've come across a new problem. I can't seem to authorise my account to post messages to a Facebook page using the Page Account itself.



I've got the right PageID and my UserID but whenever I visit http://www.myurl.com/profile.php?do=fbb_pages, nothing changes, I still see....



Could it be because we have multiple users who can update the page maybe?

Consider visiting this URL manually: http://domain.com/forums/profile.php...publish_stream

Quote:

Originally Posted by dfc005 (Post 1910077)
Also, what about posting Blogs to your Facebook feed?

Well, I have plan to provide plugin to "connect" Blog

Quote:

Originally Posted by dfc005 (Post 1910113)
And finally, my last question for now....

What about if we wanted to add custom pushes to a users news feed? For instance my site has quizzes and games etc. Would it be possible for me to push to a users news feed their latest results from a quiz etc?

Developers can provide a plugin to do so. YAFB provide open functions to communicate with Facebook easily :D Read my notes on the first post

tldagent 11-04-2009 10:12 AM

Quote:

Originally Posted by mrpaint (Post 1909772)
Hi, it's a modification which I installed to demonstrate that YAFB can work with other modification. You should put some dummy value in the Location field (which is placed in Required section) :up:

Thank you for the quick response.

I filled it out completely. You'd better double check it because no matter what's filled out I get the same error. It won't let me past the initial registration page.

joyboy2001 11-04-2009 05:47 PM

awesome ... this is so much better than the other Facebook connect mod ... nominated for MOTM :)

dfc005 11-05-2009 12:35 AM

Quote:

Originally Posted by mrpaint (Post 1910124)
Consider visiting this URL manually: http://domain.com/forums/profile.php...publish_streamt

Tried that and no luck. Still says not permitted.

jmpa 11-05-2009 12:41 AM

Installed. Voted for MOTM! :)

pinkcow 11-05-2009 02:37 AM

hey guys

Say I want to enforce a user profile field at registration, would it work at with this hack and where would it come in?

mrpaint 11-05-2009 02:50 AM

Quote:

Originally Posted by tldagent (Post 1910125)
Thank you for the quick response.

I filled it out completely. You'd better double check it because no matter what's filled out I get the same error. It won't let me past the initial registration page.

Well, please take a screenshot of your entered value and the error message. It's weird since the demo board gets new members everyday. Thank you

Quote:

Originally Posted by joyboy2001 (Post 1910240)
awesome ... this is so much better than the other Facebook connect mod ... nominated for MOTM :)

Thank you :D

Quote:

Originally Posted by dfc005 (Post 1910361)
Tried that and no luck. Still says not permitted.

Hmm, why your url contain and "t" at the end?
Anyway, can you give me your board with the Page Owner connected vBulletin account information? So I will come by and check javascript scope

Quote:

Originally Posted by jmpa (Post 1910364)
Installed. Voted for MOTM! :)

Thank you :D

Quote:

Originally Posted by pinkcow (Post 1910396)
hey guys

Say I want to enforce a user profile field at registration, would it work at with this hack and where would it come in?

Yes, the required fields will be placed in the required section and it won't let new registration go through without filling required information

pinkcow 11-05-2009 03:56 AM

thanks Mr Paint! :D you made my day


All times are GMT. The time now is 03:02 AM.

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.01929 seconds
  • Memory Usage 1,881KB
  • 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
  • (39)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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