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)
 View sig options for members
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

bobby131313
Senior Member

USA
1163 Posts

Posted - 26 February 2009 :  08:46:21  Show Profile  Visit bobby131313's Homepage  Reply with Quote
I agree, a picture is worth a thousand words. Teach a person to fish....<

Switch the order of your title tags
Go to Top of Page

garyrobar
New Member

Canada
90 Posts

Posted - 28 February 2009 :  17:51:43  Show Profile  Visit garyrobar's Homepage  Reply with Quote
sounds like you want to monitor the signatures of your members, and so thought you might find this useful...It's a quick view admin page I build to display members WITH profiles that include hyperlinks. It would be easy to mod for members with links in their signatures.

<%
response.write "<table cellpadding=""0"" cellspacing=""0""><tr><td>" & theMessageToShowNow & "</td></tr></table>"
%>

			
			<p>This table shows the contents of the url fields in the user profiles.</p> 		
			<table cellpadding="3" class="stattable" style="border-collapse: collapse;">
				<tr bgcolor="#e0e0e0">
					<td align="center">Member ID</td>
					<td align="center">Posts</td>
					<td align="center">Member Name</td>
					<td align="center">IP Address</td>
					<td align="center">Email</td>
					<td align="center">Links URLs</td>
					<td align="center">Signature URLs</td>
				</tr>
				<%	
dim gfn, grs, gSQL


Set gfn = Server.CreateObject("ADODB.Connection")
gfn.Open strdbpathforum
Set grs = Server.CreateObject("ADODB.RecordSet")

gSQL = "select * from forum_members where (m_homepage <> null and m_homepage <> '') or (m_link1 <> null and m_link1 <> '') or (m_link2 <> null and m_link2 <> '')"

grs.Open gSQL, gfn, adOpenStatic

if grs.eof then
	response.write "<tr><td> -na- </td><td>0</td><td>0</td></tr>"
else

	do while not grs.eof
	i=i+1
	
		response.write "<tr><td><a href=""_remove_links.asp?id=" & grs("member_id") & """>" & grs("member_id") & "</a></td><td>" & grs("m_posts") & "</td><td>" & grs("m_name") & "</td><td>" & grs("m_ip") & "</td>"
		response.write "<td>" & grs("m_email") & "</td><td>"
		
		if grs("m_homepage") = "" or isnull(grs("m_homepage")) or grs("m_homepage") = " " then
		else
			response.write "<strong>homepage:</strong> " & grs("m_homepage") & ""
		end if
		
		if grs("m_link1") = "" or isnull(grs("m_link1")) or grs("m_link1") = " " then
		else
			response.write "<br /><strong>Link 1:</strong> " & grs("m_link1") & ""
		end if

		if grs("m_link2") = "" or isnull(grs("m_link2")) or grs("m_link2") = " " then
		else	
			response.write "<br /><strong>Link 2:</strong> " & grs("m_link2") & ""
		end if
		
		response.write "</td><td>" & grs("m_sig") & "</td></tr>"
			
		grs.movenext
	
	loop
end if

grs.Close 
Set grs = Nothing 
gfn.Close 
Set gfn= Nothing
Set gSQL = Nothing
%>				
</table>		
				

of course it's not the complete code, but it's what you need to dump a list of members with hyperlinks in their profile.

SEO For Snitz Forum

Edited by - garyrobar on 28 February 2009 17:52:09
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 01 March 2009 :  00:21:35  Show Profile  Reply with Quote
quote:
	
		response.write "<tr><td><a href=""_remove_links.asp?id=" & grs("member_id") & """>" & grs("member_id") & "</a></td><td>" & grs("m_posts") & "</td><td>" & grs("m_name") & "</td><td>" & grs("m_ip") & "</td>"



Hey Gary, you have the code for your referenced link?
Go to Top of Page

garyrobar
New Member

Canada
90 Posts

Posted - 18 June 2009 :  08:00:08  Show Profile  Visit garyrobar's Homepage  Reply with Quote
quote:
Originally posted by Carefree

Hey Gary, you have the code for your referenced link?



Yah, it's real simple/basic, and there is probably a better way, but here ya go...

[word of warning...this code is susceptible to SQL injection if available outside of your secure admin area. I have not accommodated for it, since this was my own little app...not available to public users of my site.]


<%	
dim gfn, grs, gSQL, m_id

'---get the id out of the querystring
m_id = request.querystring("id")


'---check for null id
'---check for empty id
'---check for val can't be converted to integer
if (isnull(m_id) or m_id = "") or isnumeric(m_id) = 0 then

	'---bad value passed, redirect to error page
    response.redirect "URL OF YOUR CHOICE---when error happens"
else

	'---convert string to integer
	m_id = cInt(m_id)

	'---open the connection
	Set gfn = Server.CreateObject("ADODB.Connection")
	gfn.Open strdbpathforum
	
	
	'---clear out their spammy crap
	upd = "update forum_members set m_homepage = null, m_link1 = null, m_link2 = null where member_id = " & m_id
	gfn.execute(upd)
	
	'---back to the list
	response.redirect "monitor_member_links.asp?done=1"
	
	
	'---close connections
	gfn.Close 
	Set gfn= Nothing
	Set upd = Nothing

end if
%>




SEO For Snitz Forum
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 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.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.07