We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Multi-PM Users
Topic Started: Jan 3 2017, 08:50 AM (546 Views)
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code Name: Multi-PM Users

What the code does: Allows you to send a PM to more than one user. Preview

How to use the code: Install as instructed, no editing is required, unless you are using the group version, in which case you would edit the capitalized text as necessary.

How to install the code:

Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board

Option available for all users:
Code:
 
<script type="text/javascript" src="http://b2.ifrm.com/63/1/0/p703193/Multi_PM_Users.js"></script>
Option available only for administrators:
Code:
 
<script type="text/javascript">
if ($.zb.admin === 1) {
$.ajax({
url: 'http://b2.ifrm.com/63/1/0/p703193/Multi_PM_Users.js',
dataType: 'script',
cache: true
});
}
</script>
Option available only for administrators and moderators:
Code:
 
<script type="text/javascript">
if ($.zb.moderator === 1) {
$.ajax({
url: 'http://b2.ifrm.com/63/1/0/p703193/Multi_PM_Users.js',
dataType: 'script',
cache: true
});
}
</script>
Option available to groups of your choice:
Code:
 
<script type="text/javascript">
$(function() {
var groupIDs = [GROUP_ID, GROUP_ID, GROUP_ID];

for (var i = 0; i < groupIDs.length; i++) {
if ($.zb.stat.gid === groupIDs[i]) {
$.ajax({
url: 'http://b2.ifrm.com/63/1/0/p703193/Multi_PM_Users.js',
dataType: 'script',
cache: true
});
}
}
});
</script>
Extra notes: Giving this option to non-staff members is not generally recommended due to mass spam, advertising, and AJAX-usage.
Offline Profile Quote Post Goto Top
 
Sree
Member Avatar
Member
[ *  * ]
Thank you so much Cory!
This is just what I needed..
Offline Profile Quote Post Goto Top
 
spiiike
Member
[ *  *  *  * ]
Nice code ^_^ any way to make it so there's only one "to" box, so you don't have to keep clicking to add extra accounts to PM?
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
That's actually what I was originally going to do, but it was a little more complicated. I may try to create a version where you can insert all the usernames into a single textarea, but I still have some other coding projects under the hood that I need to attend before this one.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply