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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 User check ?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Webbo
Average Member

United Kingdom
982 Posts

Posted - 13 February 2010 :  10:41:14  Show Profile  Visit Webbo's Homepage
If I wanted to make a check to see if a user is the same as that of the member's profile that they want to view, how do I write the check?

I know that by writing:

if strDBNTUserName = "" then
Response.Write " "
else

...prevents anyone not logged in from viewing it, and someone who is logged in can,
likewise using mlev = , allows certain member levels the ablitiy to view

but what I'm trying to achieve is that I only want the logged in member to be able to see it in their profile


...if that makes sense

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 15 February 2010 :  07:40:04  Show Profile
You'd need to edit lines 143 and 144 of pop_profile.asp which currently look like the following:
if strDBNTUserName = "" then
	Err_Msg = "You must be logged in to view a Member's Profile"
Change the first line to compare the ID of the member attempting to view the profile, which is held in the MemberID variable, with that of the member whose profile they are attempting to view, which is held in the ppMember_ID variable. Then change the second line to whatever you want your new error message to be. The 2 lines should now look like the following:
if MemberID <> ppMember_ID then
	Err_Msg = "Your error message here"

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

Webbo
Average Member

United Kingdom
982 Posts

Posted - 17 February 2010 :  18:06:08  Show Profile  Visit Webbo's Homepage
Thanks Shaggy
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 18 February 2010 :  05:42:33  Show Profile
You're welcome, Webbo


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
  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.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07