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)
 Locked Members are shown
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

fredy
Starting Member

Switzerland
33 Posts

Posted - 09 August 2005 :  15:43:00  Show Profile  Visit fredy's Homepage  Send fredy a Yahoo! Message
Hi

I do have different locked members.
It is strange, that when I click on "Members" the locked ones are not shown, but if I click on a Letter in the Members Site, I can see the locked members.

Is there a solution ?

Thanks & best regards
Fredy

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 10 August 2005 :  04:44:27  Show Profile
Find the following on line 127 of members.asp and add the code in green:
if srchInitial = "1" then
	tmpSQL = "M_NAME LIKE '" & SearchName & "%'"
end if

whereSql = whereSql & tmpSql &")"
if mlev = 4 then
	whereSql = whereSql & " WHERE M_NAME <> 'n/a' "
else
	whereSql = whereSql & " WHERE M_STATUS = " & 1
end if
Although, I do seem to recall a discussion about this a while back that explained the logic of doing it the way it is done.


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

fredy
Starting Member

Switzerland
33 Posts

Posted - 11 August 2005 :  13:57:44  Show Profile  Visit fredy's Homepage  Send fredy a Yahoo! Message
Thanks, but now I get this error:

Microsoft JET Database Engine Fehler "80040e14'

Syntaxfehler (fehlender Operator) in Abfrageausdruck '(M_NAME LIKE 'B%') WHERE M_NAME <> 'n/a''.

/members.asp, line 234


Here the Code I changed:
whereSql = whereSql & tmpSql &")"
if mlev = 4 then
whereSql = whereSql & " WHERE M_NAME <> 'n/a' "
else
whereSql = whereSql & " WHERE M_STATUS = " & 1
end if
Session(strCookieURL & "where_Sql") = whereSql


In Line 234 I do have this code:
rs.open strSql & strSql2 & strSql3 & strSql4, my_Conn, adOpenStatic

Thanks
Fredy

Edited by - fredy on 11 August 2005 14:01:22
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 11 August 2005 :  13:59:56  Show Profile
Oop! Sorry Change the two occurences of WHERE in the code I posted in green above to AND.


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

fredy
Starting Member

Switzerland
33 Posts

Posted - 11 August 2005 :  14:03:31  Show Profile  Visit fredy's Homepage  Send fredy a Yahoo! Message
OK.
But now I do have the locked Members showing up again.
Here is, how the code looks now:

if mlev = 4 then
whereSql = whereSql & " AND M_NAME <> 'n/a' "
else
whereSql = whereSql & " AND M_STATUS = " & 1
end if
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 12 August 2005 :  04:58:45  Show Profile
Yes, as admin you will be able to view the locked members when viewing the full list and individual letters, should you ever need to unlock them. All other members, however, inclucing moderators, will not see the locked members at all.


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

fredy
Starting Member

Switzerland
33 Posts

Posted - 12 August 2005 :  15:08:46  Show Profile  Visit fredy's Homepage  Send fredy a Yahoo! Message
oops...that I forgot.
It works !!!

Thank you very much !
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 15 August 2005 :  05:06:04  Show Profile
You're welcome


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