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/Code)
 Also Here
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

MYLE
Starting Member

New Zealand
21 Posts

Posted - 16 March 2004 :  15:08:55  Show Profile  Visit MYLE's Homepage  Send MYLE a Yahoo! Message
Couldn't find it but seen it like it so I wrote mine first mod

it read the ACTIVE_USERS Table and the AU_QUERYSTRING Field

it Will add Also here: user,user,user and you
or Also here: just you
to the folders tree of the forum

Add the Icon to the inc_iconfile.asp

Const StrIconMember = "icon_member.gif|15|15"



add this Function to inc_func_member.asp


Mark 2 Version
my user ask if they could click and see the other user profies

added

, " & strTablePrefix & "MEMBERS.MEMBER_ID "] to SQL
Temp =""
Anker = "<a href=" & chr(34) & "JavaScript:viewfull('pop_profile_short.asp?mode=display&id=" & objRS("MEMBER_ID") & "')" & chr(34) & ">"
can never get the """"""!!! right so i use the chr(34)
edited this line
User_line = User_line & Anker & objRS("M_NAME") & "</a> , "


or just replace the function

just check that there is the java pop window viewfull is there

Function Show_Active_User_Line(Where)
	Dim SQLLINE
	Dim User_Line
	SQLLINE = ""
	SQLLINE = SQLLINE & "SELECT " & strTablePrefix & "MEMBERS.M_NAME, " & strTablePrefix & "MEMBERS.MEMBER_ID "
	SQLLINE = SQLLINE & " FROM " & strTablePrefix & "ACTIVE_USERS INNER JOIN " & strTablePrefix & "MEMBERS ON " & strTablePrefix & "ACTIVE_USERS.MEMBER_ID = " & strTablePrefix & "MEMBERS.MEMBER_ID"
	SQLLINE = SQLLINE & " WHERE " & strTablePrefix & "ACTIVE_USERS.AU_QUERYSTRING ='" & where & "'"
	'Response.Write SQLLINE
	Set objConn = Server.CreateObject("ADODB.Connection")
	objConn.Open strConnString
	Set objRS = objConn.Execute(SQLLINE)
	User_line = ""
	Temp =""
	While Not objRS.EOF
		if lcase(strDBNTUserName) <> lcase(objRS("M_NAME")) then 
			Anker = "<a href=" & chr(34) &  "JavaScript:viewfull('pop_profile_short.asp?mode=display&id=" & objRS("MEMBER_ID") & "')" & chr(34) & ">"
			User_line = User_line & Anker &  objRS("M_NAME") & "</a> , "
		else
                
                End if 
		objRS.MoveNext()
	Wend
	IF User_line <> "" then 
		User_line = mid(User_line,1,len(User_line)-3) 
		User_line = User_line & " And " 
	else
		User_line = "just "
	end if
	User_line ="Also here: " & User_line & " You"
	Set objRS = Nothing
	objConn.Close()
	Show_Active_User_Line = User_line
End Function




edit forum.asp

find

if Cat_Status <> 0 and Forum_Status <> 0 then 
		Response.Write	getCurrentIcon(strIconFolderOpenTopic,"","align=""absmiddle""")
	else 
		Response.Write	getCurrentIcon(strIconFolderClosedTopic,"","align=""absmiddle""")
	end if
end if
Response.Write	" <a href=""forum.asp?" & ArchiveLink & "FORUM_ID=" & Forum_ID & """>" & ChkString(Forum_Subject,"display") & "</a><br>" & vbNewLine

after that paste

'##################ALSO HERE######################################################
Response.Write	getCurrentIcon(strIconBlank,"","align=""absmiddle""") & getCurrentIcon(strIconBlank,"","align=""absmiddle""") & getCurrentIcon(strIconBar,"","align=""absmiddle""")
Response.Write	getCurrentIcon(StrIconMember,"","align=""absmiddle""") & Show_Active_User_Line("FORUM_ID=" & Forum_ID) &"</font>" 
'##################ALSO HERE#############################################


edit topic.asp

find

if ArchiveView = "true" then
		Response.Write	"          " & getCurrentIcon(strIconBlank,"","align=""absmiddle""") & getCurrentIcon(strIconBlank,"","align=""absmiddle""") & getCurrentIcon(strIconBar,"","align=""absmiddle""") & getCurrentIcon(strIconFolderArchived,"","align=""absmiddle""") & " "
	elseif Cat_Status <> 0 and Forum_Status <> 0 and Topic_Status <> 0 then
		Response.Write	"          " & getCurrentIcon(strIconBlank,"","align=""absmiddle""") & getCurrentIcon(strIconBlank,"","align=""absmiddle""") & getCurrentIcon(strIconBar,"","align=""absmiddle""") & getCurrentIcon(strIconFolderOpenTopic,"","align=""absmiddle""") & " "
	else
		Response.Write	"          " & getCurrentIcon(strIconBlank,"","align=""absmiddle""") & getCurrentIcon(strIconBlank,"","align=""absmiddle""") & getCurrentIcon(strIconBar,"","align=""absmiddle""") & getCurrentIcon(strIconFolderClosedTopic,"","align=""absmiddle""") & " "
	end if
	end if
	if Request.QueryString("SearchTerms") <> "" then
		Response.Write	SearchHiLite(ChkString(Topic_Subject,"title"))
	else
		Response.Write	ChkString(Topic_Subject,"title")
	end if


