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
Address Book Name Change
Topic Started: Sep 18 2016, 03:14 PM (219 Views)
DaPizzaMan
Member Avatar
#TeamSupport

Code Name: Address Book Name Change

What the code does: Changes the Address Book to whatever you want to call it. This replaces all instances of the text "Address Book" to the name you choose (as explained below).

How to use the code: Just change Buddy List on this line:
Code:
 
addressBook.replacementName = 'Buddy List';
to whatever you want to change the name of the address book to.

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 addressBook = {};
$(function() {
addressBook.replacementName = 'Buddy List';
if (location.href.indexOf(main_url + 'msg/') !== -1) {
$.ajax({
url: 'http://b3.ifrm.com/30296/128/0/p3000177/AddressBookChanges.js',
dataType: 'script',
cache: true,
async: false
});
}
addressBook.appendABto = '#menu_pm ul';
if (location.href === main_url + 'profile/' + $.zb.stat.mid + '/') addressBook.appendABto += ', #profile_menu ul';
$(addressBook.appendABto).append('<li><a href="' + main_url + 'msg/?c=16">' + addressBook.replacementName + '</a></li>');
$('#profile_menu ul li a').each(function() {
var $this = $(this);
$this.text($this.text().replace(/add to contacts/ig, 'Add to ' + addressBook.replacementName));
});
});
</script>
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