The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

New Messages Button

View previous topic View next topic Go down

Solved New Messages Button

Post by ShowStopper on October 27th 2012, 5:01 pm

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:

(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 13th 2012, 3:43 pm; edited 2 times in total

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 on October 27th 2012, 5:07 pm

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.

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 on October 27th 2012, 5:23 pm

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

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 on October 27th 2012, 5:30 pm

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.

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 on October 27th 2012, 7:33 pm

Yes. I have a few other scripts working.

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 on October 27th 2012, 8:35 pm

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?

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 on November 12th 2012, 9:53 am

Bump

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

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 on November 13th 2012, 3:42 pm

Thanks, it works perfectly now.

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 on November 13th 2012, 5:25 pm

Topic Solved & Locked


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


SLGray
Administrator
Administrator

Male Posts : 36735
Reputation : 2447
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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