vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Problem with facebook auto-register (https://vborg.vbsupport.ru/showthread.php?t=296408)

Divvy 03-22-2013 07:22 PM

Problem with facebook auto-register
 
Hello guys,

I need some help here about Facebook Platform.

I have set in my options NO to Enable Auto-Register as you can see here:
https://vborg.vbsupport.ru/external/2013/03/15.png

But my guests see this in the register page:

If they not logged on facebook:
https://vborg.vbsupport.ru/external/2013/03/16.png

If they are logged on facebook:
https://vborg.vbsupport.ru/external/2013/03/17.png

What Im doing wrong?
Why facebook platform appears in my register page if I have set NO in Auto-Register?

Can someone please help me?

Thanks!

tbworld 03-22-2013 10:24 PM

Disable auto register does disable the auto registration system, it does not disable the Facebook platform or its link. Easy fix would be to comment out or add a vb:conditional to your registration template code. Since you are using the standard template anyone here can give you a hand if you need it, but look up vb:conditionals first in the manual, it is worth your time :)

ForceHSS 03-23-2013 03:12 AM

Put Facebook usergroup as none

Divvy 03-23-2013 01:01 PM

ForceHSS, I already did but didn't solve my problem.

tbworld, here goes what I did:

I removed this code lines from my register template file:

FIND:
Code:

<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
REPLACE WITH:
Code:

<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
FIND AND REMOVE:
Code:

<vb:if condition="$vboptions['enablefacebookconnect']">
                        <h3 class="blocksubhead">{vb:rawphrase facebook_connect}</h3>
                        <div class="section">
                                <div id="fbregbox" class="blockrow hidden">
                                <vb:if condition="$show['facebookuser']">
                                        <a href="{vb:raw fbprofileurl}">
                                                <img src="{vb:raw fbprofilepicurl}" title="{vb:var fbname}" alt="{vb:var fbname}" />
                                        </a>
                                        {vb:rawphrase welcome_x_link_y, {vb:var fbname}, {vb:raw fbprofileurl}}
                                        <a style="cursor: pointer" onclick="vBfb.register_logout();"><img src="{vb:stylevar imgdir_misc}/facebook_logout.gif" alt="{vb:rawphrase logout_of_facebook}" /></a>
                                <vb:else />
                                        <a id="fb_regloginbtn" href="#"><img src="{vb:stylevar imgdir_misc}/facebook_login_long.gif" alt="{vb:rawphrase facebook_connect}" /></a>
                                </vb:if>
                                </div>
                       
                        <vb:if condition="$show['facebookuser']">
                                <div class="blockrow">
                                        <label for="facebookusername">{vb:rawphrase already_a_member}</label>
                                        <div class="rightcol">
                                                <input type="text" class="textbox" name="facebookusername" id="facebookusername" maxlength="50" tabindex="1" value="{vb:rawphrase username}" />
                                                <input type="text" class="textbox" name="facebookpassword_hint" id="facebookpassword_hint" maxlength="50" tabindex="1" value="{vb:rawphrase password}" />
                                                <input type="password" class="textbox" name="facebookpassword" id="facebookpassword" maxlength="50" tabindex="1" style="display: none;" />
                                                <input type="button" class="button" name="facebookassociate" id="facebookassociate" value="{vb:rawphrase log_in}" tabindex="1" />
                                                <p class="description">{vb:rawphrase associate_facebook_with_x_account, {vb:raw vboptions.bbtitle}}</p>
                                                <script type="text/javascript">
                                                YAHOO.util.Dom.setStyle('facebookpassword_hint', "display", "inline");
                                                YAHOO.util.Dom.setStyle('facebookpassword', "display", "none");
                                                YAHOO.util.Dom.setStyle('facebookusername', "color", "#828282");
                                                YAHOO.util.Dom.setStyle('facebookpassword_hint', "color", "#828282");
                                                vB_XHTML_Ready.subscribe(function()
                                                {
                                                //
                                                        YAHOO.util.Event.on('facebookusername', "focus", facebookusername_focus);
                                                        YAHOO.util.Event.on('facebookusername', "blur", facebookusername_blur);
                                                        YAHOO.util.Event.on('facebookpassword_hint', "focus", facebookpassword_hint);
                                                        YAHOO.util.Event.on('facebookpassword', "blur", facebookpassword);
                                                });

                                                function facebookusername_focus(e)
                                                {
                                                //
                                                        var textbox = YAHOO.util.Event.getTarget(e);
                                                        if (textbox.value == '{vb:rawphrase username}')
                                                        {
                                                        //
                                                                textbox.value='';
                                                                textbox.style.color='black';
                                                        }
                                                }

                                                function facebookusername_blur(e)
                                                {
                                                //
                                                        var textbox = YAHOO.util.Event.getTarget(e);
                                                        if (textbox.value == '')
                                                        {
                                                        //
                                                                textbox.value='{vb:rawphrase username}';
                                                                textbox.style.color='#828282';
                                                        }
                                                }

                                                function facebookpassword_hint(e)
                                                {
                                                //
                                                        var textbox = YAHOO.util.Event.getTarget(e);

                                                        YAHOO.util.Dom.setStyle('facebookpassword_hint', "display", "none");
                                                        YAHOO.util.Dom.setStyle('facebookpassword', "display", "inline");
                                                        YAHOO.util.Dom.get('facebookpassword').focus();
                                                }

                                                function facebookpassword(e)
                                                {
                                                //
                                                        var textbox = YAHOO.util.Event.getTarget(e);

                                                        if (textbox.value == '')
                                                        {
                                                                YAHOO.util.Dom.setStyle('facebookpassword_hint', "display", "inline");
                                                                YAHOO.util.Dom.setStyle('facebookpassword', "display", "none");
                                                        }
                                                }
                                                </script>
                                        </div>
                                </div>
                        </vb:if>
                        </div>
                       
                        {vb:raw fbimportform}
                </vb:if>

The register works fine without any facebook reference, except this:
https://vborg.vbsupport.ru/external/2013/03/14.png

When the user is logged on facebook, the fields username and email are automatically filled.
Any idea how to fix this auto-fill?

I just don't understand why the Auto-Register set to NO doesn't work... is this a bug?

Thanks!

Divvy 04-03-2013 12:19 PM

Please, anyone?


All times are GMT. The time now is 10:34 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.01093 seconds
  • Memory Usage 1,769KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete