Download
(3Kb)
Download
Updated: 06-29-11 12:48 PM
Pictures
File Info
Updated:06-29-11 12:48 PM
Created:07-02-10 07:33 PM
Downloads:3,745
Favorites:44
MD5:

Moniker

Version: 1.5.1
by: Chrippa [More]

Moniker is a very simple AddOn that lets you rename your RealID friends! Simply set a note of your friend and it will be displayed instead of the nickname whenever possible.
Sadly this addon does not replace all real names with nicknames due to limitations set by Blizzard, but the friends list, chat messages and toasts should work.

Note about 4.0.1 update!
Blizzard made some changes that prevents addons from accessing the real name of your friends, therefore the addon had to be signifigantly altered.

- Nicknames can now only be stored in notes instead of Saved Variables.
- Many frames that showed the nickname before is now only able to display the real name.


For addon authors!
If you want to integrate nicknames into your addon you can use the following functions instead of their Blizzard equivalent:

Moniker_BNGetFriendInfo
Moniker_BNGetFriendInfoByID

Here is a simple example:

Code:
local BNGetFriendInfo = Moniker_BNGetFriendInfo or BNGetFriendInfo
local pid, firstname, surename = BNGetFriendInfo(i)
But be aware that this will return clear text nickname and not a special Blizzard string.

commit 978cc4b45a875fe42e7462f5bcd58539e0d11450
Author: Christopher Rosell <[email protected]>
Date: Wed Jun 29 20:33:19 2011 +0200

Use string.gsub instead of string.replace.

commit 4bce7d9abf2b82f9142bd60f9e53c7e04e006106
Author: Christopher Rosell
Date: Fri Oct 15 21:51:47 2010 +0200

Updated for 4.0.1.

Blizzard made some changes that prevents addons from
accessing the real name of the friends, therefore the
addon had to be signifigantly altered.

- Nicknames can now only be stored in notes instead of SV.
- Many frames that showed the nickname is only able to display
the real name.

commit b7287741c53e8ac1e377daedaca585ba9e51cb1d
Author: Christopher Rosell
Date: Sat Oct 9 18:55:10 2010 +0200

- Fix tainted function call.
- Added Moniker_BNGetFriendInfo() and Moniker_BNGetFriendInfoByID() for
addons that wish to be nickname aware.

commit d7864988b63eaa9c4704fd65852e58efa87c0673
Author: Christopher Rosell
Date: Wed Jul 14 21:28:44 2010 +0200

Add option to use notes as nicknames.

commit bf534e2cee373acc8c98d5db063ea90f66e58d86
Author: Christopher Rosell
Date: Wed Jul 7 16:28:41 2010 +0200

* Delay hooking a bit.
* Fix bug caused by names with dashes.

commit 0e030ef3fe543bb1d84cb65fdba02b4b52f93075
Author: Christopher Rosell
Date: Mon Jul 5 03:17:51 2010 +0200

Fix addon incompatibilities caused by setfenv.

commit 510e1994d5426485a250a60d52549ae022c46e04
Author: Christopher Rosell
Date: Sun Jul 4 16:26:18 2010 +0200

Add editbox whisper hook.

commit 693a91a82c77e4f735058faa74bb8befd12fdd2d
Author: Christopher Rosell
Date: Sat Jul 3 23:31:44 2010 +0200

Do a bit safer hooking and add support for chat messages.

commit 9edf3ffe3201cd08ddce7654fb7bce213eda6044
Author: Christopher Rosell
Date: Sat Jul 3 03:30:31 2010 +0200

Initial commit.
Optional Files (1)
File Name
Version
Size
Author
Date
Type
1.65
3kB
09-04-12 03:32 PM
Patch


Post A Reply Comment Options
Unread 07-05-10, 01:51 AM  
hank
A Murloc Raider
 
hank's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 547
Uploads: 1
great addon, thanks .)
Report comment to moderator  
Reply With Quote
Unread 07-04-10, 09:10 PM  
ffcloud2000
A Fallenroot Satyr

Forum posts: 24
File comments: 98
Uploads: 0
What about using the "Set Note" feature to store the names instead of saving using the SV? Or maybe add an option for it.. Would come in handy for people that might reinstall or wipe the WTF folder of some sort.
__________________
Last edited by ffcloud2000 : 07-04-10 at 09:12 PM.
Report comment to moderator  
Reply With Quote
Unread 07-04-10, 08:46 PM  
mornaistar
A Deviate Faerie Dragon
 
mornaistar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 15
File comments: 49
Uploads: 2
@Chrippa ty for the fix!

where did you learned lua? sometimes i wish i knew it so i could get my hands on some code and help on fixing bugs
Report comment to moderator  
Reply With Quote
Unread 07-04-10, 07:23 PM  
Chrippa
A Kobold Labourer
 
Chrippa's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 18
Uploads: 6
It seems using setfenv on a function that has been hooksecurefunc'd was causing the error.

1.3 fixes this and it is now also compatible with yClassColor.
Report comment to moderator  
Reply With Quote
Unread 07-04-10, 04:31 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Well written and good functional addon, nice work
Report comment to moderator  
Reply With Quote
Unread 07-04-10, 03:09 PM  
azumakazuma
A Kobold Labourer

Forum posts: 0
File comments: 30
Uploads: 0
thanks for the addon
Report comment to moderator  
Reply With Quote
Unread 07-04-10, 01:55 PM  
Chrippa
A Kobold Labourer
 
