Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: Send PMs to Groups 1.1

Description: This allows an Admin to send a PM to all users - or members of a specific user group.

Version 1.1 fixes what was actually a Threads bug where you couldn't add Instant UBB Code on the preview page.

Working Under: UBB.Threads 6.2-6.3

Mod Status: Beta

Any pre-requisites: none

Author(s): JoshPet

Date: 05/12/03

Credits: Kordegnen & Coy7

Files Altered: /admin/menu.php

New Files: /admin/dosendgrouppm.php, /admin/sendgrouppm.php, /templates/default/sendgrouppm.tmpl, /templates/default/dosendgrouppm.tmpl, /templates/default/dosendgrouppm_confirm.tmpl

Database Altered: none

Info/Instructions: Note that sending PMs to all users - or large groups can take a while to process (and could even time out depending on server configuration) - and will add an entry in the w3t_Messages table for each message sent to each user. Use cautiously to avoid needlessly bloating your database site.

Instructions - To send PMs - go under the Admin Menu, in the User Management section, select "Send PM to Groups". Then select a group name. Selecting "All Groups" will essentially be "All Users".



Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attachments
79873-SendPMsToGroups1.1.zip (0 Bytes, 60 downloads)

Last edited by JoshPet; 06/15/2003 2:40 AM.
Sponsored Links
Joined: Apr 2001
Posts: 186
Member
Member
Offline
Joined: Apr 2001
Posts: 186
this works great

thanx joshpet

thomas

Joined: Nov 2002
Posts: 116
Journeyman
Journeyman
Offline
Joined: Nov 2002
Posts: 116
I get a blank page Josh

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Did you upload all templates? With you getting a blank page most likely a missing template file.

Joined: Nov 2002
Posts: 116
Journeyman
Journeyman
Offline
Joined: Nov 2002
Posts: 116
I rechecked them and there are all OK

Sponsored Links
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
All your language files present and accounted for?

Joined: Apr 2001
Posts: 186
Member
Member
Offline
Joined: Apr 2001
Posts: 186
found a bug

the instant ubb code doesnt work ??

Thomas[]https://www.ubbdev.com/threads/php/uploads/panels/9442-8339.png[/]

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
OK - that was actually a Threads bug with the Private Messages - you couldn't add Instant UBB Code on the preview page because the form was missing the "replier" name.

Threads has it fixed in 6.3 and I fixed it in this mod.

If you are running 1.0 - simply replace the dosendgrouppm.tmpl template included in this download.

Joined: Aug 2003
Posts: 15
Newbie
Newbie
Offline
Joined: Aug 2003
Posts: 15
Does anyone know if this will work in 6.4?

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I'll try to check it out when I get back from lunch.

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yes, this should work fine for 6.4.

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
It works with a slight change in the instructions. I've also added instructions for adding the PM Group text to the menu.php language file.
Attachments
96703-SendPMsToGroup2.0.txt (0 Bytes, 40 downloads)

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
It would be useful to be able to send a message to a group of comma separated usernames.

Joined: Aug 2003
Posts: 15
Newbie
Newbie
Offline
Joined: Aug 2003
Posts: 15
Cool, waiting on the zip file to be changed, thanks for scoping it out.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
I also get a blank page on after clicking on send .. templates installed, language files in place, php files installed...

I do have the send all a PM hack installed could this be the problem?

I am using 6.4

simple hack but should pop right up.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
The more I think about this, This would not work as is with 6.4 - as it uses the mailer function (to notify people who need PM notification via Email) and the email functionality was re-worked in 6.4. So these scripts would need to be updated.

Not sure when I'll have time, as I've got quite a bit of catch up to do this week. But when I get a chance, I'll see if I can update the scripts and repost for 6.4.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Thanks josh I suspected that was the trouble and nothing urgent. Hope you had a good vacation.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Looked at this again and can't see the error of my ways.. 6.4 still getting that blank screen and it looks like all the templates are in and so are the language.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
ok I am officially frustrated 5 tries .. I can't for the life of me get this to work. If somebody has this working could you send me your files so I can compare the error of my ways.

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
A useful addition to it would be to be able to send the PM to a comma separated list of usernames.

Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
ooh, this would be perfect for me' 6.4 boards

i await patiently for those (much!) smarter than i to provide the hookup

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369

Joined: Sep 2003
Posts: 19
Newbie
Newbie
Offline
Joined: Sep 2003
Posts: 19
I'm using the mod with 6.3 Works great, except I'm noticing NO SENT PM's are being saved. In MY HOME the number of sent PM's is listed as ZERO for all members.

Related to this mod? Help!

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Sent messages are not normally saved unless you check the box to specificially save them.

This mod does not work to save outgoing PMs. You woudln't want to anyway. Sending a PM to everyone puts an entry for every user you sent to in the database. Allowing the admin to save the sent PM would double that. Incredibly dangerous database bloat.

Send a copy of the PM to yourself to save it.


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
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
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,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)