Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
Recent Tutorials
Top posting users this month
Top Achievers
Who is online?
In total there are 43 users online :: 0 Registered, 0 Hidden and 43 Guests :: 2 Bots
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
Quick Login Panel
Page 1 of 1 • Share
* This topic is for testing, bugs may be present and if found should be reported to THIS topic *
Hello everyone,
Here you can test a quick log in panel for your forum. The panel displays by clicking the log in navigation button. It will drop down smoothly depending on the animation time. You can preview this by clicking the log in button on the forum navigation here.
This was mainly developed for PhpBB3, but it works on the other three versions as well, at the cost of some style.
To install and test this feature :
Administration Panel > Modules > Javascript codes management > Create a new script
Title : Quick Login Panel
Placement : In all the pages
Some things you should know !
Animation
To modify the animation duration edit the time variable. It is currently set to 0.750 seconds.
Style
You can edit the base panel style by editing the style variable, or by using the #quickLoginPanel ID to style it by the CSS stylesheet.
HTML
Lastly you can change the HTML to you liking, and add in classes for you to style the panel more.
If you have any comments or encounter a bug remember to leave a reply.
Thanks and happy testing !
Hello everyone,
Here you can test a quick log in panel for your forum. The panel displays by clicking the log in navigation button. It will drop down smoothly depending on the animation time. You can preview this by clicking the log in button on the forum navigation here.
This was mainly developed for PhpBB3, but it works on the other three versions as well, at the cost of some style.
To install and test this feature :
Administration Panel > Modules > Javascript codes management > Create a new script
Title : Quick Login Panel
Placement : In all the pages
- Code:
$(function() {
if (document.getElementById('logout')) { return; }
var time = 750; // animation duration
var style =
'position:fixed;'+
'background:#F7F7F7;'+
'border:1px solid #DDD;'+
'display:inline-block;'+
'padding:10px;'+
'z-index:99999;';
var login =
'<div id="quickLoginPanel" style="'+style+'">'+
'<fieldset class="fields1 left fld_connexion">'+
'<form name="form_login" method="post" action="/login">'+
'<dl>'+
'<dt>'+
'<label for="username">'+
'Username:'+
'</label>'+
'</dt>'+
'<dd>'+
'<input id="username" class="inputbox autowidth" type="text" value="" maxlength="40" size="25" name="username" tabindex="1">'+
'</dd>'+
'</dl>'+
'<dl>'+
'<dt>'+
'<label for="password">'+
'Password:'+
'</label>'+
'</dt>'+
'<dd>'+
'<input id="password" class="inputbox autowidth" type="password" maxlength="25" size="25" name="password" tabindex="2">'+
'</dd>'+
'<dd>'+
'<a href="/profile?mode=sendpassword">'+
'I forgot my password'+
'</a>'+
'</dd>'+
'</dl>'+
'<dl>'+
'<dd>'+
'<label for="autologin">'+
'<input id="autologin" class="radio" type="checkbox" tabindex="4" name="autologin">'+
'Log in automatically'+
'</label>'+
'</dd>'+
'</dl>'+
'<dl>'+
'<dt>'+
' '+
'</dt>'+
'<dd>'+
'<input type="hidden" value="" name="redirect">'+
'<input type="hidden" value="" name="query">'+
'<input class="button1" type="submit" value="Log in" tabindex="6" name="login">'+
'</dd>'+
'</dl>'+
'<a href="" id="quickLoginClose">Close</a>'+
'<form>'+
'</fieldset>'+
'</div>';
$('a.mainmenu[href="/login"]').click(function() {
if (!document.getElementById('quickLoginPanel')) {
$('body').append(login);
$('#quickLoginPanel').offset($(this).offset()).css('top','-25%').animate({top:'40px'}, time);
$('#quickLoginClose').click(function() {
$('#quickLoginPanel').animate({top:'-25%'}, time, function() {
$('#quickLoginPanel').remove();
});
return false;
});
}
return false;
});
});
Some things you should know !
Animation
To modify the animation duration edit the time variable. It is currently set to 0.750 seconds.
Style
You can edit the base panel style by editing the style variable, or by using the #quickLoginPanel ID to style it by the CSS stylesheet.
HTML
Lastly you can change the HTML to you liking, and add in classes for you to style the panel more.
If you have any comments or encounter a bug remember to leave a reply.
Thanks and happy testing !
Hi again, I've written up a variant for the logout. It is the same as the Quick Login only it is for logging out. I've got it working on phpbb3, I have not tested the other versions for the quick logout, yet, but I believe it should work for all.
Script :
Follow the same steps above for the login panel to install the logout panel.
If you encounter any bugs or have a comment, you can always leave them below. When I get time again I will see to putting both together into one code, maybe.
Thanks and have fun.
Script :
Follow the same steps above for the login panel to install the logout panel.
- Code:
$(function() {
if (!document.getElementById('logout')) { return; }
var time = 750; // animation duration
var style =
'position:fixed;'+
'background:#F7F7F7;'+
'border:1px solid #DDD;'+
'display:inline-block;'+
'padding:10px;'+
'z-index:99999;'+
'box-shadow:2px 2px 6px rgba(0,0,0,0.3)';
var logout =
'<div id="quickLogoutPanel" style="'+style+'">'+
'<form method="post" action="/login?logout=true">'+
'<p>'+
'Are you sure you want to log out ?'+
'</p>'+
'<fieldset class="submit-buttons">'+
'<div id="tid" style="display:none;"></div>'+
'<div id="key" style="display:none;"></div>'+
'<input class="button2" type="submit" value="Yes" name="confirm">'+
'<input class="button2" type="submit" value="No" name="cancel">'+
'</fieldset>'+
'<a href="" id="quickLogoutClose">Close</a>'+
'</form>'+
'</div>';
$('#logout').click(function() {
if (!document.getElementById('quickLogoutPanel')) {
$('body').append(logout);
$('#tid').load('/login?logout=1 input[name="tid"]');
$('#key').load('/login?logout=1 input[name="key"]');
$('#quickLogoutPanel').offset($(this).offset()).css('top','-25%').animate({top:'40px'}, time);
$('#quickLogoutClose').click(function() {
$('#quickLogoutPanel').animate({top:'-25%'}, time, function() {
$('#quickLogoutPanel').remove();
});
return false;
});
}
return false;
});
});
If you encounter any bugs or have a comment, you can always leave them below. When I get time again I will see to putting both together into one code, maybe.
Thanks and have fun.
Hi again !
This should be the final update for the login / logout panels. I've gotten around to putting both together and adding some easy customization.
At the top of the script are some options to customize the panel :
time : changes the duration of the dropdown animation
background : change the color of the panel (you can use hex, names, ect..)
border : change the color of the panel border (you can use hex, names, ect..)
shadow : toggle the box shadow. 1 is on, and any other number will remove the shadow
Apply to all pages in javascript codes management :
I have touched up the logout panel too. Clicking 'no' will no longer redirect you, instead the panel will close. If you encounter any bug, do not hesitate.
Enjoy !
This should be the final update for the login / logout panels. I've gotten around to putting both together and adding some easy customization.
At the top of the script are some options to customize the panel :
time : changes the duration of the dropdown animation
background : change the color of the panel (you can use hex, names, ect..)
border : change the color of the panel border (you can use hex, names, ect..)
shadow : toggle the box shadow. 1 is on, and any other number will remove the shadow
Apply to all pages in javascript codes management :
- Code:
$(function() {
var panel = {
time : 750, // animation duration
background : '#F7F7F7', // background color
border : '#DDDDDD', // border color
shadow : 1 // panel shadow [ 1 = on || 0 = off ]
};
var t0 = 'style="margin:0px 2px;"';
var t1 = panel["shadow"];
var t2 = panel["time"];
if (t1 == 1) { var t3 = 'box-shadow:2px 2px 6px rgba(0,0,0,0.3);' }
else { var t3 = 'box-shadow:none;' }
var style = 'position:fixed;background:'+panel["background"]+';border:1px solid '+panel["border"]+';display:inline-block;padding:10px;z-index:99999;'+t3;
var login = '<div id="quickLoginPanel" style="'+style+'"><fieldset class="fields1 left fld_connexion"><form name="form_login" method="post" action="/login"><dl><dt><label for="username">Username:</label></dt><dd><input id="username" class="inputbox autowidth" type="text" value="" maxlength="40" size="25" name="username" tabindex="1"></dd></dl><dl><dt><label for="password">Password:</label></dt><dd><input id="password" class="inputbox autowidth" type="password" maxlength="25" size="25" name="password" tabindex="2"></dd><dd><a href="/profile?mode=sendpassword">I forgot my password</a></dd></dl><dl><dd><label for="autologin"><input id="autologin" class="radio" type="checkbox" tabindex="4" name="autologin">Log in automatically</label></dd></dl><dl><dt> </dt><dd><input type="hidden" value="" name="redirect"><input type="hidden" value="" name="query"><input class="button1" type="submit" value="Log in" tabindex="6" name="login"></dd></dl><a href="" id="quickLoginClose">Close</a><form></fieldset></div>';
var logout = '<div id="quickLogoutPanel" style="'+style+'"><form method="post" action="/login?logout=true"><p>Are you sure you want to log out ?</p><fieldset class="submit-buttons"><div id="tid" style="display:none;"></div><div id="key" style="display:none;"></div><input class="button2" type="submit" value="Yes" name="confirm" '+t0+'><input class="button2" type="submit" value="No" name="cancel" id="quickLogoutClose" '+t0+'></fieldset></form></div>';
if (!document.getElementById('logout')) {
$('a.mainmenu[href="/login"]').click(function() {
if (!document.getElementById('quickLoginPanel')) {
$('body').append(login);
$('#quickLoginPanel').offset($(this).offset()).css('top','-25%').animate({top:'40px'}, t2);
$('#quickLoginClose').click(function() {
$('#quickLoginPanel').animate({top:'-25%'}, t2, function() {
$('#quickLoginPanel').remove();
});
return false;
});
}
return false;
});
}
else {
$('#logout').click(function() {
if (!document.getElementById('quickLogoutPanel')) {
$('body').append(logout);
$('#tid').load('/login?logout=1 input[name="tid"]');
$('#key').load('/login?logout=1 input[name="key"]');
$('#quickLogoutPanel').offset($(this).offset()).css('top','-25%').animate({top:'40px'}, t2);
$('#quickLogoutClose').click(function() {
$('#quickLogoutPanel').animate({top:'-25%'}, t2, function() {
$('#quickLogoutPanel').remove();
});
return false;
});
}
return false;
});
}
});
I have touched up the logout panel too. Clicking 'no' will no longer redirect you, instead the panel will close. If you encounter any bug, do not hesitate.
Enjoy !
The horizontal position is determined by your login/logout position. You can try this I suppose :
You will instead set the left value yourself. This will be done in percent. The new option can be found in the panel settings at the top of the script.
offsetX : can be a number from 0 to 100, this determines its left position.
- Code:
$(function() {
var panel = {
time : 750, // animation duration
background : '#F7F7F7', // background color
border : '#DDDDDD', // border color
shadow : 1, // panel shadow [ 1 = on || 0 = off ]
offsetX : '50'
};
var t0 = 'style="margin:0px 2px;"';
var t1 = panel["shadow"];
var t2 = panel["time"];
if (t1 == 1) { var t3 = 'box-shadow:2px 2px 6px rgba(0,0,0,0.3);' }
else { var t3 = 'box-shadow:none;' }
var style = 'position:fixed;background:'+panel["background"]+';border:1px solid '+panel["border"]+';display:inline-block;padding:10px;z-index:99999;'+t3;
var login = '<div id="quickLoginPanel" style="'+style+'"><fieldset class="fields1 left fld_connexion"><form name="form_login" method="post" action="/login"><dl><dt><label for="username">Username:</label></dt><dd><input id="username" class="inputbox autowidth" type="text" value="" maxlength="40" size="25" name="username" tabindex="1"></dd></dl><dl><dt><label for="password">Password:</label></dt><dd><input id="password" class="inputbox autowidth" type="password" maxlength="25" size="25" name="password" tabindex="2"></dd><dd><a href="/profile?mode=sendpassword">I forgot my password</a></dd></dl><dl><dd><label for="autologin"><input id="autologin" class="radio" type="checkbox" tabindex="4" name="autologin">Log in automatically</label></dd></dl><dl><dt> </dt><dd><input type="hidden" value="" name="redirect"><input type="hidden" value="" name="query"><input class="button1" type="submit" value="Log in" tabindex="6" name="login"></dd></dl><a href="" id="quickLoginClose">Close</a><form></fieldset></div>';
var logout = '<div id="quickLogoutPanel" style="'+style+'"><form method="post" action="/login?logout=true"><p>Are you sure you want to log out ?</p><fieldset class="submit-buttons"><div id="tid" style="display:none;"></div><div id="key" style="display:none;"></div><input class="button2" type="submit" value="Yes" name="confirm" '+t0+'><input class="button2" type="submit" value="No" name="cancel" id="quickLogoutClose" '+t0+'></fieldset></form></div>';
if (!document.getElementById('logout')) {
$('a.mainmenu[href="/login"]').click(function() {
if (!document.getElementById('quickLoginPanel')) {
$('body').append(login);
$('#quickLoginPanel').css('left',panel["offsetX"]+'%').css('top','-25%').animate({top:'40px'}, t2);
$('#quickLoginClose').click(function() {
$('#quickLoginPanel').animate({top:'-25%'}, t2, function() {
$('#quickLoginPanel').remove();
});
return false;
});
}
return false;
});
}
else {
$('#logout').click(function() {
if (!document.getElementById('quickLogoutPanel')) {
$('body').append(logout);
$('#tid').load('/login?logout=1 input[name="tid"]');
$('#key').load('/login?logout=1 input[name="key"]');
$('#quickLogoutPanel').css('left',panel["offsetX"]+'%').css('top','-25%').animate({top:'40px'}, t2);
$('#quickLogoutClose').click(function() {
$('#quickLogoutPanel').animate({top:'-25%'}, t2, function() {
$('#quickLogoutPanel').remove();
});
return false;
});
}
return false;
});
}
});
You will instead set the left value yourself. This will be done in percent. The new option can be found in the panel settings at the top of the script.
offsetX : can be a number from 0 to 100, this determines its left position.
Hi its me again
I recently realized that when i visit this and anothetmr forum of mine from mobile, im logged out..i have to relogin at each visit..and coincidentially these are the only forums with login popup enabled.. is it something related?
Can it be 'keep me logged in ' box doesnt work for this?
I recently realized that when i visit this and anothetmr forum of mine from mobile, im logged out..i have to relogin at each visit..and coincidentially these are the only forums with login popup enabled.. is it something related?
Can it be 'keep me logged in ' box doesnt work for this?
Hi.. so..with the new vertical nav bar im using..the popup comes off to the right a LOT.. i tried using your previous script to positiin it.. but i just cant move it to middle T.T any help is appreciated
You have used the script in this post and changed offset X to what you wanted ? It is at 50 so it should be about in the middle of the screen.
hi everything looks fine
but when i tried to use /login.forum?redirect=h1-page
it didnt work and still dont redirect like the toolbar login Script
also i like to make font more larger
thanks Ange
but when i tried to use /login.forum?redirect=h1-page
it didnt work and still dont redirect like the toolbar login Script
also i like to make font more larger
thanks Ange
Modify the style of the popups here :
I am not sure about the redirection.
- Code:
var style =
'position:fixed;'+
'background:#F7F7F7;'+
'border:1px solid #DDD;'+
'display:inline-block;'+
'padding:10px;'+
'z-index:99999;';
I am not sure about the redirection.
i forget about that topic
this is the Script of the toolbar the redirect is Working with it also i like to add the log me on auto next time
- Code:
$(window).load(function () {
$('#fa_welcome').click(function () {
$('#fa_menulist').fadeToggle();
});
});
$(window).load(function () {
document.getElementById("logout") || ($("#fa_toolbar").after('<div id="fa_menulist" style="display: none;"><form action="/login.forum?redirect=h1-page" method="post"><table style="width: 100%; text-align: center;"><tr><td style="width: 50%;">اسمك الحلو:</td><td style="width: 50%;"><input name="username" type="text" /></td></tr><tr><td style="width: 50%;">مفتاحك السرى:</td><td style="width: 50%;"><input name="password" type="password" /></td></tr></table><div style="text-align: center; padding: 5px;"><input type="submit" name="login" value="دخلنى ومتعنى" class="button2" /></div></form>'),
$('#fa_right .rightHeaderLink:first').click(function (a) {
a.preventDefault();
document.getElementById("fa_menulist").style.left = $(this).offset().left - 500 + "px";
document.getElementById("fa_menulist").style.top = $("#fa_toolbar").offset().top + 30 + "px";
"rightHeaderLink" == this.className ? (this.className += " active", $(this).css({
color: "#FFF",
"background-color": "#333"
})) : (this.className = "rightHeaderLink", $(this).css({
color: "",
"background-color": ""
}));
$("#fa_menulist").fadeToggle()
}))
});
the log out also not do true log out its take me to the conform page :/
thanks a lot for your all super coding
- Ch@lo Valdez
- Gender :
Age : 49
Posts : 65
Points : 3896
Reputation : 5
Location : Mexico
Language : eng spa
Browser : Forum Version :
hi Ange i try to add this, for keep on the same page after login:
$('#quickLoginPanel').find('form')[0].redirect.value = window.location.href;
help with thiis please?
$('#quickLoginPanel').find('form')[0].redirect.value = window.location.href;
help with thiis please?
@Ch@lo Valdez,
In the script, find this :
And replace it with this :
In the script, find this :
- Code:
'<input type="hidden" value="" name="redirect">'+
And replace it with this :
- Code:
'<input type="hidden" value="'+window.location.pathname+'" name="redirect">'+
- Ch@lo Valdez
- Gender :
Age : 49
Posts : 65
Points : 3896
Reputation : 5
Location : Mexico
Language : eng spa
Browser : Forum Version :
thanks Ange
- lightningterrorMember
- Gender :
Posts : 20
Points : 3911
Reputation : 5
Language : English
Browser : Forum Version :
I suggest adding a log in with facebook button (if the feature for fb login is enabled in the admin panel).
- Sponsored content
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum