Jump to content


* * * * * 1 votes

(IM) Sliding Quick Login v1.3.2


110 replies to this topic

#1 Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,036 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 25 April 2009 - 10:16 PM

Posted Image

File Name: (IM) Sliding Quick Login v1.3.2
File Submitter: Martin
File Submitted: 26 Apr 2009
File Updated: 28 Oct 2010
File Category: IP.Board v3.0 & v3.1

File Information
Resource Type: Hook
Version: 1.3.2 (10032)
Compatibility: IP.Board 3.0 & IP.Board 3.1 series


Description
This hook installs a quick login feature, with most login options available. Click the regular "Sign in" link, and a new panel will slide in from the top.


Change log
  • v1.3.2
    • Fixed an issue with IP.Board 3.1.3
  • v1.3.1
    • Support for login using HTTPS
    • This hook will no longer function if you force guests to log in
  • v1.3
    • Facebook Connect button did not work with IP.Board 3.1
    • Added Twitter Connect login method
  • v1.2.3
    • Compatibility upgrade for IP.Board 3.1
  • v1.2.2
    • Redirects to wrong URL after successful login
  • v1.2.1
    • Hook inserted template to wrong skin

    • New Javascript was missing from download
  • v1.2
    • Added support for Windows Live, and re-styled it a bit (See screenshot)
  • v1.1.4
  • v1.1.3
    • Fixed padding issues with some skins
  • v1.1.2
    • Fixed an issue with IE7
  • v1.1.1
    • Fixed an issue with cSEO, and other modifications that modify the login link.
  • v1.1
    • Fixed an issue with IP.Board 3.0.5

    • Made it compatible with all skins
  • v1.0
    • Stable release

Click here to download this file

#2 Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,262 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.1.x
Contributor

Posted 26 April 2009 - 12:16 AM

Very, very nice, m4rtin!

Just a little bug. after install shows this error:

Parse error: parse error, expecting `T_FUNCTION' in C:\xampp\htdocs\f305\hooks\loginSlide_cb18570a15d371a6fec252a6de93e26d.php on line 74
The hook files ends like that:

		return $this->registry->getClass( 'output' )->getTemplate( 'global' )->quickLoginSlide( $has_openid );
	}
?>}
Should be:

		return $this->registry->getClass( 'output' )->getTemplate( 'global' )->quickLoginSlide( $has_openid );
	}
}
?>
Very nice! ;)

#3 Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,036 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 26 April 2009 - 11:02 AM

Thanks Adriano ;)

I've rebuilt the file, fixing the error above.

#4 Dazer

    Advanced Member

  • Members
  • PipPipPipPip
  • 76 posts
  • Real Name:Graeme
  • IPB Version:v3.0.x
Contributor

Posted 28 April 2009 - 11:28 AM

Just installed this awesome hook. It's exactly what I was hoping IPB would have.

There do seem to be a few minor issues though.

$("openidOpen") is null
http://localhost/forum/public/js/ips.loginSlide.js
Line 91

I'm getting this error (although it still seems to work fine). Presumably it is because I do not have OpenID activated?


Also, there is something not quite right about slide down effect. The "sign in" "register" "help" tab seems to disconnect itself when the panel slides down. Perhaps a design issue?
EDIT: From what I can tell, it's simple an issue that the "user_nav" element is sliding down slightly faster, and separates itself from the panel while it slides.

Otherwise, fantastic work!


EDIT:
I see what the issue is with the separation of the elements.
Something to do with "top:7px" in the style. I'm trying to find a way to make it look okay without breaking the design ;). Will let you know if I come up with anything.

Edited by Dazer, 28 April 2009 - 11:47 AM.


#5 Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,036 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 28 April 2009 - 12:13 PM

The issue you're having seem to be due to the javascript bug. It should remove that gap, at the same that it slides down, and changes the background color to black.

Try replacing ./public/js/ips.loginSlide.js with this:
/************************************************/
/* IPB3 Javascript						*/
/* -------------------------------------------- 			*/
/* ips.twitter.js - (IM) Sliding Quick Login			*/
/* © Invision Modding 2009					*/
/* -------------------------------------------- 			*/
/* Author: Martin Aronsen					*/
/************************************************/

var _loginSlide = window.IPBoard;

_loginSlide.prototype.loginSlide = {

	init: function()
	{
		document.observe( "dom:loaded", function()
										{
											$$( '.not_logged_in' )[1].hide();
											$( 'loginSlide' ).observe( 'click', ipb.loginSlide.openPanel );
											$( 'loginCancel' ).observe( 'click', ipb.loginSlide.openPanel );
										}
		);
	},
	hasOpenID: 0,
	
	openPanel: function(e)
	{
		Event.stop(e);
		
		var element = $$( '.not_logged_in' )[0];
		
		if( $( 'panel' ).visible() )
		{
			new Effect.Parallel([
			
				new Effect.Morph( 'user_navigation', {
											style: {
												background: '#2B4F74',
												color: '#FFFFFF',
											},
												duration: 0.5
											}
				),
				
				new Effect.Morph( 'panel', {
											style: {
												background: '#2B4F74',
												color: '#999999'
											},
												duration: 0.5
											}
				),
				
				new Effect.SlideUp( 'panel', 
											{ 
												afterFinish: function() 
												{ 
													$( element ).removeClassName( 'slided' ) 
												} 
											} 
				),
			], 
			{
				duration: 0.5
			});
			
			new Effect.Morph( 'user_navigation', {
				style: {
					top: '7px'
				},
				delay: 0.4,
				duration: 0.1
			});
		}
		else
		{
			new Effect.Parallel([
				new Effect.Morph( 'user_navigation', {
											style: {
												background: '#2E2E2E',
												color: '#999999'
											},
												duration: 2.0
											}
				),
				new Effect.Morph( 'panel', {
											style: 
											{
												background: '#2E2E2E',
												color: '#999999'
											},
												duration: 2.0
											}
				),
				new Effect.SlideDown( 'panel', 
											{ 
												beforeStart: function() 
												{ 
													$( element ).addClassName( 'slided' ) 
												},
												duration: 2.0
											} 
				),
			], 
			{
				duration: 2.0
			});
			new Effect.Morph( 'user_navigation', {
					style: {
						top: '0px'
					},
					delay: 0.2,
					duration: 0.4
				});
			
			if ( ipb.loginSlide.hasOpenID )
			{
				$( 'openidOpen' ).observe( 'click', ipb.loginSlide.openOpenID );
			}
		}
		
		return false;
	},
	
	openOpenID: function(e)
	{
		Event.stop(e);
		
		if( $('openidSignin').visible() )
		{
			new Effect.Parallel([
				new Effect.BlindUp( $('openidSignin'), { sync: true } ),
				new Effect.BlindDown( $('regularLogin'), { sync: true } )
			]);
		}
		else
		{
			new Effect.Parallel([
				new Effect.BlindDown( $('openidSignin'), { sync: true } ),
				new Effect.BlindUp( $('regularLogin'), { sync: true } )
			]);
		}
	}
}

Effect.BlindRight = function(element) {

  element = $(element);
  var elementDimensions = element.getDimensions();
  return new Effect.Scale(element, 100, Object.extend({
    scaleContent: false,
    scaleY: false,
    scaleFrom: 0,
    scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},
    restoreAfterFinish: true,
    afterSetup: function(effect) {
      effect.element.makeClipping().setStyle({
        width: '0px',
        height: effect.dims[0] + 'px'
      }).show();
    },
    afterFinishInternal: function(effect) {
      effect.element.undoClipping();
    }
  }, arguments[1] || { }));
};

Effect.BlindLeft = function(element) {
  element = $(element);
  element.makeClipping();
  return new Effect.Scale(element, 0,
    Object.extend({ scaleContent: false,
      scaleY: false,
      scaleMode: 'box',
      scaleContent: false,
      restoreAfterFinish: true,
      afterSetup: function(effect) {
        effect.element.makeClipping().setStyle({
          height: effect.dims[0] + 'px'
        }).show();
      },
      afterFinishInternal: function(effect) {
        effect.element.hide().undoClipping();
      }
    }, arguments[1] || { })
  );
};


ipb.loginSlide.init();

This will break the OpenID toggle for those with OpenID enabled, btw.

#6 MichaelJohn

    Programmer

  • Modders
  • PipPipPipPipPipPip
  • 475 posts
  • Location:Australia
  • Real Name:Michael
  • IPB Version:v3.1.x
Contributor

Posted 29 April 2009 - 12:10 AM

You wouldn't mind if I integrated this with my Guest Message mod? Was going to add this functionality, but it would be a lot easier just to link it to this.

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#7 Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,036 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 29 April 2009 - 12:18 AM

Exactly what did you have in mind? Adding the guest message in the panel? If they're clicking the "Sign in" link, they probably have an account already.

#8 MichaelJohn

    Programmer

  • Modders
  • PipPipPipPipPipPip
  • 475 posts
  • Location:Australia
  • Real Name:Michael
  • IPB Version:v3.1.x
Contributor

Posted 29 April 2009 - 12:29 AM

View Postm4rtin, on Apr 29 2009, 10:18 AM, said:

Exactly what did you have in mind? Adding the guest message in the panel? If they're clicking the "Sign in" link, they probably have an account already.

No I meant, I'm going to add a sign in button on the guest message, I would like to link that sign in button to your slide login (instead of just a href to the sign in page.

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#9 Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,036 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 30 April 2009 - 02:06 PM

I see!
Just give the sign in link the 'loginSlide' class, and it should be observed by my javascript ;)


v0.9.1 is out. Fixed the OpenID bug mentioned above, and tweaked the panel slidedown a bit.

#10 Malefickus

    Novice

  • Members
  • PipPip
  • 9 posts
  • Real Name:Toby
  • IPB Version:v2.3.x

Posted 03 May 2009 - 02:16 AM

I downloaded the latest version just now off of IPS Resources, and it still has that gap pop up when clicking the "Sign In" link before everything slides down.

#11 Tunersworld

    Tunersworld.co.uk

  • Members
  • PipPipPipPipPip
  • 147 posts
  • Location:Scotland
  • Real Name:William
  • IPB Version:v2.3.x
Contributor

Posted 03 May 2009 - 01:08 PM

Hi guys,

I have installed this mod but when i click on sign in it just takes me to the normal sign in page.

Any ideas how i can fix this?

Cheers,
William
William Williamson
Freelance IPB Skinner
PM Me For A FREE Custom Skin Quote

#12 Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,036 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 03 May 2009 - 01:31 PM

View PostMalefickus, on May 3 2009, 04:16 AM, said:

I downloaded the latest version just now off of IPS Resources, and it still has that gap pop up when clicking the "Sign In" link before everything slides down.
Now I definitely fixed it. Moved the top margin change from the javascript, to the CSS instead.

View PostScotnetlive, on May 3 2009, 03:08 PM, said:

Hi guys,

I have installed this mod but when i click on sign in it just takes me to the normal sign in page.

Any ideas how i can fix this?

Cheers,
William
Just checked your site, looks fine to me. Although, there is an IE8 bug with Prototype (The JS framework), that cause that. Nothing I can do about it.

#13 Tunersworld

    Tunersworld.co.uk

  • Members
  • PipPipPipPipPip
  • 147 posts
  • Location:Scotland
  • Real Name:William
  • IPB Version:v2.3.x
Contributor

Posted 03 May 2009 - 03:40 PM

yeah mate sorry, i checked it in firefox and it works fine
William Williamson
Freelance IPB Skinner
PM Me For A FREE Custom Skin Quote

#14 Tunersworld

    Tunersworld.co.uk

  • Members
  • PipPipPipPipPip
  • 147 posts
  • Location:Scotland
  • Real Name:William
  • IPB Version:v2.3.x
Contributor

Posted 03 May 2009 - 09:41 PM

got another question, is there any way to put some text into the right of the panel above the copyright, like this.

Posted Image
William Williamson
Freelance IPB Skinner
PM Me For A FREE Custom Skin Quote

#15 Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,036 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 03 May 2009 - 09:49 PM

That's no problem at all. If you enable Facebook Connect, tho, it may be a bit tight up there.

ACP -> Look & Feel -> [Select Skin] -> Global Template -> quickLoginSlide
Find:
</div>
		<div class="copyright">
Add above:
<div class="right">
				My content here :)
			</div>


#16 Tunersworld

    Tunersworld.co.uk

  • Members
  • PipPipPipPipPip
  • 147 posts
  • Location:Scotland
  • Real Name:William
  • IPB Version:v2.3.x
Contributor

Posted 03 May 2009 - 09:56 PM

thanks mate, what a great mod this is by the way
William Williamson
Freelance IPB Skinner
PM Me For A FREE Custom Skin Quote

#17 atsaunier

    Advanced Member

  • IM Supporters
  • PipPipPipPip
  • 88 posts
  • IPB Version:v3.0.x
Contributor

Posted 15 May 2009 - 02:08 AM

i cant seem to get this to work in IPB 3.0.0 RC1


Sign up HERE Enter Promo
WINXPERTS09 for $50 off on New accounts



Winxperts.net


#18 Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,036 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 15 May 2009 - 09:47 AM

What browser are you using?
Are you seeing any javascript errors?

#19 atsaunier

    Advanced Member

  • IM Supporters
  • PipPipPipPip
  • 88 posts
  • IPB Version:v3.0.x
Contributor

Posted 15 May 2009 - 05:56 PM

im using IE8 and not errors, just dont seem to work like it did in beta 5 unless im doing sometinhg wrong, in beta 5 i clicked the sign in on the top right the drop down came down, but in rc1 it goes to the sign in page.. i checked its enabled in the acp..its just not doing nothing unless somehow i mussed sometinhg..


Sign up HERE Enter Promo
WINXPERTS09 for $50 off on New accounts



Winxperts.net


#20 Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,036 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 15 May 2009 - 08:51 PM

Must be an issue with the JS framework.

I've spent the last hours attacking this bug from every angel, without any luck.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users