+ Reply to Thread
Results 1 to 10 of 10

Thread: Creating a Login template?

  1. #1
    Senior Member thetakerfan is on a distinguished road
    Join Date
    Jun 2000
    Posts
    1,097
    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?

  2. #2
    Senior Member ukliam has disabled reputation ukliam's Avatar
    Join Date
    Apr 2000
    Location
    London Baby!
    Age
    30
    Posts
    171
    /me would also like to know how to call templates.

    Anyone?

  3. #3
    Former vBulletin Developer Mike Sullivan will become famous soon enough Mike Sullivan's Avatar
    Join Date
    Apr 2000
    Location
    Regexia
    Age
    25
    Posts
    13,374
    Blog Entries
    7
    add this just before an if ($action=="blah") { line:

    Code:
    if ($action=="YOURACTION") {
    	eval("echo dovars(\"".gettemplate("YOURTEMPLATE")."\");");
    }
    Then call action=YOURACTION
    --Mike "Ed" Sullivan
    Former vBulletin Developer

    Twitter | Regexia (personal)

  4. #4
    Senior Member ukliam has disabled reputation ukliam's Avatar
    Join Date
    Apr 2000
    Location
    London Baby!
    Age
    30
    Posts
    171
    Thanks thats what I was after

  5. #5
    Senior Member ukliam has disabled reputation ukliam's Avatar
    Join Date
    Apr 2000
    Location
    London Baby!
    Age
    30
    Posts
    171

    Cool

    Thanks, the login link works fine now
    http://216.10.26.98/vb/member.php?action=memberlogin

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

  6. #6
    Senior Member thetakerfan is on a distinguished road
    Join Date
    Jun 2000
    Posts
    1,097
    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]

  7. #7
    Senior Member thetakerfan is on a distinguished road
    Join Date
    Jun 2000
    Posts
    1,097
    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.

  8. #8
    Senior Member ukliam has disabled reputation ukliam's Avatar
    Join Date
    Apr 2000
    Location
    London Baby!
    Age
    30
    Posts
    171
    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?

  9. #9
    Senior Member thetakerfan is on a distinguished road
    Join Date
    Jun 2000
    Posts
    1,097
    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.

  10. #10
    Senior Member thetakerfan is on a distinguished road
    Join Date
    Jun 2000
    Posts
    1,097
    anyone?
    ukliam, can you help me out?

+ Reply to Thread

Similar Threads

  1. Creating a new template
    By Bryan Ex in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 3
    Last Post: Mon 5th Apr '04, 12:03pm
  2. How Do I?: Creating The Must Login Screen:
    By Pezman in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 2
    Last Post: Tue 20th Aug '02, 5:18pm
  3. creating a forced login page
    By angelyssa in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 4
    Last Post: Fri 20th Jul '01, 7:22am

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts