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.

New Messages Button

2 posters

Go down

Solved New Messages Button

Post by ShowStopper October 28th 2012, 2:01 am

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 November 14th 2012, 12:43 am; edited 2 times in total
avatar
ShowStopper
Forumember

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

http://heroesnetwork.forumotion.net

Back to top Go down

Solved Re: New Messages Button

Post by ShowStopper October 28th 2012, 2:07 am

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

http://heroesnetwork.forumotion.net

Back to top Go down

Solved Re: New Messages Button

Post by ShowStopper October 28th 2012, 2:23 am

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

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

http://heroesnetwork.forumotion.net

Back to top Go down

Solved Re: New Messages Button

Post by ShowStopper October 28th 2012, 2:30 am

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

http://heroesnetwork.forumotion.net

Back to top Go down

Solved Re: New Messages Button

Post by ShowStopper October 28th 2012, 3:33 am

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

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

http://heroesnetwork.forumotion.net

Back to top Go down

Solved Re: New Messages Button

Post by ShowStopper October 28th 2012, 4:35 am

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

http://heroesnetwork.forumotion.net

Back to top Go down

Solved Re: New Messages Button

Post by ShowStopper November 12th 2012, 6:53 pm

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

http://heroesnetwork.forumotion.net

Back to top Go down

Solved Re: New Messages Button

Post by ShowStopper November 14th 2012, 12:42 am

Thanks, it works perfectly now.
avatar
ShowStopper
Forumember

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

http://heroesnetwork.forumotion.net

Back to top Go down

Solved Re: New Messages Button

Post by SLGray November 14th 2012, 2:25 am

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.
SLGray
SLGray
Administrator
Administrator

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

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum