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)
 Status of viewing members ICQ field
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

endomorph
Junior Member

United Kingdom
128 Posts

Posted - 25 February 2006 :  11:44:45  Show Profile  Reply with Quote
I have been trying to wrap by head round this for a few days but I cannot get what I want.

I want to check if the person viewing a forum/topic is a member and has 'something' in their ICQ field.

If not, they get an error message.

Which variable is the "viewing members name/ID" variable ?

Ayy ideas Podge ? Oh great and wonderful guru ?<

Need help with your Snitz ? Most Snitz & ASP custom coding undertaken. Email for info | Search Engine Optimisation

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 27 February 2006 :  04:35:31  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message  Reply with Quote
This should give you an idea:
If mLev > 0 Then
	strSql = "SELECT M_ICQ FROM " & strMemberTablePrefix & "MEMBERS WHERE MEMBER_ID = " & memberID
	Set rsMemberICQ = my_conn.Execute(strSql)
	If Not rsMemberICQ.EOF Then
		strMemberICQ = rsMemberICQ("M_ICQ")
	End If
	rsMemberICQ.Close
	Set rsMemberICQ = Nothing
	If trim(strMemberICQ) = "" Then
		'No ICQ value -> display error here
	Else
		'Do something else here
	End If
Else
	'User is not logged in, display error here
End If


Let me know if you have any questions.<

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

endomorph
Junior Member

United Kingdom
128 Posts

Posted - 27 February 2006 :  09:16:52  Show Profile  Reply with Quote
Oneway,

Thanks for that. I managed to sort it in the end.

I used -


dim rspaid
dim paidmember
dim paidcheck
dim strSqlcheck

if paidmember > 1 then
'# Do nothing
else
'# Check if paid member	
set rspaid = server.CreateObject("adodb.recordset")
strSqlcheck = "SELECT M_ICQ FROM " & strMemberTablePrefix & "MEMBERS "
strSqlcheck = strSqlcheck & " WHERE M_NAME = '" & strDBNTUserName & "'"
rspaid.Open strSqlcheck, my_Conn
paidcheck = rspaid("M_ICQ")

if trim(paidcheck) = "Paid" then 
paidmember = 1
else paidmember = 0
end if
rspaid.Close
set rspaid = nothing
end if


Seems to work fine but any comments on the above would be appreciated.<

Need help with your Snitz ? Most Snitz & ASP custom coding undertaken. Email for info | Search Engine Optimisation

Edited by - endomorph on 27 February 2006 09:23:50
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07