Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2013, 07:22 PM
Divvy Divvy is offline
 
Join Date: Nov 2008
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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:


But my guests see this in the register page:

If they not logged on facebook:


If they are logged on facebook:


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!
Reply With Quote
  #2  
Old 03-22-2013, 10:24 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 03-23-2013, 03:12 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Put Facebook usergroup as none
Reply With Quote
  #4  
Old 03-23-2013, 01:01 PM
Divvy Divvy is offline
 
Join Date: Nov 2008
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:


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!
Reply With Quote
  #5  
Old 04-03-2013, 12:19 PM
Divvy Divvy is offline
 
Join Date: Nov 2008
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please, anyone?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03708 seconds
  • Memory Usage 2,215KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete