Separate FB Connect & Basic Login

I would like to use the regular FB connect icon instead of putting it in a drop down menu, which half of the visitors don't seem to notice.

Any help will be appreciated.

Quote · 17 May 2010

You can do that with a little mod like my site. http://www.deanbassett.com

To add a facebook connect button open inc\design.inc.php

Look for the following at about line 477

'inputs' => array(
$aAuthTypes,
'nickname' => array(
'type' => 'text',
'name' => 'ID',
'caption' => _t('_NickName'),
),

Comment out $aAuthTypes,. Make it look like this.
This mod removes the auth type drop down list. This is optional.

'inputs' => array(
//$aAuthTypes,
'nickname' => array(
'type' => 'text',
'name' => 'ID',
'caption' => _t('_NickName'),
),

Now near the end of the file at line 521 look for this.

$oForm = new BxTemplFormView($aForm);
$sFormCode = $oForm->getCode();

Make it look like this.
This mod adds the facebook connect button.

$oForm = new BxTemplFormView($aForm);
$sFormCode = '<div style="text-align: center; margin-top: 8px;"><a href="modules/?r=facebook_connect/login_form"><img border="0" src="' . BX_DOL_URL_ROOT . 'templates/base/images/fbconnectbut.png" width="167" height="24"></a></div>' . $oForm->getCode();




Then you need a button image. Place it in templates/base/images/ with the name of fbconnectbut.png

You can right click on the button image on my site and save it if you want to use that button.

https://www.deanbassett.com
Quote · 17 May 2010

Thx so much, Deano!

Quote · 22 May 2010

Thanks, great

Your site takes the user to a page with a "login complete" but.

How do you do that, its vg

Quote · 22 May 2010

Do you mean join complete?

Nothing i did. It's part of the avatar module. The module that is called by dolphin when a new member joins either by facebook connect or through the regular join form when uploading a image doing the join process.

https://www.deanbassett.com
Quote · 22 May 2010

Hi,

Yes.

Wondering how you get to "avator" page after the FB login, mine goes to the index page.

appreciate any help.

andrew

Quote · 22 May 2010

Its the normal function of the facebook connect module.

Are you running a custom version?

If not, the only explination i can come up with is your FB connect is not getting the image of the member from facebook, so it's bypassing it.

But, going to the avatar page after join with facebook connect is how it is suppose to work. But thats only the first time. A second logon go to the member page just like a normal logon for an existing account.

So i cannot explain why yours is not.

https://www.deanbassett.com
Quote · 22 May 2010

Hi,

Thanks, i forgot, it did go to the avator page first time.

My problem is , that as facebook does not provide users email , i'm trying to figure a way to encourage the user to complete the profile info.especially the email address.

all the best

andrew

Quote · 22 May 2010

Everyone is looking for a way to do that.

https://www.deanbassett.com
Quote · 22 May 2010

Hi,

is there any way to replace the "login complete" button with "login complete but we need your email address" click here.

all the best,

Andrew

Quote · 23 May 2010

Apparently, there are two stock variables: $sCustomHtmlBefore and $sCustomHtmlAfter. You can even add your own. :)

Note the output goes like this:

return $sCustomHtmlBefore . $sFormCode . $sCustomHtmlAfter . $sJoinText;

Use your imagination. Gotta make good use of those. :-)

You can do that with a little mod like my site. http://www.deanbassett.com

To add a facebook connect button open inc\design.inc.php

Look for the following at about line 477

'inputs' => array(
$aAuthTypes,
'nickname' => array(
'type' => 'text',
'name' => 'ID',
'caption' => _t('_NickName'),
),

Comment out $aAuthTypes,. Make it look like this.
This mod removes the auth type drop down list. This is optional.

'inputs' => array(
//$aAuthTypes,
'nickname' => array(
'type' => 'text',
'name' => 'ID',
'caption' => _t('_NickName'),
),

Now near the end of the file at line 521 look for this.

$oForm = new BxTemplFormView($aForm);
$sFormCode = $oForm->getCode();

Make it look like this.
This mod adds the facebook connect button.

$oForm = new BxTemplFormView($aForm);
$sFormCode = '<div style="text-align: center; margin-top: 8px;"><a href="modules/?r=facebook_connect/login_form"><img border="0" src="' . BX_DOL_URL_ROOT . 'templates/base/images/fbconnectbut.png" width="167" height="24"></a></div>' . $oForm->getCode();




Then you need a button image. Place it in templates/base/images/ with the name of fbconnectbut.png

You can right click on the button image on my site and save it if you want to use that button.

Quote · 20 Jun 2010

That was my old code.

The alert section using $sCustomHtmlBefore and $sCustomHtmlAfter is new to 7.0.2. It was not present in previous versions of dolphin.

https://www.deanbassett.com
Quote · 20 Jun 2010
Can you give me the new code for dolphin 7.0.2
Thank you
Free Dating Site on: http://coolonweb.com
Quote · 20 Jun 2010

Just set either $sCustomHtmlBefore or $sCustomHtmlAfter to the <div> block html code.

You can even add another variable to have something showing up at the very bottom.

Can you give me the new code for dolphin 7.0.2
Thank you

Quote · 20 Jun 2010

I know. :-D

That was my old code.

The alert section using $sCustomHtmlBefore and $sCustomHtmlAfter is new to 7.0.2. It was not present in previous versions of dolphin.

Quote · 20 Jun 2010

Hi, Thank Deano for this !

Someone can help me with this problem : after i click on the facebook button, i'm redirect to the facebook page for login, after i insert my facebook mail and password it stil redirect from my site and facebook site...

Where i can found the correct setting for create a good facebook application to work with D7 ?

My site is D7.0.0 i don't upgrade, but i make the facebook ugrade from the dolphin track...

My site is here

...
Quote · 21 Jun 2010

Quick question. OI now have the button instead of the drop-down when people click LOGIN but how do I do the same to the login block that appears on the front page?

Quote · 21 Nov 2010

please ignore the above, it happened automatically, just took a while for my dolphin to show it. Once again Deano has triumphed!  (try his free toolkit folks, its amazing!)

Quote · 22 Nov 2010

Thanks a million. Worked perfectly on 7.0.5

Quote · 8 Mar 2011

What's the proper procedures for 7.09?  The file is a bit different in where this is:

 

$oForm = new BxTemplFormView($aForm);

    bx_import('BxDolAlerts');
    $sCustomHtmlBefore = '';
    $sCustomHtmlAfter = '';
    $oAlert = new BxDolAlerts('profile', 'show_login_form', 0, 0, array('oForm' => $oForm, 'sParams' => &$sParams, 'sCustomHtmlBefore' => &$sCustomHtmlBefore, 'sCustomHtmlAfter' => &$sCustomHtmlAfter, 'aAuthTypes' => &$aAuthTypes));
    $oAlert->alert();

    $sFormCode = $oForm->getCode();

Quote · 20 Jun 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.