Print Page | Close Window

Duplicate Quick Login?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=24952
Printed Date: 29 March 2026 at 2:53pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Duplicate Quick Login?
Posted By: Tammi
Subject: Duplicate Quick Login?
Date Posted: 05 December 2007 at 10:14pm
I'm building my entire site in .asp, and have integrated the forum with the site design, but I'd like to have the quick login form also appear at the top of my home page.

Does anyone know what snippets of code from the default.asp file I need to copy over to my homepage to make this work?

I've found this so far:


<%

'If the user has not logged in (guest user ID = 2) then show them a quick login form
If lngLoggedInUserID = 2 AND blnWindowsAuthentication = False AND (blnMemberAPI = False OR blnMemberAPIDisableAccountControl = False) Then
   
    Response.Write(" <td align=""right"" class=""smText"">"  & _
    vbCrLf & "  <form method=""post"" name=""frmLogin"" id=""frmLogin"" action=""login_user.asp" & strQsSID1 & """>" & strTxtQuickLogin & _
    vbCrLf & "   <input type=""text"" size=""10"" name=""name"" id=""name"" style=""font-size: 10px;"" tabindex=""1"" />" & _
    vbCrLf & "   <input type=""password"" size=""10"" name=""password"" id=""password"" style=""font-size: 10px;"" tabindex=""2"" />" & _
    vbCrLf & "   <input type=""hidden"" name=""NS"" id=""NS"" value=""1"" />" & _
    vbCrLf & "   <input type=""hidden"" name=""returnURL"" id=""returnURL"" value=""returnURL=default.asp"" />" & _
    vbCrLf & "   <input type=""submit"" value=""" & strTxtGo & """ style=""font-size: 10px;"" tabindex=""3"" />" & _
    vbCrLf & "  </form>" & _
    vbCrLf & " </td>")   
   
End If

Response.Write(vbCrLf & " </tr>")


 %>




Replies:
Posted By: MadDog
Date Posted: 06 December 2007 at 12:06am
Congrats you found it...

-------------
http://www.iportalx.net" rel="nofollow">


Posted By: Tammi
Date Posted: 06 December 2007 at 8:03pm
Thanks. 

I guess what I mean to say is that while the code above is what does the quick login form creation, simply cutting and pasting this into an entirely separate web page won't work.  In both Firefox and IE, the form just doesn't appear on the browser.  I'm guessing there are either other includes I need that I'm leaving out, or maybe some other bits of code that are meant to define what things like blnWindowsAuthentication and lngLoggedInUserID mean...?  


Posted By: StarDust
Date Posted: 07 December 2007 at 2:19am
You need to remove following lines from the snippet.

Response.Write(" <td align=""right"" class=""smText"">"  & _


AND

vbCrLf & " </td>")



AND

Response.Write(vbCrLf & " </tr>")




After this modify this line:
vbCrLf & "  </form>" & _


into this
vbCrLf & "  </form>"





-------------
http://board.ebizbd.net/">Tips, mods and skins for WWF v9.x


Posted By: mirzam
Date Posted: 28 February 2009 at 8:06pm
I've added this code to my site, and the common file, but still can't make it work?
The forum is located in www.domain.com/forum/default, while the main page is on
www.domain.com/default.

I've used virutal path, and lm not getting any errors. Can anybody help? The site www.desi.no


Posted By: Scotty32
Date Posted: 01 March 2009 at 6:13pm
did you alter the path of the page the forum is submitted to?

vbCrLf & "  <form method=""post"" name=""frmLogin"" id=""frmLogin"" action=""login_user.asp" & strQsSID1 & """>" & strTxtQuickLogin & _



-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: mirzam
Date Posted: 01 March 2009 at 9:40pm

Hi Scotty, i'm more interersted in knowing if the user has logged in or not accross the website. Yes i have changed the subpit path. 

What i need to know is if the users has logged in accross the website, how can i get the session and userid ?



Posted By: Scotty32
Date Posted: 01 March 2009 at 10:41pm
Have a look at my http://www.s2h.co.uk/wwf/tips/intergration/member-only-pages.asp" rel="nofollow - Member-Only Pages tutorial, it explains how to secure pages outside of the forum from visitors not logged in.

the settings from Web Wiz are:

strUsername  = the username of the visitor (Guest if not logged in)
lngLoggedInUserID  = the ID of the user, Default Admin is 1, Guest is 2, rest is people who signed up
intGroupID  = is the ID of the group the user is part of, again 1 is Admin, 2 is Guest


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net