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)

RyanFabbro 11-25-2012 06:44 AM

1 Attachment(s)
i have also made this similar to all the other fb connect so when a user is logged in with fb it will display their fb avatar, just like vb4 or that old fb connect.

i will only provide the code, feel free to edit it to your theme as you wish

this is just standard vb3 theme placement, and may not be the perfect spot for you but try it out:

open template navbar

find:
Code:

<img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
                </if>
        </td>

below add:
Code:

<if condition="$bbuserinfo[fbuid]">
                    <td class="alt2" align="center" style="width:51px;padding:4px;">
                <div style="position:relative;padding:3px;">
                    <a target="_new" href="http://www.facebook.com/profile.php?id=$bbuserinfo[fbuid]">
                        <img width="40" height="40" alt="Connected with Facebook" src="https://graph.facebook.com/$bbuserinfo[fbuid]/picture" title="Connected with Facebook" border="0" >
                        <img style="width: 15px; height: 15px; position: absolute; left: 2px; top: -3px; z-index: 2;" alt="Connected with Facebook" src="$vboptions[bburl]/fbb/facebook_logo_16x16.gif" title="Connected with Facebook" border="0" />
                    </a>
                </div>
            </td>
</if>


for people who know what theyre doing:
so with that snippit you shoud catch the main condition for the fb id and the if condition for fb users.

if condition for fb logged in users being
Code:

<if condition="$bbuserinfo[fbuid]">
and this snippet for users fb id
Code:

$bbuserinfo[fbuid]
with knowing these you can expand on this even further, i have only begun to play around with this and will keep you updated if i find anything else

note: i will not provide support for the code placement in your theme, i gave placement for stock theme, which is the best spot for the main theme. any highly customized themes were the vb navbar looks TOTALLY different you may have to play with it to get it perfect but if your navbar looks kinda default it should work good.

also my question in the previous post still stands if anyone could help with that.

diretur 11-26-2012 03:17 PM

Quote:

Originally Posted by RyanFabbro (Post 2384734)
is there anyway to make it so when users log out of my site they dont log out of facebook also?

Same question from me

RyanFabbro 11-26-2012 09:43 PM

1 Attachment(s)
hey diretur, i think i solved this, i removed the plugin for the logout process. i havent really tested it excessively, but it seems to be working how were wanting it to.

with this, your user is on facebook decides to goto your site and hits login with facebook, and there good to go. now when they logout, and try to log back in (it normally requires re log into facebook also) but not now! =) it will just relog them right back in if they click the button.

like i said i havent tested it a whole lot just loged into facebook once and kept logging in and out of my site (about 5 times)
seems to work, but if you notice anything not working please let me know.

you can either use this attachment when you install

or just goto your plugin manager under YAFB find
Logout Process (includes/functions_login.php)
and disable only that plugin not the whole system

bada_bing 11-27-2012 08:26 PM

I have now noticed that I am getting this message when trying to login using the facebook login option

An error occurred while connect with Facebook. Please try again later.

Not sure when this started or what I can do to fix it, can anyone please assist please

Thank You

RyanFabbro 11-29-2012 09:02 AM

at least im not alone i kept quite, not knowing if it was a setting i messed up or a product conflict, but i too am getting this error. weird thing is it was working perfect for a while then all of a sudden no more.

i wonder if facebook updated something within the last few days?

bada_bing 11-29-2012 05:42 PM

Quote:

Originally Posted by RyanFabbro (Post 2386381)
at least im not alone i kept quite, not knowing if it was a setting i messed up or a product conflict, but i too am getting this error. weird thing is it was working perfect for a while then all of a sudden no more.

i wonder if facebook updated something within the last few days?

Now hopefully we can get some help to fix it :o

RyanFabbro 11-30-2012 05:03 AM

im actually trying to fix it myself, probally end up with a whole new product. but ill let you know how it goes

ChiNa 12-03-2012 02:33 AM

Quote:

Originally Posted by RyanFabbro (Post 2386689)
im actually trying to fix it myself, probally end up with a whole new product. but ill let you know how it goes

Hi Ryan, Long time mate, Finally I got some time to login and update my FB connect.. But this one is not working at all
And the I saw the addon you have made, for the avatar which was awesome, and boom also doesnt work! I tested it with a few boards... And not working at at all... so I think this there is a problem with this addon...

Anyways, I must give it up for the developers hard job and thanks for sharing, else this one is kinda waste of time installing!

bada_bing 12-06-2012 01:52 PM

Quote:

Originally Posted by RyanFabbro (Post 2386689)
im actually trying to fix it myself, probally end up with a whole new product. but ill let you know how it goes

Awesome I appreciate you taking this on, I love the addon and look forward to your new product

RyanFabbro 12-06-2012 06:25 PM

Quote:

Originally Posted by bada_bing (Post 2388907)
Awesome I appreciate you taking this on, I love the addon and look forward to your new product

it may not be for some time though...

im also looking into source files of another multi social login product too.


All times are GMT. The time now is 10:34 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.01876 seconds
  • Memory Usage 1,750KB
  • 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
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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