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)
 Active Users add-on (User Status)
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 6

HolyOutlaw
Starting Member

USA
41 Posts

Posted - 31 May 2003 :  18:48:00  Show Profile  Visit HolyOutlaw's Homepage
DavidRhodes,

Could you post the mod code for the Private Message section? You made reference to it at the beginning of this post. I have tried to get it to work but only get the Offline status even if the user is online. It works everywhere else except in the PMs... Great mod BTW.

Thanks in advance.
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 02 June 2003 :  07:05:54  Show Profile
quote:
Originally posted by HolyOutlaw

DavidRhodes,

Could you post the mod code for the Private Message section? You made reference to it at the beginning of this post. I have tried to get it to work but only get the Offline status even if the user is online. It works everywhere else except in the PMs... Great mod BTW.

Thanks in advance.



I never got round to doing it, sorry

The UK MkIVs Forum
Go to Top of Page

blues
Starting Member

26 Posts

Posted - 06 June 2003 :  12:20:29  Show Profile
where i had to put the code if i wont the online status under the members stars???
Go to Top of Page

Heynow
Junior Member

374 Posts

Posted - 06 June 2003 :  18:39:55  Show Profile  Visit Heynow's Homepage  Send Heynow an AOL message  Send Heynow a Yahoo! Message
I am trying to add this to Private Messages and it is showing as Offline..any help?

I added at the top of privateread.asp
'## Get online users into an array
arrOnlineMembers = AUGetOnlineMembers()
'## end

Thanks


Political Forums
:::Stay n Chat

Edited by - Heynow on 06 June 2003 18:41:07
Go to Top of Page

Francodepaw
Junior Member

USA
111 Posts

Posted - 06 June 2003 :  19:44:02  Show Profile
quote:
Originally posted by blues

where i had to put the code if i wont the online status under the members stars???



Just below these lines (Around 810 on a SH modded forum)


			if strShowRank = 2 or strShowRank = 3 then
				Response.Write	"                " & getStar_Level(Reply_MemberID, Reply_MemberLevel, Reply_MemberPosts) & "<br />" & vbNewLine
			end if


And again just below same lines as above around line 1035.

I only added these two lines: (I'm using the Server Hacker portal)

For Replies (around 810)

Response.Write " <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>Status: "& AUMemberStatus(arrOnlineMembers, Reply_MemberID) &"</small></font><br />" & vbNewLine


For Topics (around 1035)

Response.Write " <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>Status: "& AUMemberStatus(arrOnlineMembers, TMember_ID) &"</small></font><br />" & vbNewLine




Edited by - Francodepaw on 06 June 2003 20:01:40
Go to Top of Page

Heynow
Junior Member

374 Posts

Posted - 06 June 2003 :  21:21:23  Show Profile  Visit Heynow's Homepage  Send Heynow an AOL message  Send Heynow a Yahoo! Message
quote:
Originally posted by DavidRhodes

i'll make a zip over the weekend for this mod, and try and get the pm bit done too



Thanks David..


Political Forums
:::Stay n Chat
Go to Top of Page

blues
Starting Member

26 Posts

Posted - 07 June 2003 :  07:38:16  Show Profile
thanks franco but what is the files, and i'm use the same modded forum
Go to Top of Page

Raziel
New Member

97 Posts

Posted - 07 June 2003 :  10:42:40  Show Profile
Hey,
You have probably posted it, but it's a bit confusing, so I'll ask rather than destroy my topic.asp file

I have this mod installed, but just want to add the anonymous feature as well. I'm using Access database, so could someone just point out the code for me?

I can't find those functions mentioned that I should replace in inc_func_common.asp ?

- Thanks in advance

/Regards...

Edited by - Raziel on 07 June 2003 18:10:05
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 07 June 2003 :  11:19:39  Show Profile  Visit MarkJH's Homepage
Cheers, David. Nice little MOD.

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 07 June 2003 :  18:55:00  Show Profile
Raziel,
Look for the post on page 1 by Classicmotorcycling, he has done this for anon users and access

The UK MkIVs Forum
Go to Top of Page

Raziel
New Member

97 Posts

Posted - 08 June 2003 :  00:05:17  Show Profile
David,

The code to add for access database, is the following, I can see:


function AUGetOnlineMembers()
	strSql ="SELECT " & strTablePrefix & "ACTIVE_USERS.MEMBER_ID " 
	strSql = strSql & " FROM " & strTablePrefix & "ACTIVE_USERS "
	if strAUAnon and not(bolOverride) then
	    strSql = strSql & ", " & strTablePrefix & "MEMBERS WHERE "
	    strSql = strSql & strTablePrefix & "MEMBERS.MEMBER_ID = " & strTablePrefix & "ACTIVE_USERS.MEMBER_ID "
	    strSql = strSql & "AND " & strTablePrefix & "MEMBERS.M_AUHIDE <> '0'"
	end if
	set rsOnline = my_Conn.Execute(strSql)
	If NOT rsOnline.EOF Then AUGetOnlineMembers = rsOnline.GetRows()
	rsOnline.close
	set rsOnline = nothing
end function

function AUMemberStatus(OnlineMembers, CurrentMember)
	if IsArray(OnlineMembers) then
		for intRow = 0 to UBound(OnlineMembers, 2)	
			if OnlineMembers(0,intRow) = CurrentMember then
				AUMemberStatus = "<font color=green><b>online</b></font>"
				exit function
			end if
		next
	end if
	AUMemberStatus = "<font color=red>offline</font>"
end function


But where am I to write the code? You wrote that one was supposed to replace the functions in inc_func_common.asp - but I don't see these functions there, so I'm a bit comfused about that?
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 08 June 2003 :  15:23:35  Show Profile
They were to replace the functions I original wrote for this mod, if you haven't put the original's in (from the first post in this thred) just add the above code

The UK MkIVs Forum
Go to Top of Page

a10
Starting Member

United States
22 Posts

Posted - 08 July 2003 :  12:16:00  Show Profile
Nice easy mod, no problems first time I put it in, works as advertised. v3.4.0.3 and AU4. Thanks for this mod, very helpful.
Go to Top of Page

Heynow
Junior Member

374 Posts

Posted - 11 August 2003 :  06:54:43  Show Profile  Visit Heynow's Homepage  Send Heynow an AOL message  Send Heynow a Yahoo! Message
quote:
Originally posted by Heynow777

I am trying to add this to Private Messages and it is showing as Offline..any help?

I added at the top of privateread.asp
'## Get online users into an array
arrOnlineMembers = AUGetOnlineMembers()
'## end


Has anyone been able to do this?

Thanks!


Political Forums
:::Stay n Chat
Go to Top of Page

reef120
Starting Member

33 Posts

Posted - 05 September 2003 :  00:43:05  Show Profile
Where can I get the offline/online mod with install directions? Can someone please post this mod I would love to add it to my forum
Go to Top of Page
Page: of 6 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07