The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Login Slider

View previous topic View next topic Go down

Solved Login Slider

Post by DarkGlow on August 29th 2012, 5:23 pm

Hi,

Topics are getting more and more numbers regarding login slider.

My question is completely simple. I already have my login slider on the forums and they work perfectly, however there's one minor problem.

- whenever someone logs in or uses it to login, it will still show up on top as a message to a new guest, yes it appears to registered users, groups and administrators as well (and ofc guests). My question is; how to ''hide'', ''close'', or at least ''edit'' it for registered users?

I'll be more specific; a guest comes to forums and notices the login slider, he clicks on it, registers and then logs in; it would still appear on the top-right of the forum, also, the same options appear after clicking on it; the register options and login bars. How to make them invisible or at least edit them for users who are already logged in?

I've seen and followed Nera's guide, however such parts aren't mentioned. Thank you.


Last edited by DarkGlow on August 30th 2012, 9:36 am; edited 1 time in total

DarkGlow
Forumember

Male Posts : 629
Reputation : 92
Language : English | Hebrew | Arabic
Location : Israel

Back to top Go down

Solved Re: Login Slider

Post by xDroiidx on August 30th 2012, 12:17 am

If you read closely on the tutorial, Nera explains how to hide the panel when logged in. Rideem3 posted the code already though

xDroiidx
Forumember

Posts : 95
Reputation : 2
Language : English

http://www.epicstep.forumotion.com

Back to top Go down

Solved Re: Login Slider

Post by DarkGlow on August 30th 2012, 1:31 am

Dude,

There are no such triggers in my template. If I have to create them, where should I exactly do that?

DarkGlow
Forumember

Male Posts : 629
Reputation : 92
Language : English | Hebrew | Arabic
Location : Israel

Back to top Go down

Solved Re: Login Slider

Post by xDroiidx on August 30th 2012, 3:40 am

Dude,

you know the HTML that nera told you to put in the Template under: <body> ?

PUT THIS ABOVE THE CODE:
Code:
<!-- BEGIN switch_user_logged_out -->

And this below the code
Code:
<!-- END switch_user_logged_out -->

like:
Code:

<!-- BEGIN switch_user_logged_out -->
      <!-- Login --><div id="toppanel">
          <div id="panel">
              <div class="content clearfix">
                <div class="left">
                    <h1>Welcome to xCoDeZz</h1>
                    <h2>The Home of CSS, Wii, And PSP Codes</h2> 
                    <p class="grey">Please Login or Register now! thank you</p>
                    <h2>Benefits of Registering?</h2>
                    <p class="grey">You will get unlimited access to the forums, You will get to see the codes section when ever you want, and you get to chat with other members, We try our best, posting codes, quick and fast, so that you can enjoy your experience here @ xCoDeZz</p>
                </div>
                <div class="left">
                    <center><h1>Already a Member? Login Below</h1></center>
        <form action="/login.forum" method="post">
        <table border="0" cellpadding="3" cellspacing="1">
        <tbody>
        <p>
                <label for="username">Username: </label>
                          <input type="text" name="username" /><br>
                <label for="lastname">Password: </label>
                          <input type="password" name="password"><br>
        </p>
        <tr align="center">
          <br>
        <td colspan="2">Log me on automatically each visit: <input name="autologin" checked="true" type="checkbox"></td>
        </tr>
       
        <td colspan="2"><input class="mainoption" name="login" value="Log in" type="submit"> <input name="redirect" type="hidden" value="/h1-redirect-page"></td>
          <a href="http://www.xcodezz.com/profile?mode=sendpassword">Forgot Your Password?</a>
        </tbody>
        </table>
        </form>
                </div>
                <div class="left right">
                      <h1>Not a member yet? Register!</h1>
            <form action="/register?agreed=true&amp;step=2" method="post">
                <p>
                <label for="username">Username: </label>
                          <input type="text" name="username" /><br>
                <label for="lastname">Password: </label>
                          <input type="password" name="password"><br>
                <label for="email">E-mail: </label>
                          <input type="text" name="email"><br><br>
                <input type="submit" name="submit" id="submit" value="Save" />  <input type="reset" />
                </p>
            </form>
                </div>
              </div>
          </div> <!-- /login -->
    <!-- The tab on top -->
          <div class="tab">
              <ul class="login">
                  <li class="left"> </li>
                  <li>Hello Guest!</li>
                <li class="sep">|</li>
                <li id="toggle">
                    <a id="open" class="open" href="#">Log In | Register</a>
                    <a id="close" style="display: none;" class="close" href="#">Close Panel</a>   
                </li>
                  <li class="right"> </li>
              </ul>
          </div> <!-- / top -->
     
        </div> <!--panel -->
          <!-- END switch_user_logged_out -->

solved?

xDroiidx
Forumember

Posts : 95
Reputation : 2
Language : English

http://www.epicstep.forumotion.com

Back to top Go down

Solved Re: Login Slider

Post by DarkGlow on August 30th 2012, 9:35 am

I've misunderstood that part. My apologies.

Thank you and solved.

DarkGlow
Forumember

Male Posts : 629
Reputation : 92
Language : English | Hebrew | Arabic
Location : Israel

Back to top Go down

Solved Re: Login Slider

Post by SLGray on August 30th 2012, 11:03 am

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35641
Reputation : 2374
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum