corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » ASP Help


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author ASP Help
Jodi_the_g
Member

Registered: 7th Aug 01
Location: Washington D.C
User status: Offline
17th Oct 08 at 21:51   View User's Profile U2U Member Reply With Quote

I need the following file to load up

<!--#include file="includes/login_form_inc.asp" -->

when the user is not logged in can get the logged out bit to work but not the login bit.

code:

<%
'Display the other common buttons

'If the user has logged in then the Logged In User ID number will not be 0 and not 2 for the guest account
If lngLoggedInUserID <> 0 AND lngLoggedInUserID <> 2 Then


'Don't display logout if windows authentication is enabled or member API
If blnWindowsAuthentication = False AND (blnMemberAPIDisableAccountControl = False OR strMemberAPILogoutURL <> "") Then
Response.Write ("&nbsp;&nbsp;<a href=""log_off_user.asp" & strQsSID1 & """>" & strTxtLogOff & " [" & strLoggedInUsername & "]</a>")
End If

'Else if the member API is enabled and there are links to the websites on registration and login pages display the links to them
ElseIf blnMemberAPI AND (strMemberAPIRegistrationURL <> "" OR strMemberAPILoginURL <> "") Then

If strMemberAPIRegistrationURL <> "" Then Response.Write ("&nbsp;&nbsp;<img src=""" & strImagePath & "register." & strForumImageType & """ alt=""" & strTxtRegister & """ title=""" & strTxtRegister & """ style=""vertical-align: text-bottom"" /> <a href=""" & strMemberAPIRegistrationURL & """ rel=""nofollow"">" & strTxtRegister & "</a>")
If strMemberAPILoginURL <> "" Then
<!--#include file="includes/login_form_inc.asp" -->
end if
'Else the user is not logged (Don't display logout if windows authentication is enabled or member API)
ElseIf blnWindowsAuthentication = False AND (blnMemberAPI = False OR blnMemberAPIDisableAccountControl = False) Then
<!--#include file="includes/login_form_inc.asp" -->
End If
%>

Jodi_the_g
Member

Registered: 7th Aug 01
Location: Washington D.C
User status: Offline
18th Oct 08 at 18:06   View User's Profile U2U Member Reply With Quote

Pretty much tried everything I can think of now.

But still can not get to display.

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
ASP websites, need some advice... mestonian General Chat 0 131
10th Oct 03 at 23:26
by mestonian
 
website help :( Drew Geek Day 18 1082
30th Nov 04 at 21:26
by Drew
 
ANYONE GOOD at ASP? Andy GSi General Chat 4 316
23rd Feb 05 at 14:10
by Joff
 
Asp.net > Php? Paul_J Geek Day 9 225
18th Nov 07 at 16:38
by chumbly_warner
 

Corsa Sport » Message Board » Off Day » Geek Day » ASP Help 28 database queries in 0.0088229 seconds