Warning: The author of this contribution does not provide support for it anymore.

Super Mario

Add login box below header? - Super Mario

Add login box below header?

by BigDrago » Sat Apr 16, 2011 1:01 pm

Hello.

Do you know how to add a loginbox?

I tried, but it don't look like the rest of the design.
BigDrago
Registered User
Posts: 363
Joined: Fri Dec 10, 2004 5:16 pm
Location: Norway
Contact:

Re: Add login box below header?

by _Vinny_ » Sat Apr 16, 2011 1:49 pm

Open: styles/super_mario/template/overall_header
Find:

Code: Select all

<a name="start_here"></a

Before add:

Code: Select all

<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
    <
form method="post" action="{S_LOGIN_ACTION}" class="headerspace">
    <
h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED -->&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></h3>
        <
fieldset class="quick-login">
            <
label for="username">{L_USERNAME}:</label>&nbsp;<input type="text" name="username" id="username" size="10" class="inputbox" title="{L_USERNAME}" />
            <
label for="password">{L_PASSWORD}:</label>&nbsp;<input type="password" name="password" id="password" size="10" class="inputbox" title="{L_PASSWORD}" />
            <!-- IF 
S_AUTOLOGIN_ENABLED -->
                | <
label for="autologin">{L_LOG_ME_IN} <input type="checkbox" name="autologin" id="autologin" /></label>
            <!-- ENDIF -->
            <
input type="submit" name="login" value="{L_LOGIN}" class="button2" />
            {
S_LOGIN_REDIRECT}
        </
fieldset>
    </
form>
<!-- ENDIF --> 
User avatar
_Vinny_
Style Customisations
Style Customisations
Posts: 8799
Joined: Tue Aug 11, 2009 12:45 am
Location: Brazil
Name: Marcus Vinicius
Contact:

Re: Add login box below header?

by BigDrago » Sat Apr 16, 2011 4:12 pm

Hmmmm, that one was messy :)

link removed
BigDrago
Registered User
Posts: 363
Joined: Fri Dec 10, 2004 5:16 pm
Location: Norway
Contact:

Re: Add login box below header?

by BigDrago » Sat Apr 16, 2011 11:14 pm

Didn't work.

I'm trying with this, but I don't get any colours in it.

Code: Select all

   <!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->

      <form method="post" action="{S_LOGIN_ACTION}">

      <table class="header" width="100%" cellspacing="1">
      <tr>
         <td class="topiclist"><h4><a href="{U_LOGIN_LOGOUT}" class="cattitle">{L_LOGIN_LOGOUT}</a></h4></td>
      </tr>
      <tr>
         <td class="row1" align="center"><span class="genmed">{L_USERNAME}:</span> <input class="post" type="text" name="username" size="10" />&nbsp; <span class="genmed">{L_PASSWORD}:</span> <input class="post" type="password" name="password" size="10" /><!-- IF S_AUTOLOGIN_ENABLED -->&nbsp; <span class="gensmall">{L_LOG_ME_IN}</span> <input type="checkbox" class="radio" name="autologin" /><!-- ENDIF -->&nbsp; <input type="submit" class="btnmain" name="login" value="{L_LOGIN}" /></td>
      </tr>
      </table>
      {S_LOGIN_REDIRECT}
      </form>
<span class="corners-bottom"><span></span></span></div>
   <!-- ENDIF -->
BigDrago
Registered User
Posts: 363
Joined: Fri Dec 10, 2004 5:16 pm
Location: Norway
Contact:

Re: Add login box below header?

by BigDrago » Sun Apr 17, 2011 8:40 pm

I'm using this code now, and it seem to work a little bit...
But I want it to blend more in with the style.

links removed

Code: Select all

      <!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->

      <form action="{S_LOGIN_ACTION}" method="post">

      <div class="panel">
         <div class="inner"><span class="corners-top"><span></span></span>

         <div class="content">
            

            <fieldset class="fields1">
            <dl>
               <dt>
               <label for="username">{L_USERNAME}:</label>
               <dd><input type="text" tabindex="1" name="username" id="username" size="25" value="{USERNAME}" class="inputbox autowidth" />
               
               
               <label for="password">{L_PASSWORD}:</label>
               <input type="password" tabindex="2" id="password" name="password" size="25" class="inputbox autowidth" />
               
               <!-- IF S_AUTOLOGIN_ENABLED -->&nbsp; <span class="gensmall">{L_LOG_ME_IN}</span> <input type="checkbox" class="radio" name="autologin" /><!-- ENDIF -->
               
               <input type="submit" name="login" tabindex="5" value="{L_LOGIN}" class="button1" /></dd>
               </dt>
            </dl>
            {S_LOGIN_REDIRECT}
            </fieldset>
         </div>

         <span class="corners-bottom"><span></span></span></div>
      </div>

      </form>

   <!-- ENDIF -->
BigDrago
Registered User
Posts: 363
Joined: Fri Dec 10, 2004 5:16 pm
Location: Norway
Contact:

Re: Add login box below header?

by _Vinny_ » Tue Apr 19, 2011 8:18 pm

So you could do?
User avatar
_Vinny_
Style Customisations
Style Customisations
Posts: 8799
Joined: Tue Aug 11, 2009 12:45 am
Location: Brazil
Name: Marcus Vinicius
Contact:

Re: Add login box below header?

by BigDrago » Tue Apr 19, 2011 8:22 pm

This one did it

Code: Select all

    <!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
       <form method="post" action="{S_LOGIN_ACTION}" class="headerspace">
          <fieldset class="quick-login">
    <div class="forumbg">
          <div class="inner"><span class="corners-top"><span></span></span>
          <table class="table1" cellspacing="1"><thead><tr>
             <th class="name"><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED -->&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></th></tr></thead>
             <tbody><tr class="bg1"><td>
             <label for="username">{L_USERNAME}:</label>&nbsp;<input type="text" name="username" id="username" size="20" class="inputbox" title="{L_USERNAME}" />
             <label for="password">{L_PASSWORD}:</label>&nbsp;<input type="password" name="password" id="password" size="20" class="inputbox" title="{L_PASSWORD}" />
             <!-- IF S_AUTOLOGIN_ENABLED -->
                | <label for="autologin">{L_LOG_ME_IN} <input type="checkbox" name="autologin" id="autologin" /></label>
             <!-- ENDIF -->
             <input type="submit" name="login" value="{L_LOGIN}" class="button2" />
             {S_LOGIN_REDIRECT}
             </tr></tbody></table>
       <span class="corners-bottom"><span></span></span></div>
    </div>   
          </fieldset>
       </form>
    <!-- ENDIF -->
BigDrago
Registered User
Posts: 363
Joined: Fri Dec 10, 2004 5:16 pm
Location: Norway
Contact:

Re: Add login box below header?

by _Vinny_ » Tue Apr 19, 2011 8:35 pm

But that's the way you want? Need some more help?
User avatar
_Vinny_
Style Customisations
Style Customisations
Posts: 8799
Joined: Tue Aug 11, 2009 12:45 am
Location: Brazil
Name: Marcus Vinicius
Contact: