0
Welcome Guest! Login
0 items Join Now

Can login module position change after user has logged in.

  • Can login module position change after user has logged in.

    Posted 18 years 2 months ago
    • I am using Vortex template, on the Top position I have the login module, I want it to setup up so when a user logs in the login module to be displayed on left position instead of top, can this be done.
    • VirtueShop
    • Matthew's Avatar
    • Matthew
    • Hero Rocketeer
    • Posts: 299
    • Thanks: 0

    Re: Can login module position change after user has logged in.

    Posted 18 years 2 months ago
    • The easiest way to do this that I can think of is to have two login modules.

      One of them for "public" access, and the other for registered. That way you could have them in different locations.

      If you go that route, the only other thing you would need to do would be to edit the template so that the top module does not get loaded if a user is logged in.
      <?php
      if($my->gid){
                //do whatever you want to do for a logged in user
           }
           else
           {
                //user isn't logged in, so load module as usual
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mosLoadModules('top', -1);
           }
      ?>

      Please note that I have not played with Vortex yet, so 'top' might not be the correct module location. Also note that this code should replace the existing PHP code inside the div where the login is displayed.
    • www.gofftech.com Web Design
  • Re: Can login module position change after user has logged in.

    Posted 18 years 2 months ago

Time to create page: 0.051 seconds