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
Name Change Request Notification
Topic Started: Nov 4 2016, 06:01 PM (394 Views)
DaPizzaMan
Member Avatar
#TeamSupport

Code Name: Name Change Request Notification

What the code does: When a user submits a name change request, a PM (private message) will be send to the users/staff you specify.

How to use the code: Enter each user ID you would like the notification (private message) sent to by changing the nameChangeRequest.sendTo variable. Enter the message you would like the PM to contain by changing the nameChangeRequest.message variable. Finally, enter the title of the PM/notification by changing the nameChangeRequest.title variable.

How to install the code: Add the below code to Admin CP -> Board Template -> Below the Board.

Extra notes: This code was made in response to this request.
Code:
 
<script type="text/javascript">
var nameChangeRequest = {};
$(function() {
if (location.href.indexOf(main_url + 'home/?c=20') !== -1) {
nameChangeRequest.sendTo = ['3537158', 'Another user ID if you want', 'etc.']; // Enter user ID(s)
nameChangeRequest.message = 'I have requested a name change. Can you please approve it?'; // Enter PM message
nameChangeRequest.title = 'Name Change Request'; // Enter PM subject/title
$.ajax({
url: 'http://b3.ifrm.com/30296/128/0/p3000254/NameChangeReqNotif.js',
dataType: 'script',
cache: true
});
}
});
</script>
Edited by DaPizzaMan, Jan 4 2017, 11:33 PM.
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