after that paste

	'###############ALSO HERE#########################################################
	Response.Write	"<BR>" & getCurrentIcon(strIconBlank,"","align=""absmiddle""")&getCurrentIcon(strIconBlank,"","align=""absmiddle""") & getCurrentIcon(strIconBlank,"","align=""absmiddle""") & getCurrentIcon(strIconBar,"","align=""absmiddle""")
	Response.Write	getCurrentIcon(StrIconMember,"","align=""absmiddle""") & " " & Show_Active_User_Line("TOPIC_ID=" & Topic_ID) &"</font>" 
    '###############ALSO HERE#########################################################


just check the forum.asp and the topic.asp
has the
<!--#INCLUDE FILE="inc_func_member.asp"-->



here is the pop_profile_short.asp it also put the stars next to there name
have cut out all the other code
http://www.myle.co.nz/updates/pop_profile_short.zip

That it Done

injoy

hay thanks for the thanks









Edited by - MYLE on 17 March 2004 04:46:43

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 16 March 2004 :  15:11:13  Show Profile
I think this has been done before, the "who's here" mod I believe?

The UK MkIVs Forum
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 16 March 2004 :  15:41:59  Show Profile  Visit Jezmeister's Homepage
Active Users mod i think is its name lol but hey nice to hav options lol
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 16 March 2004 :  15:50:34  Show Profile
Actually this is a MOD to the Active Users MOD, which has been done before - I didn't see it in the W's at snitzbitz, but Image has it in his version.
Go to Top of Page

MYLE
Starting Member

New Zealand
21 Posts

Posted - 16 March 2004 :  16:41:24  Show Profile  Visit MYLE's Homepage  Send MYLE a Yahoo! Message
Couldn't find it but seen it like it so I wrote
this is first mod

WHAT I THINK THE PRIVACY ACT SHOULD BE
If it's bad tell me
If it's good tell everybody


MYLE
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 16 March 2004 :  23:16:41  Show Profile  Visit Etymon's Homepage
quote:
Originally posted by MYLE

Couldn't find it but seen it like it so I wrote
this is first mod



It's ok if this MOD has been done before. There's nothing wrong with sharing and trying to help others along.

Thank you for the MOD, MYLE.

Cheers,

Etymon
Go to Top of Page

kwhipp
Junior Member

USA
407 Posts

Posted - 17 March 2004 :  00:48:58  Show Profile  Visit kwhipp's Homepage  Send kwhipp an AOL message  Send kwhipp an ICQ Message  Send kwhipp a Yahoo! Message
Works well MYLE. However, I had to include
<!--#INCLUDE FILE="inc_func_member.asp"-->
on forum.asp.

- Kevin
Go to Top of Page

MYLE
Starting Member

New Zealand
21 Posts

Posted - 17 March 2004 :  04:31:59  Show Profile  Visit MYLE's Homepage  Send MYLE a Yahoo! Message
hay add link to user name so you can click and see there profile


WHAT I THINK THE PRIVACY ACT SHOULD BE
If it's bad tell me
If it's good tell everybody


MYLE
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 17 March 2004 :  05:09:48  Show Profile
np's at all MYLE, my comments were directed more to Jez
Go to Top of Page

MYLE
Starting Member

New Zealand
21 Posts

Posted - 17 March 2004 :  05:19:18  Show Profile  Visit MYLE's Homepage  Send MYLE a Yahoo! Message
Hay kwhipp what a buzz to see my mod on someone elses site. :)

WHAT I THINK THE PRIVACY ACT SHOULD BE
If it's bad tell me
If it's good tell everybody


MYLE
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 17 March 2004 :  08:42:32  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
Cool! This worked!
Had to tweak the forum.asp-code alittle because I'm using serverhacker code.

Thanks!

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 17 March 2004 :  08:56:19  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
I also changed the "you" to "" & strDBNTUserName & "". I think it's better that way =)

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 March 2004 :  10:26:18  Show Profile  Visit dayve's Homepage
I can't seem to find the code, but I initially introduced this mod a long time ago, packaging
it up from some code I got from Iron Heart over at http://www.someplacesomewhere.com . The mod
was originally called "Big Brother" but then GauravBhabu enhanced the code and re-released it
under the mod named "Who's Here".

Anyway, long story short, if you search in the archives you might be able to find it. Use
GauravBhabu as the member name to enhance your search. I believe I still have my original
"Big Brother" code which I will try to dig up and post here. I am sure it will need enhancing
but it can be good base code so as to help eliminate some new coding.

Go to Top of Page

MYLE
Starting Member

New Zealand
21 Posts

Posted - 17 March 2004 :  14:13:50  Show Profile  Visit MYLE's Homepage  Send MYLE a Yahoo! Message
tribaliztic
Was in to Mine about the You or strDBNTUserName
The 'you' look good my my class of students when there where heaps of students log on at once

WHAT I THINK THE PRIVACY ACT SHOULD BE
If it's bad tell me
If it's good tell everybody


MYLE
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 18 March 2004 :  03:48:31  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
Okay, I don't have that much users viewing the same topic at once =)

/Tribaliztic
- www.gotlandrace.se -
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.52 seconds. Powered By: Snitz Forums 2000 Version 3.4.07