[Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)


Goto page 1, 2  Next

Inactive User
Subject: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)
:mrgreen:

Ok! There's a million of these things and most if not all have to be rewritten depending on where it's put and in what template set.

This is just one variation that needs some testing and feedback, and is currently only for the /default . ;)

This is not the actual finished MOD because the .js really belongs in the header above the </head> wrapper. You can move it there if you wish, but it makes no difference at this stage and only removes a .css "Warning" in FF.

Anyone is welcome to try it at various locations in various themes, and modify the markup to suit each theme as they see fit etc.

But! PLEASE do post your variations in this thread, and eventually we can cover all styles in one place. :P

The javascript and <!-- Quick Login Mod * --> are clearly defined in the script below, if you are going to experiment, don't forget to move both of them.

Open: breadcrumbs_main.tpl

Replace all script with the code below.

Spoiler: [ Show ]


A pic with a couple of examples of what this MOD does.



And if someone says "I don't like it there" - I'm gonna' kill em! - Because trying to find a "home" for it without adding more clutter, ain't all that easy. And the whole thing disappears once you log in anyway. 8)

Subject: Re: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)
Nice Lopalong!

I was thinking of something similar for my site since the user block is too big.
I'll test it this days :mrgreen:

Thank you.

Profile PM  
Subject: Re: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)
elpulgas: It would be interesting if we replace the User Block with something like this yeah!!

Inactive User
Subject: Re: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)
Maybe we should try to convince MG to drop the login page, as phpBB is about the only forum software that I know of that uses a full page just to log in and have lost password requests etc. :mrviolet:

@ Daniel - You just jumped in ahead of me when I was writing this; which is much of the same sort of thing. ;)

Subject: Re: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)
Lopalong wrote: [View Post]
Maybe we should try to convince MG to drop the login page, as phpBB is about the only forum software that I know of that uses a full page just to log in and have lost password requests etc.


I like the login page, and I prefer having a dedicated page instead of having unuseful markup on every page... :wink:

But I guess it's a personal taste. :)


A small note about your TOGGLE script... why you don't use default Icy Phoenix JavaScript for it?

There are several in ip_scripts.js you just need to choose one. :P

Inactive User
Subject: Re: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)
Hehehehe, what about a drop-down login page - Just kidding. :mrviolet:

Re the .js - did think about it, may explore the option - but I have the nagging feeling that it may cause conflict with other internal functions using the same script.

Don't know - On the burner for something to look at. ;)

Subject: Re: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)
Well I was experimenting with it but then I thought it would be easier to use the same script used in the menu.

Code: [Download] [Hide] [Select]
<div id="login_tab2">
The form here
</div>
<span class="logintablink" onclick="ShowHide('login_tab','login_tab2','login_tab');">
<a href="#" onclick="return false;" title="Login"><b>LogIn</b></a>
</span>
<div id="login_tab" class="js-sh-box">
<script type="text/javascript">
<!--
tmp = 'login_tab';
if(GetCookie(tmp) == '2')
{
ShowHide('login_tab', 'login_tab2', 'login_tab');
}
//-->
</script>
</div>


Here's what I did with it :mrgreen: :

untitled_1

But it still has a big issue. I don't know how to set it to be hidden by default :oops:

Profile PM  
Inactive User
Subject: Re: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)
elpulgas wrote: [View Post]
But it still has a big issue. I don't know how to set it to be hidden by default :oops:


Tricky! Isn't it? :mrviolet:

For this one I have used some modified default Icy v1.2 script and opted to change the location:

Open: overall_header.tpl

Spoiler: [ Show ]


Some Screen Shots.


Subject: Re: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)
Very tricky indeed. I still haven't managed to do it. Here's the full code I made based on yours:

Spoiler: [ Show ]


The result is the same as with th eprevious code. And even worse, the reset password link doesn't work for unknown reasons.

Profile PM  
Subject: Re: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)
That's very cool....I'm hesitating from adding mods to the basic IP coding because during an upgrade, I always forget to keep those modded pages.....I'm keeping mine pretty much stock, but very cool idea, that was used in a few styles in the past.....

Nice work. :mrblue:

Inactive User
Subject: Re: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)
:(

Code: [Download] [Hide] [Select]
Change this:

<a href="{U_SEND_PASSWORD}">{L_SEND_PASSWORD}</a>

To This:

<a href="profile.php?mode=sendpassword">{L_SEND_PASSWORD}</a>


It looks pretty useful, so I'll add it to the other two scripts also. ;)

Subject: Re: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)
Lopalong wrote: [View Post]
:(

Code: [Download] [Hide] [Select]
Change this:

<a href="{U_SEND_PASSWORD}">{L_SEND_PASSWORD}</a>

To This:

<a href="profile.php?mode=sendpassword">{L_SEND_PASSWORD}</a>


It looks pretty useful, so I'll add it to the other two scripts also. ;)


Well that's the simplest solution but don't you have any idea why it's not working?

Profile PM  
Inactive User
Subject: Re: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)
Quote:
Well that's the simplest solution but don't you have any idea why it's not working?


I know why the other one didn't work. Not all VARS are global, and without editing or creating a new .php and .tpl file to <!-- INCLUDE the .tpl file in the location that one wants it, then one is better off patching it. It's easier, doesn't require core code changes and it usually works. ;)

Subject: Re: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)
Lopa is right about Global Vars.

If you need that you can declare it in your style CFG file.

About keeping the menu open or close depends on where you put the code that checks cookie content.


For example in nav_quick_links.tpl:

Code: [Download] [Hide] [Select]
<div id="main_links2" class="nav-menu">
...
</div>
<div id="main_links" class="js-sh-box">
<script type="text/javascript">
<!--
tmp = 'main_links';
if(GetCookie(tmp) == '2')
{
ShowHide('main_links', 'main_links2', 'main_links');
}
//-->
</script>
</div>


Make sure that code is after the content block...

Code: [Download] [Hide] [Select]
<div id="main_links2" class="nav-menu">
...
</div>

Inactive User
Subject: Re: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style)
Mighty Gorgon wrote: [View Post]
About keeping the menu open or close depends on where you put the code that checks cookie content.


I deliberately removed the cookie code because if one clicks the Quick Login, then refreshing the page keeps the Quick Login template / .js in view, rather than remove it. :(

Bit hard to explain, but I know what you mean. Or one of us does anyway! :mricy: :mrviolet: :mryellow:

Goto page 1, 2  Next

Page 1 of 2


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1915s (PHP: 13% SQL: 87%)
SQL queries: 15 - Debug Off - GZIP Enabled