Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Duplicate Quick Login?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Duplicate Quick Login?

 Post Reply Post Reply
Author
Tammi View Drop Down
Newbie
Newbie
Avatar

Joined: 30 October 2007
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tammi Quote  Post ReplyReply Direct Link To This Post Topic: Duplicate Quick Login?
    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>")


 %>

Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 06 December 2007 at 12:06am
Congrats you found it...
Back to Top
Tammi View Drop Down
Newbie
Newbie
Avatar

Joined: 30 October 2007
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tammi Quote  Post ReplyReply Direct Link To This Post 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...?  
Back to Top
StarDust View Drop Down
Senior Member
Senior Member


Joined: 14 May 2007
Location: Bangladesh
Status: Offline
Points: 310
Post Options Post Options   Thanks (0) Thanks(0)   Quote StarDust Quote  Post ReplyReply Direct Link To This Post 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>"



Back to Top
mirzam View Drop Down
Newbie
Newbie


Joined: 30 November 2008
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mirzam Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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 - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
mirzam View Drop Down
Newbie
Newbie


Joined: 30 November 2008
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mirzam Quote  Post ReplyReply Direct Link To This Post 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 ?

Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2009 at 10:41pm
Have a look at my 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 - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.