Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Comments pages
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Jamiekin
Starting Member

24 Posts

Posted - 10 July 2004 :  12:35:17  Show Profile
Hi, I'm hoping to use Snitz as a way for registered members to write comments / reviews / that kinda stuff on my website..
However, I won't be using Snitz for the actual comments etc, it's not going into the snitz forum database. I just want the forum members to log into the forum and when they see the review page (which is elsewhere on the site), they are able to add a comment - if they aren't logged in, they can't.

How do I do that (just the checking to see if visitor has logged in the forum, display their name etc)?

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 12 July 2004 :  06:34:21  Show Profile
Don't know if it will quite suit your needs but have a look for the Guestbook Mod over at SnitzBitz; if nothing else it will get you on the right track and you can post back with any queries about enhancements, etc..


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Jamiekin
Starting Member

24 Posts

Posted - 15 July 2004 :  11:25:13  Show Profile
I'd prefer not to use the guestbook mod though.

All I need is to be shown (on a blank asp page) what includes I have to male that checks to see if a visitor has logged into the forum, and just a response.write of their name.. anyone help please?
Go to Top of Page

chumbawumba
Junior Member

United Kingdom
304 Posts

Posted - 15 July 2004 :  14:17:00  Show Profile
An easy way to do this is to add a couple of lines (shown in red below) to the chkUser function in inc_func_common:


	if rsCheck.BOF or rsCheck.EOF or not(ChkQuoteOk(fName)) or not(ChkQuoteOk(fPassword)) then
		MemberID = -1
		chkUser = 0 '##  Invalid Password
		if strDBNTUserName <> "" and chkCookie = 1 then
			Call ClearCookies()
			strDBNTUserName = ""
		end if		
	else
		MemberID = rsCheck("MEMBER_ID")
		
		if (rsCheck("MEMBER_ID") & "" = fAuthor & "") and (cLng(rsCheck("M_LEVEL")) <> 3) then 
			chkUser = 1 '## Author
		else
			select case cLng(rsCheck("M_LEVEL"))
				case 1
					chkUser = 2 '## Normal User
				case 2
					chkUser = 3 '## Moderator
				case 3
					chkUser = 4 '## Admin
				case else
					chkUser = cLng(rsCheck("M_LEVEL"))
			end select
		end if

	Session("svUser")=fName         'username
	Session("sviUserID")=MemberID        'id 	 

	end if



then, if they are logged you can use the values stored in the session vars on other pages.

you could also consider the site integration mod.
Go to Top of Page

Jamiekin
Starting Member

24 Posts

Posted - 16 July 2004 :  14:31:32  Show Profile
That is fantastic! Thanks
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07