Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2002
Posts: 375
A
Enthusiast
OP Offline
Enthusiast
A
Joined: Jun 2002
Posts: 375
Mod Name / Version - Block Send Private Messages v1.0

Description - Prevents users who have blocked private message from sending them, and advises users that someone has disabled recieving private messages when they click on any 'Send PM' link.

Pre-requisites - none

Author - Aglavalin, aka Steve Stout

Files Altered - sendprivate.php, /languages/english/sendprivate.php

Database Altered - no

New Files - none

Note: This is a simple hack. Works fine on 6.0.x


Several people requested these two features, and this seems like the easiest way to add them into UBBT. Graying out every link to PM someone seemed like more work than it was worth, so this is the next best thing. Giving the user the message that the person does not accept PMs right away, instead of after they have typed their message in.

Attached Images
55789-BlockSendPM_v1.0.txt (0 Bytes, 68 downloads)
Sponsored Links
Joined: Jun 2002
Posts: 375
A
Enthusiast
OP Offline
Enthusiast
A
Joined: Jun 2002
Posts: 375
This hack works with 6.1 just fine.

Joined: Oct 2000
Posts: 15
E
Newbie
Offline
Newbie
E
Joined: Oct 2000
Posts: 15
[]Aglavalin said:
This hack works with 6.1 just fine. [/]

Textstring to use if your users use swedish language on your board.
Just add in the file /languages/swedish/sendprivate.php

At the bottom of the file before
Code
?>   

$ubbt_lang['NOSENDPRIVS'] = "Tyvärr, du kan inte skicka privata meddelanden (PM) då du inte accepterar dom själv.";


"Do not meddle in the affairs of sysadmins, for they can make your life miserable by doing nothing." <img src="/threads/php/images/graemlins/wink.gif" alt="" /> Unknown
Joined: Oct 2000
Posts: 15
E
Newbie
Offline
Newbie
E
Joined: Oct 2000
Posts: 15
I got an idéa when i installed this modification..
The PM system should allow a user that recives an PM to answer that to te other user2 that might have blocked PM.

It might be a tough thing since the system must know several things for one thing it must remember if old PM´s from the user2 is allowed to be sent or just new PM´s from the user2 after the fact the user2 changes user2 config so user2 does not accept PM´s

I'll post this in the request section on UBBThreads support forum also.


"Do not meddle in the affairs of sysadmins, for they can make your life miserable by doing nothing." <img src="/threads/php/images/graemlins/wink.gif" alt="" /> Unknown

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,558
Posts293,857
Members13,848
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,819
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 70
Gizmo 16
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2022 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20220120)
Responsive Width:

PHP: 7.3.29 Page Time: 0.012s Queries: 24 (0.006s) Memory: 0.8023 MB (Peak: 0.8538 MB) Data Comp: Zlib Server Time: 2022-01-27 05:20:06 UTC
Valid HTML 5 and Valid CSS