Author |
Topic |
|
Astralis
Senior Member
USA
1218 Posts |
Posted - 06 March 2005 : 16:08:27
|
Okay, I've installed the universal login and placed the code on the page that needs secured as the instructions claim. But, the problem is the content that is being secured still displays on the screen below the login information. Am I missing something?
This is on the page that needs secured:
<!--#INCLUDE VIRTUAL="forum/inc_login.asp"-->
<!--#INCLUDE VIRTUAL="forum/config.asp"-->
<!--#INCLUDE VIRTUAL="forum/inc_sha256.asp"-->
<!--#INCLUDE VIRTUAL="forum/inc_func_common.asp"-->
<!--#INCLUDE VIRTUAL="forum/inc_header.asp"-->
But, the login details exist at the top twice, once from inc_login and once from inc_header.
Another issue is when I login with the information at the top, it correctly logs me into the inc_header but inc_login says I'm not logged in. All the while the content that's supposed to be secured is displayed below this regardless if I'm logged in or not.
|
|
Astralis
Senior Member
USA
1218 Posts |
Posted - 06 March 2005 : 18:50:17
|
Okay, I found this and added:
if strDBNTUserName = "" then
Err_Msg = "<li>You must be logged in to view the Members List</li>"
Response.Write "<table width=""100%"" border=""0"">" _
& "<tr>" _
& "<td>" & _
getCurrentIcon(strIconFolderOpen,"","") & " <a href=""default.asp"">All Forums</a><br />" & _
getCurrentIcon(strIconBar,"","") & getCurrentIcon(strIconFolderOpenTopic,"","") & " Member Information</td>" _
& "</tr>" _
& "</table>" _
& "<p class=""hfs hlfc c"">There Was A Problem!</p>" _
& "<p class=""hlfc c"">You must be logged in to view this page</p>" _
& "<p class=""c""><a href=""JavaScript:history.go(-1)"">Back to Forum</a></p>" _
& "<br />"
Call WriteFooter
Response.End
end if
Now that works. A couple of issues:
1) I'm still having problems with the login forms. Both the universal and regular login form are showing up on the same page. I login on the universal form and it updates the regular form - the universal form doesn't update.
2) I want to be able to only permit certain members to be able to login. I will need to add a new column to the members table. Where to insert this query and relate it to the universal login? |
|
|
Astralis
Senior Member
USA
1218 Posts |
Posted - 06 March 2005 : 19:30:39
|
Has anyone ever gotten the Universal Login to work? Would you mind sharing your files please?
I don't think the universal login mod was ever completed. For some reason, it's including the inc_header and placing two forms. I can't get the mod form to refresh and have no clue what needs deleted from inc_header. There must be a file that someone has made that works better than inc_header. I used inc_header_short.asp but it didn't help. |
|
|
serritzlev
Junior Member
Denmark
291 Posts |
Posted - 07 March 2005 : 02:56:45
|
Yes ofcourse i have done that but it is not @toms mod i have uset to that but my owen write to my pages, and yesterday i have made one the is a pupups to login and logout but not uploade this to my host yet.
Fore long time ago i have ask here to a code to logout in this forums or there have not ben any anser to that quest, so i have to rewrite my header so the login boxs is ben a sub call i can call from all pages if the sub is add to the func_common or again this is include or the config.asp to the page we can call it from that page, but i have done chage to the icon files or my config, but it have ben another project where i ca use my skin to files outside the forumsfolder.
So sorry i can help you white our truble,only lets you now i have done it. |
|
|
|
Roger Fredriksson
Average Member
Sweden
556 Posts |
Posted - 08 March 2005 : 11:39:34
|
Astralis, i´m struggling with the same problem as you do. I´ll share my solution as soon as the problem is solved. As I understand it you have something like this too: http://avgifter.com/forum/login_universal.asp What is my next step? |
rf/www.avgifter.com |
Edited by - Roger Fredriksson on 08 March 2005 11:41:41 |
|
|
snowsurfer
New Member
64 Posts |
Posted - 10 March 2005 : 00:23:33
|
I am having an issue with this. I have both logins showing up, which I am ok with, however the univeral mod doesnt work to log me in. It says the user name and password are incorrect, yet if I login through the header it logs me in |
|
|
snowsurfer
New Member
64 Posts |
Posted - 10 March 2005 : 01:12:15
|
I got mine working, let me know if you want the info |
|
|
Roger Fredriksson
Average Member
Sweden
556 Posts |
Posted - 10 March 2005 : 05:05:14
|
I got login-step working too, (username: hellan password: pellan) and wil continue to next step which is to secure protected pages. I am going to use lines abowe from Astralis. I would very much like to see your solution of the problem, is it possible to download the files? |
rf/www.avgifter.com |
Edited by - Roger Fredriksson on 10 March 2005 05:06:21 |
|
|
NiteOwl
Junior Member
Canada
403 Posts |
Posted - 10 March 2005 : 08:39:00
|
snowsurfer, I would like the info, I am still struggling.
|
-=NiteOwl=-
|
|
|
Roger Fredriksson
Average Member
Sweden
556 Posts |
Posted - 10 March 2005 : 11:59:40
|
NiteOwl, you can find my solution for login here: http://www.avgifter.com/pm/universal.zip Please note that that I lack the skill to do it professionally and I appreciate all kind of comments on my attemt. I feel a bit uncomfortable with my brutal method - just ' lines until it works - but quit impressed that I seem to have solved a problem. |
rf/www.avgifter.com |
Edited by - Roger Fredriksson on 10 March 2005 12:03:19 |
|
|
NiteOwl
Junior Member
Canada
403 Posts |
Posted - 10 March 2005 : 20:34:46
|
cool thanks:
So the login_universal.asp is the intended default file for the site?
|
-=NiteOwl=-
|
|
|
snowsurfer
New Member
64 Posts |
Posted - 10 March 2005 : 23:12:16
|
You can see mine almost working all the way at http://www.norcalmotocross.com/z.asp?ID=55
the username and password is test test
The piece that I am trying to get now is to pass the username along with the comment on the place to ride. I cant seem to get it to work. I sure wish I knen what I was doing. |
Edited by - snowsurfer on 10 March 2005 23:24:27 |
|
|
snowsurfer
New Member
64 Posts |
|
Roger Fredriksson
Average Member
Sweden
556 Posts |
Posted - 11 March 2005 : 04:02:19
|
NiteOwl, yes I am going to replace my present loginpage in lower left corner on avgifter.com with login_universal after modifying its look. I forgot to tell you that I started with downloading universal login mod made by tomas?? and image-mod for swedish and english. |
rf/www.avgifter.com |
|
|
NiteOwl
Junior Member
Canada
403 Posts |
Posted - 11 March 2005 : 22:42:16
|
OK, this is starting to get to me: Here is my setup, perhaps its all impossible for me?
I have a website here: www.bcfmwu.com/members/members_test2.asp I have a forum here: www.bcfmwu-forum.com/ (no forum folder)
I can not merge the forum with the website donmain, however I do want to secure the members_test2.asp page to prevent access unless a user has logged in using the forum database. I have created a directory here called forum: www.bcfmwu.com/members/forum and placed all these UniversalLogin files there:
inc_login.asp button_login.gif button_logout.asp button_login2.gif button_logout2.asp button_login3.gif button_logout3.asp loginshot.gif
I receive this error: Oops! There Was A Problem! Please login to submit a review Back to Previous Page
|
-=NiteOwl=-
|
Edited by - NiteOwl on 11 March 2005 22:43:59 |
|
|
|
Topic |
|