Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Detecting logged in users....

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
bobby131313 Posted - 28 March 2011 : 14:55:13
Has anyone ever put together a "bare minimum" file that could be included on non-forum pages just to detect if the visitor is a logged in forum member? Just enough to check mlev I suppose?
5   L A T E S T    R E P L I E S    (Newest First)
ruirib Posted - 15 August 2011 : 12:50:52
Cool. You're welcome .
bobby131313 Posted - 15 August 2011 : 12:27:11
Well, months and months later I've finally gotten around to testing this and it works like a charm. Thanks Rui.
ruirib Posted - 28 March 2011 : 17:34:27
Let me know if you have any issues.
bobby131313 Posted - 28 March 2011 : 17:26:43
Thanks Rui, I will give it a go this week.
ruirib Posted - 28 March 2011 : 15:19:32
I use this in a real website:


<!--#INCLUDE FILE="config.asp"-->
<!--#INCLUDE FILE="inc_sha256.asp"-->
<!--#INCLUDE FILE="inc_func_common.asp"-->


 'Get the MemberID from the forum login

set my_Conn = Server.CreateObject("ADODB.Connection")
 
my_Conn.Open strConnString


'copying stuff from inc_header.asp...

strDBNTUserName = Request.Cookies(strUniqueID & "User")("Name")

if trim(strDBNTUserName) <> "" and trim(Request.Cookies(strUniqueID & "User")("Pword")) <> "" then
  mLev = cLng(chkUser(strDBNTUserName, Request.Cookies(strUniqueID & "User")("Pword"),-1))
else
  MemberID = -1
  mLev = 0
end If

my_conn.Close
Set my_conn = Nothing


You will need cookies set to forum for this to work. You may also have to add the forum path to the includes.

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.07