Author |
Topic |
@tomic
Senior Member
USA
1790 Posts |
Posted - 03 September 2002 : 03:19:02
|
I added support for sending PM's from a member's profile and updated the zip file.
@tomic |
SportsBettingAcumen.com |
|
|
CodeName
Junior Member
296 Posts |
Posted - 03 September 2002 : 04:23:21
|
@tomic, Can we add a Icon for sending private message from in topic ? "like Icq/Msn/Yahoo Icon" |
Edited by - CodeName on 03 September 2002 04:24:25 |
|
|
Lydecker
Junior Member
United Kingdom
297 Posts |
Posted - 03 September 2002 : 12:34:00
|
Does this look right to you?
I swear the inbox is further to the right in my 3.4.02 forum then it was in my 3.4.01 foorum? |
|
|
tangoc9999
Junior Member
USA
158 Posts |
Posted - 03 September 2002 : 12:43:26
|
put the include for pm's above the stats sub and it will straighten out. like this....
end if
%>
<!--#include file="privatemess.asp"-->
<%
if strShowStatistics = "1" then
WriteStatistics
end if
Response.Write " </table>" & vbNewline & _ |
TANGO
Computers run on smoke, when the smoke comes out, they quit running!
|
Edited by - tangoc9999 on 03 September 2002 12:49:34 |
|
|
@tomic
Senior Member
USA
1790 Posts |
Posted - 03 September 2002 : 12:47:53
|
What does the code look like where you placed the PM include file and have you added other MODs to default.asp? It looks fine on my page.
@tomic |
SportsBettingAcumen.com |
|
|
Lydecker
Junior Member
United Kingdom
297 Posts |
Posted - 03 September 2002 : 12:57:37
|
My bad - the code was 1 line out of place - thanks |
|
|
Fish
Starting Member
16 Posts |
Posted - 03 September 2002 : 17:37:05
|
quote: Originally posted by @tomic
I will, sorry I'm so slow. I amjust trying to make sure each bit is working before I add another one. The code to add this to topic.asp or pop_profile is almost exactly the same. It's just a matter of where to stick it.
@tomic
Atomic, I think you're doing just find and I appreciate your approach and the mods you've been doing. I was going to take a shot at the profile one myself and just wanted to make sure no one else had done it first :)
Fish http://www.outsidethegarden.com |
|
|
@tomic
Senior Member
USA
1790 Posts |
Posted - 03 September 2002 : 18:01:36
|
Hey thanks. I do plan on doing as much as possible with this MOD as I can. I have quite a bit more coming but just not all at once so if there is a favorite feature you think is missing please let me know.
I saw something about a Saved PM feature and I vaguely remember that but couldn't find the code anywhere. Can anyone help me out with a sample from 3.1R4 or 3.3?
@tomic |
SportsBettingAcumen.com |
|
|
ErEf
New Member
Netherlands
74 Posts |
Posted - 04 September 2002 : 04:04:05
|
quote: Originally posted by tangoc9999
put the include for pm's above the stats sub and it will straighten out. like this....
end if
%>
<!--#include file="privatemess.asp"-->
<%
if strShowStatistics = "1" then
WriteStatistics
end if
Response.Write " </table>" & vbNewline & _
thanks it was just what I was looking for. it looks like this now:
|
If you think you can or you think you cannot, you are right. - Henry Ford |
|
|
ErEf
New Member
Netherlands
74 Posts |
Posted - 04 September 2002 : 05:39:53
|
I have stripped privatemess.asp a little bit and made it that only the envelop would show up if you have a private message. you can inc it where you like <% '################################################################################# '## Copyright (C) 2000-02 Michael Anderson, Pierre Gorissen, '## Huw Reddick and Richard Kinser '## etc etc. '## '## Snitz Communications '## C/O: Michael Anderson '## PO Box 200 '## Harpswell, ME 04079 '################################################################################# if strDBNTUserName <> "" then ' Get Private Message count for display on Default.asp if strDBType = "access" then strSqL = "SELECT count(M_TO) as [pmcount] " else strSqL = "SELECT count(M_TO) as pmcount " end if strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS , " & strTablePrefix & "PM " strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS.M_NAME = '" & strDBNTUserName & "'" strSql = strSql & " AND " & strMemberTablePrefix & "MEMBERS.MEMBER_ID = " & strTablePrefix & "PM.M_TO " strSql = strSql & " AND " & strTablePrefix & "PM.M_READ = 0 "
Set rsPM = my_Conn.Execute(strSql) pmcount = rsPM("pmcount")
rsPM.close set rsPM = nothing
if strDBNTUserName = "" then Response.Write " " else if pmcount = 0 then Response.Write " " end if if pmcount >= 1 then Response.Write "<a href=""pm_view.asp"">" Response.Write getCurrentIcon(strIconpmnewsm,"","align=""absmiddle""") Response.Write "</a>" end if end if end if %>
I saved this file with an other name privatemess2.asp and included it in the inc_header.asp like this
Response.Write " |" & vbNewline & _ " <a href=""members.asp""" & dWStatus("Current members of these forums...") & " tabindex=""-1""><acronym title=""Current members of these forums..."">Members</acronym></a>" & vbNewline & _ " |" & vbNewline & _ " <a href=""pm_view.asp""" & dWStatus("Check Your Private Messages...") & " tabindex=""-1""><acronym title=""Check Your Private Messages..."">Private messages</acronym></a>" & vbNewline '############## BEGIN INCLUDE ENVELOP IF THERE IS A NEW MESSAGE ########################## %> <!-- #include file="privatemess2.asp" --><% '############## END INCLUDE ENVELOP IF THERE IS A NEW MESSAGE ############################ Response.Write " |" & vbNewline & _ " <a href=""search.asp" You have to delete & _ before the insert and add response.write after it. |
If you think you can or you think you cannot, you are right. - Henry Ford |
Edited by - ErEf on 04 September 2002 05:58:15 |
|
|
bjlt
Senior Member
1144 Posts |
Posted - 04 September 2002 : 08:20:25
|
quote: Originally posted by @tomic
I saw something about a Saved PM feature and I vaguely remember that but couldn't find the code anywhere. Can anyone help me out with a sample from 3.1R4 or 3.3?
@tomic
@tomic, does the current PM have ignore and save PM feature? Thanks. |
|
|
@tomic
Senior Member
USA
1790 Posts |
Posted - 04 September 2002 : 11:02:53
|
quote: @tomic, does the current PM have ignore and save PM feature? Thanks.
No not yet. I can't even find anything on the PM Save.
@tomic |
SportsBettingAcumen.com |
|
|
bjlt
Senior Member
1144 Posts |
Posted - 04 September 2002 : 11:19:16
|
didn't HuwR said he had the code?
quote:
@tomic,
do you want the pm files from my forum ? they have the save pm's and ignore users code in them
|
|
|
@tomic
Senior Member
USA
1790 Posts |
Posted - 04 September 2002 : 11:21:50
|
Yes, but I don't have either of those features yet. I searched and couldn't find anything on PM Save.
@tomic |
SportsBettingAcumen.com |
|
|
philgsy
Starting Member
United Kingdom
18 Posts |
Posted - 04 September 2002 : 11:38:12
|
Hi guys. Great mod, and its a great service to add to my forum. I have 2 questions at the moment, which hopefully someone can help me out. 1) Is there / or will there be, a way of automatically sending a message from the Admin ID when someone joins the forum (similar to a welcome email if you will...) 2) How can I add the option to send a PM to a user from the Active_Users page on my forum. Once again, great mod, and keep up the good work... |
|
|
Topic |
|