Post by SubDevo on May 12, 2010 20:54:21 GMT -8
PM Selected Users from Member List or Search by SubDevo
Tested in IE, FF, Opera, Safari and Chrome.
This code adds a "Send PM to Selected" button next to the "Delete User" button at the bottom of the
Members List or the "Search Results" page after doing a Member Search.
The button will only show up for staff that have the power to delete user accounts.
Did you get all that? lol
With a "Member Search", you can send a PM (or Email) to members:
How to Use:
Install the code in your Main Footer.
Go to your Member List or Member Search (Admin>Manage Members>Search Members)
Check (select) any users in the list that you wish to send a PM.
When you click the "Send PM to Selected" button, you will be taken to the "Send PM" page.
All the members that you checked in the member list or search results will be added to the "Send to" field. voila!
PM plus Email Version: PREVIEW
This version works the same as the above, but also includes another button "Show Emails". When this button is clicked, a text area appears with a comma separated list of the Email addresses of the selected members. What does this do for you? PB only allows you to send a mass Email to ALL your members. Simply copy the emails from the text area. Paste this into the BCC: line in your email client. Put YOUR email into the "TO:" line. This way, you get a copy of the email and all the other members in the list, do not see which other members received the email.
Enjoy!!!
SubDevo
Location: Main Footer
PM Version:
<script type="text/javascript">
/* PM Selected Users from Member List or Search by SubDevo */
/* Main Footer - Please leave this header intact. Do not repost. */
/* interoceandesigns.com or lsdp.proboards.com */
function pmSM(){ var mem="",n=mS_form.getElementsByTagName("input"),x=-1;
while(n[++x]){
if(/delete-(\w+)$/.test(n[x].name)&&n[x].checked!=false){ mem+=RegExp.$1+", ";}
} if(mem){location="/index.cgi?action=pmsend&to="+mem.slice(0,-2);}
} var mS_form=document.membersForm;
if(mS_form&& !/=letter$/i.test(location.href)){ mS_form=mS_form.parentNode;
var n=mS_form.getElementsByTagName("font"),ns=document.createElement("span");;
ns.innerHTML='<input type="button" value="Send PM to Selected" onclick="pmSM()"\/>';
n[n.length-1].appendChild(ns);
}
</script>
PM plus Email Version:
<script type="text/javascript">
/* PM-Email Selected Users from Member List or Search by SubDevo */
/* Main Footer - Please leave this header intact. Do not repost. */
/* interoceandesigns.proboards.com or lsdp.proboards.com */
function pmSM(a){ var mem=emem="",n=mS_form.getElementsByTagName("input"),b,x=-1;
while(n[++x]){
if(/delete-(\w+)$/.test(n[x].name)&&n[x].checked!=false){ if(a){mem+=RegExp.$1+", "; }
emem+=n[x].parentNode.parentNode.nextSibling.getElementsByTagName("a")[0].innerHTML+",";
}
} if(mem){location="/index.cgi?action=pmsend&to="+mem.slice(0,-2);}
b=document.getElementById("emailtext"); b.value=emem.slice(0,-1); b.style.display="";
} var mS_form=document.membersForm;
if(mS_form&& !/=letter$/i.test(location.href)){ mS_form=mS_form.parentNode;
var n=mS_form.getElementsByTagName("font"),ns=document.createElement("span");
ns.innerHTML='<input type="button" value="Send PM" onclick="pmSM(1)"\/> '+
'<input type="button" value="Show Emails" onclick="pmSM(0)"\/><br><br>'+
'<textarea id="emailtext" style="display:none;" onfocus="this.select();" rows=5 cols=80><\/textarea>';
n[n.length-1].appendChild(ns);
}
</script>
EDIT 08/03/2011:
Bug fix. "Delete Users" button did not function. Fixed.
Tested in IE, FF, Opera, Safari and Chrome.
This code adds a "Send PM to Selected" button next to the "Delete User" button at the bottom of the
Members List or the "Search Results" page after doing a Member Search.
The button will only show up for staff that have the power to delete user accounts.
Did you get all that? lol
With a "Member Search", you can send a PM (or Email) to members:
- in a certain member group.
- that haven't logged in in X days.
- that haven't activated their account.
- with a certain post count.
- AND MORE!!!
How to Use:
Install the code in your Main Footer.
Go to your Member List or Member Search (Admin>Manage Members>Search Members)
Check (select) any users in the list that you wish to send a PM.
When you click the "Send PM to Selected" button, you will be taken to the "Send PM" page.
All the members that you checked in the member list or search results will be added to the "Send to" field. voila!
PM plus Email Version: PREVIEW
This version works the same as the above, but also includes another button "Show Emails". When this button is clicked, a text area appears with a comma separated list of the Email addresses of the selected members. What does this do for you? PB only allows you to send a mass Email to ALL your members. Simply copy the emails from the text area. Paste this into the BCC: line in your email client. Put YOUR email into the "TO:" line. This way, you get a copy of the email and all the other members in the list, do not see which other members received the email.
Enjoy!!!
SubDevo
Location: Main Footer
PM Version:
<script type="text/javascript">
/* PM Selected Users from Member List or Search by SubDevo */
/* Main Footer - Please leave this header intact. Do not repost. */
/* interoceandesigns.com or lsdp.proboards.com */
function pmSM(){ var mem="",n=mS_form.getElementsByTagName("input"),x=-1;
while(n[++x]){
if(/delete-(\w+)$/.test(n[x].name)&&n[x].checked!=false){ mem+=RegExp.$1+", ";}
} if(mem){location="/index.cgi?action=pmsend&to="+mem.slice(0,-2);}
} var mS_form=document.membersForm;
if(mS_form&& !/=letter$/i.test(location.href)){ mS_form=mS_form.parentNode;
var n=mS_form.getElementsByTagName("font"),ns=document.createElement("span");;
ns.innerHTML='<input type="button" value="Send PM to Selected" onclick="pmSM()"\/>';
n[n.length-1].appendChild(ns);
}
</script>
PM plus Email Version:
<script type="text/javascript">
/* PM-Email Selected Users from Member List or Search by SubDevo */
/* Main Footer - Please leave this header intact. Do not repost. */
/* interoceandesigns.proboards.com or lsdp.proboards.com */
function pmSM(a){ var mem=emem="",n=mS_form.getElementsByTagName("input"),b,x=-1;
while(n[++x]){
if(/delete-(\w+)$/.test(n[x].name)&&n[x].checked!=false){ if(a){mem+=RegExp.$1+", "; }
emem+=n[x].parentNode.parentNode.nextSibling.getElementsByTagName("a")[0].innerHTML+",";
}
} if(mem){location="/index.cgi?action=pmsend&to="+mem.slice(0,-2);}
b=document.getElementById("emailtext"); b.value=emem.slice(0,-1); b.style.display="";
} var mS_form=document.membersForm;
if(mS_form&& !/=letter$/i.test(location.href)){ mS_form=mS_form.parentNode;
var n=mS_form.getElementsByTagName("font"),ns=document.createElement("span");
ns.innerHTML='<input type="button" value="Send PM" onclick="pmSM(1)"\/> '+
'<input type="button" value="Show Emails" onclick="pmSM(0)"\/><br><br>'+
'<textarea id="emailtext" style="display:none;" onfocus="this.select();" rows=5 cols=80><\/textarea>';
n[n.length-1].appendChild(ns);
}
</script>
EDIT 08/03/2011:
Bug fix. "Delete Users" button did not function. Fixed.