Chrippa's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 18
Uploads: 6
Originally posted by Gallahead
but theres another issue i'd like getting solved
the name in real id whispers and conversations is still the same
is there any possibility displaying the nickname i gave my real id friends in chats and whispers? [/b]
Are you getting this issue when using version 1.1+ of Moniker?
Report comment to moderator  
Reply With Quote
Unread 07-04-10, 01:54 PM  
Moxie
A Cobalt Mageweaver
 
Moxie's Avatar
AddOn Author - Click to view AddOns

Forum posts: 206
File comments: 126
Uploads: 2
I'm not using Yclasscolors at all. >.>
__________________
"Someday we'll look back on this, laugh nervously and quickly change the subject."

"The truth is like sunlight: people used to think it was good for you."
Report comment to moderator  
Reply With Quote
Unread 07-04-10, 01:53 PM  
Chrippa
A Kobold Labourer
 
Chrippa's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 18
Uploads: 6
This is strange. I've tried installing yClassColors but I'm still unable to reproduce the error you guys are getting. Are you guys using the latest version of yClassColors and does the error go away when you disable it?
Report comment to moderator  
Reply With Quote
Unread 07-04-10, 12:37 PM  
mornaistar
A Deviate Faerie Dragon
 
mornaistar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 15
File comments: 49
Uploads: 2
can you make it work with : http://www.wowinterface.com/download...lassColor.html ?

or shall i get
http://www.wowinterface.com/download...alIDToons.html ?


yup : there error is :

Code:
1x Moniker-1.2\Moniker.lua:107: 'setfenv' cannot change environment of given object
Moniker-1.2\Moniker.lua:107: in function <Moniker\Moniker.lua:76>

Locals:
self = <unnamed> {
 0 = <userdata>
}
e = "ADDON_LOADED"
addon = "Moniker"
env = <table> {
 BNGetFriendInfo = <function> @ Moniker\Moniker.lua:83:
 BNGetFriendInfoByID = <function> @ Moniker\Moniker.lua:95:
}
addonname = "Moniker"
origs = <table> {
 AddMessage = <table> {}
 BNGetFriendInfo = <function> defined =[C]:-1
 BNGetFriendInfoByID = <function> defined =[C]:-1
}
origname = ""
HookChatFrame = <function> @ Moniker\Moniker.lua:39:
GetNickname = <function> @ Moniker\Moniker.lua:25:

  ---
Last edited by mornaistar : 07-04-10 at 01:00 PM.
Report comment to moderator  
Reply With Quote
Unread 07-04-10, 09:44 AM  
Moxie
A Cobalt Mageweaver
 
Moxie's Avatar
AddOn Author - Click to view AddOns

Forum posts: 206
File comments: 126
Uploads: 2
Originally posted by Chrippa
I'm unable to reproduce this. I don't suppose you have a Lua error to paste for me?
I've noticed the same thing, and copied the error.

Code:
1x Moniker-1.2\Moniker.lua:107: 'setfenv' cannot change environment of given object
Moniker-1.2\Moniker.lua:107: in function <Moniker\Moniker.lua:76>

Locals:
self = <unnamed> {
 0 = <userdata>
}
e = "ADDON_LOADED"
addon = "Moniker"
env = <table> {
 BNGetFriendInfo = <function> @ Moniker\Moniker.lua:83:
 BNGetFriendInfoByID = <function> @ Moniker\Moniker.lua:95:
}
addonname = "Moniker"
origs = <table> {
 AddMessage = <table> {}
 BNGetFriendInfo = <function> defined =[C]:-1
 BNGetFriendInfoByID = <function> defined =[C]:-1
}
origname = ""
HookChatFrame = <function> @ Moniker\Moniker.lua:39:
GetNickname = <function> @ Moniker\Moniker.lua:25:

  ---
__________________
"Someday we'll look back on this, laugh nervously and quickly change the subject."

"The truth is like sunlight: people used to think it was good for you."
Report comment to moderator  
Reply With Quote
Unread 07-04-10, 09:25 AM  
Gallahead
A Defias Bandit
 
Gallahead's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 2
File comments: 199
Uploads: 1
Originally posted by mornaistar
for some reason, when i click rename now, nothing happens , it used to work with the 1st version
this issue comes from interaction with yclasscolor

but theres another issue i'd like getting solved
the name in real id whispers and conversations is still the same
is there any possibility displaying the nickname i gave my real id friends in chats and whispers?
Last edited by Gallahead : 07-04-10 at 09:28 AM.
Report comment to moderator  
Reply With Quote
Unread 07-04-10, 08:35 AM  
Chrippa
A Kobold Labourer
 
Chrippa's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 18
Uploads: 6
Originally posted by mornaistar
for some reason, when i click rename now, nothing happens , it used to work with the 1st version
I'm unable to reproduce this. I don't suppose you have a Lua error to paste for me?
Report comment to moderator  
Reply With Quote
Unread 07-04-10, 08:33 AM  
Chrippa
A Kobold Labourer
 
Chrippa's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 18
Uploads: 6
Originally posted by akasha1337
is it possible to color the name in the chatlog with their class color?
I believe this is what you're looking for:
http://www.wowinterface.com/download...alIDToons.html
Report comment to moderator  
Reply With Quote
Unread 07-04-10, 08:32 AM  
Chrippa
A Kobold Labourer
 
Chrippa's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 18
Uploads: 6
Originally posted by Ferous
I mean the edit polish box, the box when you press enter :P

example:

[Someonesname: Hey how are you]

and possibly change it to:

[charnametheyarecurrentlyon: Hey how are you]
I've added this in 1.2. Though not using current char name but the nickname you've set.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: