Author |
Topic |
|
GarethMoore1979
Junior Member
United Kingdom
220 Posts |
Posted - 06 July 2004 : 15:04:29
|
Wasnt sure if I should post this in the main 'Private Message' topic on here, but thats a long post now- so I started it here.
First of all, If you have the PM limit feature on, members can get around this! What happens is that you are not exactly banned from using 'private_send.asp' All that happens when you reach your PM limit is that the icons for 'reply' or 'new pm' dont show anymore. However these icons do still show up in 'members.asp' (profiles pages) and 'topic.asp'. So even if members reach their PM limit, if they go into topic.asp or members.asp they can still reach the private_send.asp page and send further PM's!
So you need to make the following changes in private_send.asp
Find the following: quote: Set rsPM = my_Conn.Execute(strSql) pmtotal = rsPM("pmtotal") rsPM.close set rsPM = nothing
Straight after that add : quote: If pmtotal = strPMLimit or pmtotal > strPMLimit and mlev < 3 then Response.Write ("<center><font face=""" & strDefaultFontFace & """ color=""" & StrHiLiteFontColor & """ size=""" & strDefaultFontSize & """>You have reached your private message limit of " & strPMLimit & ".<br>To send further private messages you must clean your Inbox.</font></center><br><br>") Response.Write ("<center><font face=""" & strDefaultFontFace & """ color=""" & StrDefaultFontColor & """ size=""" & strDefaultFontSize & """><a href=""pm_view.asp"">Return To Your Inbox</a></font></center>") else
Note: the part in blue overwrides for moderators and admin. If you dont want moderators to have override to thsi feature change the 3 to 4
Change the following (right at the bottom of the page): quote: end if WriteFooter Response.End %>
to: quote:
end if end if WriteFooter Response.End %>
|
Edited by - GarethMoore1979 on 06 July 2004 15:06:00 |
|
GarethMoore1979
Junior Member
United Kingdom
220 Posts |
Posted - 06 July 2004 : 15:22:48
|
I have also modified the private_send.asp page into a 'pop up page'. So that when the user click to send someone a PM from thier profile or topic.asp, they are introduced to a pop-up window (exactly the same as the 'send e-mail' pop-up window!
http://www.harchester.net/pop_privatesend.txt http://www.harchester.net/pop_privatesend_info.txt
add these pages, and then just modify the link in topic.asp/members.asp to force these new pages to open up in a pop-up window (same size as the pop_mail.asp window).
You can test this feature out in my forum: http://www.harchester.net/new-forum/default.asp user ID: Shelly Sutherland Password: shelly
Im not sure if anyone will find this usefull or not, but thought I would share! |
Edited by - GarethMoore1979 on 06 July 2004 15:24:37 |
|
|
grn
Starting Member
9 Posts |
Posted - 10 July 2004 : 20:47:38
|
GarethMoore1979,
Is it possible to download the code for your private messaging mod?
Thanks. grn |
|
|
GarethMoore1979
Junior Member
United Kingdom
220 Posts |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 13 July 2004 : 07:12:20
|
Woo! Thanks for this Gareth; was gonna make similar changes when redesigning my forums, you've just saved me a li'l bit of work.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
GarethMoore1979
Junior Member
United Kingdom
220 Posts |
Posted - 13 July 2004 : 09:03:35
|
Well I hope it works well for you. I would appreciate some feedback on it, as its only been tested on my forum.
thanks! |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 13 July 2004 : 09:39:28
|
Ay, I'll get back to you once I've applied it. Won't be for a while though as I'm gonna be spending a lot of time on this redevlopment and real work (bah!) keeps getting in the way!
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
GarethMoore1979
Junior Member
United Kingdom
220 Posts |
Posted - 13 July 2004 : 20:26:18
|
btw, the new (larger type) icons I stole from serverhackers modded forum , thought I had better mention that before (s)he was it! |
|
|
Borgis1
Starting Member
3 Posts |
Posted - 11 December 2004 : 18:38:35
|
NVM i made it work but i didn't do it as you said to do it. abd for some reason my file didn't have what you said to change i had to add it to the file. |
Edited by - Borgis1 on 11 December 2004 22:51:18 |
|
|
GarethMoore1979
Junior Member
United Kingdom
220 Posts |
Posted - 12 December 2004 : 17:02:31
|
quote: Originally posted by Borgis1
NVM i made it work but i didn't do it as you said to do it. abd for some reason my file didn't have what you said to change i had to add it to the file.
what changes in particular are you talking about???
and
what version of Private Messages are you using??
If you need help you need to give us more details! |
|
|
|
Topic |
|