The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    New Messages Button

    avatar
    ShowStopper
    Forumember


    Female Posts : 68
    Reputation : 1
    Language : English | HTML | Javascript | CSS

    Solved New Messages Button

    Post by ShowStopper Sun 28 Oct - 2:01

    Can I have some help writing CSS code that changes the messages button to display a different picture for how many new messages a person has? Like if it says "You have 3 new messages", then it can show a button picture that corresponds.

    Example of the kind of pic I'm talking about: New Messages Button Icon-Messages

    New Messages Button Icon-NewMessages (Except it would say "3 New Messages" or something similar)

    Does anyone know how to do this? I'm using phpBB2.


    Last edited by ShowStopper on Wed 14 Nov - 0:43; edited 2 times in total
    avatar
    ShowStopper
    Forumember


    Female Posts : 68
    Reputation : 1
    Language : English | HTML | Javascript | CSS

    Solved Re: New Messages Button

    Post by ShowStopper Sun 28 Oct - 2:07

    Unless you want to just insert the number the image?

    Is that what you want?

    Yes. That seems the most logical way to go about it.
    avatar
    ShowStopper
    Forumember


    Female Posts : 68
    Reputation : 1
    Language : English | HTML | Javascript | CSS

    Solved Re: New Messages Button

    Post by ShowStopper Sun 28 Oct - 2:23

    Awesome, thanks. I'm going to test it out right now.
    avatar
    ShowStopper
    Forumember


    Female Posts : 68
    Reputation : 1
    Language : English | HTML | Javascript | CSS

    Solved Re: New Messages Button

    Post by ShowStopper Sun 28 Oct - 2:30

    It still looks the same, was there anything I needed to do to the code to make it work? I'm still learning CSS, so I don't know how all of it works yet.
    avatar
    ShowStopper
    Forumember


    Female Posts : 68
    Reputation : 1
    Language : English | HTML | Javascript | CSS

    Solved Re: New Messages Button

    Post by ShowStopper Sun 28 Oct - 3:33

    Yes. I have a few other scripts working.
    avatar
    ShowStopper
    Forumember


    Female Posts : 68
    Reputation : 1
    Language : English | HTML | Javascript | CSS

    Solved Re: New Messages Button

    Post by ShowStopper Sun 28 Oct - 4:35

    I don't think that will be possible, as I'm not the main admin and I'd need permission to do that first. Would you be able to give me directions on what to look for or something like that?


    EDIT- I just saw it put the number in front of the button now. I guess it just took a bit to work or something. Is there a way to change the number into an image?
    avatar
    ShowStopper
    Forumember


    Female Posts : 68
    Reputation : 1
    Language : English | HTML | Javascript | CSS

    Solved Re: New Messages Button

    Post by ShowStopper Mon 12 Nov - 18:53

    Bump

    I'd like to just make the number larger. How would I do that?
    avatar
    ShowStopper
    Forumember


    Female Posts : 68
    Reputation : 1
    Language : English | HTML | Javascript | CSS

    Solved Re: New Messages Button

    Post by ShowStopper Wed 14 Nov - 0:42

    Thanks, it works perfectly now.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3524
    Language : English
    Location : United States

    Solved Re: New Messages Button

    Post by SLGray Wed 14 Nov - 2:25

    Topic Solved & Locked



    New Messages Button Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is Wed 13 Nov - 22:17