Creating a Login template?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thetakerfan
    Senior Member
    • Jun 2000
    • 1095

    Creating a Login template?

    I created a template for a login page that was basically the same page you get when you try to post something without being logged in, error_nopermission.
    But I don't know how to call it from anywhere. I tried adding
    Code:
    $loginuser = gettemplate("loginuser",0);
    to index.php and then trying index.php?action=loginuser, but that didn't work.
    Can anyone tell me how to do this?
  • ukliam
    Senior Member
    • Apr 2000
    • 171

    #2
    /me would also like to know how to call templates.

    Anyone?

    Comment

    • Mike Sullivan
      Former vBulletin Developer
      • Apr 2000
      • 13327
      • 3.6.x

      #3
      add this just before an if ($action=="blah") { line:

      Code:
      if ($action=="YOURACTION") {
      	eval("echo dovars(\"".gettemplate("YOURTEMPLATE")."\");");
      }
      Then call action=YOURACTION

      Comment

      • ukliam
        Senior Member
        • Apr 2000
        • 171

        #4
        Thanks thats what I was after

        Comment

        • ukliam
          Senior Member
          • Apr 2000
          • 171

          #5
          Cool

          Thanks, the login link works fine now


          Time to go to work, only been here 2 days and u got me hooked already.

          Comment

          • thetakerfan
            Senior Member
            • Jun 2000
            • 1095

            #6
            http://cgi-http://cgi-bin.spaceports...tion=loginuser

            Wow, this is just SOOOOOO much better than UBB, and I hope everyone over there gets the point

            [Edited by thetakerfan on 07-18-2000 at 03:44 PM]

            Comment

            • thetakerfan
              Senior Member
              • Jun 2000
              • 1095

              #7
              I'm having a problem with mine, after the name and PW are entered, it just redirects back to the login page, and the URL in the address bar as the username and pass in it, although the pass is encrypted.

              Comment

              • ukliam
                Senior Member
                • Apr 2000
                • 171

                #8
                Yep I had that problem I will look through the code I used and post it later.

                Mine now redirects to the login_redirect template then the main page, is that what you are after?

                Comment

                • thetakerfan
                  Senior Member
                  • Jun 2000
                  • 1095

                  #9
                  yes, but I couldn't figure out how to do it, I tried a couple things but none worked
                  the hidden "redirect" value in the HTML that is printed is blank, there is no value
                  in the template it has $url, but nothing is created.

                  Comment

                  • thetakerfan
                    Senior Member
                    • Jun 2000
                    • 1095

                    #10
                    anyone?
                    ukliam, can you help me out?

                    Comment

                    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                    Working...