Author |
Topic |
HolyOutlaw
Starting Member
USA
41 Posts |
Posted - 31 May 2003 : 18:48:00
|
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. |
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 02 June 2003 : 07:05:54
|
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 |
|
|
blues
Starting Member
26 Posts |
Posted - 06 June 2003 : 12:20:29
|
where i had to put the code if i wont the online status under the members stars??? |
|
|
Heynow
Junior Member
374 Posts |
Posted - 06 June 2003 : 18:39:55
|
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 |
|
|
Francodepaw
Junior Member
USA
111 Posts |
Posted - 06 June 2003 : 19:44:02
|
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 |
|
|
Heynow
Junior Member
374 Posts |
Posted - 06 June 2003 : 21:21:23
|
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
|
|
|
blues
Starting Member
26 Posts |
Posted - 07 June 2003 : 07:38:16
|
thanks franco but what is the files, and i'm use the same modded forum |
|
|
Raziel
New Member
97 Posts |
Posted - 07 June 2003 : 10:42:40
|
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 |
|
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 07 June 2003 : 18:55:00
|
Raziel, Look for the post on page 1 by Classicmotorcycling, he has done this for anon users and access |
The UK MkIVs Forum |
|
|
Raziel
New Member
97 Posts |
Posted - 08 June 2003 : 00:05:17
|
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? |
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 08 June 2003 : 15:23:35
|
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 |
|
|
a10
Starting Member
United States
22 Posts |
Posted - 08 July 2003 : 12:16:00
|
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. |
|
|
Heynow
Junior Member
374 Posts |
Posted - 11 August 2003 : 06:54:43
|
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
|
|
|
reef120
Starting Member
33 Posts |
Posted - 05 September 2003 : 00:43:05
|
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 |
|
|
Topic |
|