View Full Version : Creating a Login template?
thetakerfan
Sun 16th Jul '00, 8:37pm
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
$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
Mon 17th Jul '00, 9:58pm
/me would also like to know how to call templates.
Anyone?
Mike Sullivan
Tue 18th Jul '00, 12:12am
add this just before an if ($action=="blah") { line:
if ($action=="YOURACTION") {
eval("echo dovars(\"".gettemplate("YOURTEMPLATE")."\");");
}
Then call action=YOURACTION
ukliam
Tue 18th Jul '00, 12:13am
Thanks thats what I was after :)
ukliam
Tue 18th Jul '00, 2:51am
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. :)
thetakerfan
Tue 18th Jul '00, 4:30pm
http://cgi-http://cgi-bin.spaceports.com/~twtf/VBulletin/index.php?action=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]
thetakerfan
Tue 18th Jul '00, 4:39pm
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.
ukliam
Wed 19th Jul '00, 8:42am
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?
thetakerfan
Wed 19th Jul '00, 3:48pm
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.
thetakerfan
Tue 1st Aug '00, 4:46pm
anyone?
ukliam, can you help me out?
vBulletin® v3.8.0 Release Candidate 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.