Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 2
Goto page 1, 2  Next
 
Reply with quote Download Post 
Post [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style) 
 


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.

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.  
 
 
Edited by Guest, Mon 17 Aug, 2009 04:58: Added Send Password
 
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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  

Thank you.
 




____________
KnekZ
* html body {display:none;}
 
elpulgasSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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!!
 



 
DanielcSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.  

@ Daniel - You just jumped in ahead of me when I was writing this; which is much of the same sort of thing.
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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...

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.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [Beta IPv1.3.0.*] Quick Login Box (Drop-Down Style) 
 
Hehehehe, what about a drop-down login page - Just kidding.  

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.
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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   :

untitled_1

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




____________
KnekZ
* html body {display:none;}
 
elpulgasSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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  


Tricky! Isn't it?  

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.


 
 
Edited by Guest, Mon 17 Aug, 2009 01:32: Stripped out a couple of non-functional vars
Edited by Guest, Mon 17 Aug, 2009 04:53: Added Send Password
 
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 




____________
KnekZ
* html body {display:none;}
 
elpulgasSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 




____________
My main IP 1.3 site
My IP 1.3 styles test site
 
gearheadSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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?
 




____________
KnekZ
* html body {display:none;}
 
elpulgasSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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>

 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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!      
 
 
 
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 2
Goto page 1, 2  Next


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron