1. #1

    Removing social icon from chat window

    Hi,

    I found the following code which hides the social icon from the chat window, but the icon comes back after you log off/on.

    Code:
    /run local b = QuickJoinToastButton b:UnregisterAllEvents() b:SetScript("OnShow", b.Hide) b:Hide() UIParent:UnregisterEvent("UNIT_AURA")

    Is there a way to make it so that it will be hidden permanently?

    Thanks.
    Last edited by Eommus; 2017-03-08 at 04:39 PM.

  2. #2
    Yes, turn it into an addon with http://addon.bool.no/

  3. #3
    Get Prat, the best chat addon.

    Show class colors in chat, copy links, etc. Of course hide the social menu
    Last edited by Alfakennyone; 2017-03-08 at 09:00 PM.

  4. #4
    Can anyone say what the following is used for in the code I mentioned in 1st post?

    Code:
    UIParent:UnregisterEvent("UNIT_AURA")

    Is it necessary for this task?
    Last edited by Eommus; 2017-05-20 at 09:13 AM.

  5. #5
    The Lightbringer Sett's Avatar
    10+ Year Old Account
    Join Date
    Aug 2009
    Location
    MogIt probably.
    Posts
    3,975
    Ohhh thank goodness for these suggestions.
    Quote Originally Posted by A Chozo View Post
    Humans Paladins don't have "a lot of lore" behind them.

  6. #6
    Quote Originally Posted by Eommus View Post
    Can anyone say what the following is used for in the code I mentioned in 1st post?
    Code:
    UIParent:UnregisterEvent("UNIT_AURA")

    Is it necessary for this task?

    It's not necessary. I'm guessing someone took that part from HideOrderHallBar

    https://github.com/Gethe/wow-ui-sour...ua#L1890-L1891

  7. #7
    Quote Originally Posted by Ketho View Post
    It's not necessary.
    Thank you. I don't like simply copy pasting code without understanding what it does, hence I asked.

  8. #8
    apparently my help gets discredited since its "not needed". I don't know why I bother trying to help anyways.
    Last edited by Onatala; 2017-05-20 at 11:20 PM.

  9. #9
    Quote Originally Posted by Onatala View Post
    However, if you just want the stand alone addon to hide the social button window you could have easily made one yourself. If you're not sure how then you can follow the steps:

    Sure, you can make one yourself but it's a lot easier to just use http://addon.bool.no/

    In your example the TOC is supposed to be 70200 and there's no need to use XML and respond to the PLAYER_ENTERING_WORLD event here
    http://www.mmo-champion.com/threads/...lve-easy-steps

  10. #10
    Okay, I guess my help was pointless.

  11. #11
    Quote Originally Posted by Onatala View Post
    Okay, I guess my help was pointless.
    I for one appreciate genuine offers of help.
    Regardless of whether it becomes redundant or not.
    So I thank you for that, even if I was not the recipient.

    We see too much unpleasant behaviour on here and in-game.
    It is nice to see effort to help someone.
    Quote Originally Posted by DeadmanWalking View Post
    Your forgot to include the part where we blame casuals for everything because blizzard is catering to casuals when casuals got jack squat for new content the entire expansion, like new dungeons and scenarios.
    Quote Originally Posted by Reinaerd View Post
    T'is good to see there are still people valiantly putting the "Ass" in assumption.

  12. #12
    Quote Originally Posted by Onatala View Post
    apparently my help gets discredited since its "not needed". I don't know why I bother trying to help anyways.
    Quote Originally Posted by Onatala View Post
    Okay, I guess my help was pointless.

    Yeah help is fine, I'm just saying that if you choose to make an addon manually...
    • you usually don't have to include the XML
    • and in this case don't have to wait for the PLAYER_ENTERING_WORLD event

    [HowTo] Make a code snippet into an addon in twelve easy steps

    HideSocial.toc
    Code:
    ## Interface: 70200
    ## Version: 1.0
    ## Title: HideSocial
    
    HideSocial.lua

    HideSocial.lua
    Code:
    local b = QuickJoinToastButton
    b:UnregisterAllEvents()
    b:SetScript("OnShow", b.Hide)
    b:Hide()

    Considering http://addon.bool.no/ seems down at the moment

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •