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)
 Private Messages 3.4.03 **Changes**
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

GarethMoore1979
Junior Member

United Kingdom
220 Posts

Posted - 06 July 2004 :  15:04:29  Show Profile
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  Show Profile
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
Go to Top of Page

grn
Starting Member

9 Posts

Posted - 10 July 2004 :  20:47:38  Show Profile
GarethMoore1979,

Is it possible to download the code for your private messaging mod?

Thanks.
grn
Go to Top of Page

GarethMoore1979
Junior Member

United Kingdom
220 Posts

Posted - 12 July 2004 :  19:24:26  Show Profile
for sure!

http://www.harchester.net/pop_privatesend.txt
http://www.harchester.net/pop_privatesend_info.txt

(try these links again), save the file (dont forget to change the file extension from .txt back to .asp)
And then you need to change the corresponding link (in topic.asp or whatever file) to open the new file into a pop up window.

E-mail me if you run into any problems! ;-)

Edited by - GarethMoore1979 on 12 July 2004 19:27:15
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 13 July 2004 :  07:12:20  Show Profile
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.”
Go to Top of Page

GarethMoore1979
Junior Member

United Kingdom
220 Posts

Posted - 13 July 2004 :  09:03:35  Show Profile
Well I hope it works well for you. I would appreciate some feedback on it, as its only been tested on my forum.

thanks!
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 13 July 2004 :  09:39:28  Show Profile
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.”
Go to Top of Page

GarethMoore1979
Junior Member

United Kingdom
220 Posts

Posted - 13 July 2004 :  20:26:18  Show Profile
btw, the new (larger type) icons I stole from serverhackers modded forum , thought I had better mention that before (s)he was it!
Go to Top of Page

Borgis1
Starting Member

3 Posts

Posted - 11 December 2004 :  18:38:35  Show Profile
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
Go to Top of Page

GarethMoore1979
Junior Member

United Kingdom
220 Posts

Posted - 12 December 2004 :  17:02:31  Show Profile
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!
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.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07