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.

Changing 'You have no new message' to other text-form.

View previous topic View next topic Go down

Solved Changing 'You have no new message' to other text-form.

Post by E-Mark on February 25th 2013, 1:34 pm

Hello!
May i ask for the Javascript Code of changing the "You have no new message"?
I'm planning to change it to "Mailbox". Thanks in advance!


Last edited by E-Mark on February 27th 2013, 11:59 am; edited 2 times in total

E-Mark
Active Poster

Male Posts : 1389
Reputation : 164
Language : English, Tagalog
Location : Republic of the Philippines

http://coding-spot.darkbb.com/

Back to top Go down

Solved Re: Changing 'You have no new message' to other text-form.

Post by Rhino.Freak on February 25th 2013, 1:53 pm

i think you should create buttons (images) for it

Rhino.Freak
Active Poster

Male Posts : 1243
Reputation : 105
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Solved Re: Changing 'You have no new message' to other text-form.

Post by E-Mark on February 25th 2013, 2:02 pm

It can be done with Javascript. I just forgot the code given to me by Gangstar15 :/.

E-Mark
Active Poster

Male Posts : 1389
Reputation : 164
Language : English, Tagalog
Location : Republic of the Philippines

http://coding-spot.darkbb.com/

Back to top Go down

Solved Re: Changing 'You have no new message' to other text-form.

Post by Neymar1 on February 25th 2013, 6:57 pm

So, just Mailbox? What about when they have 1 new PM?

Neymar1
Forumember

Male Posts : 406
Reputation : 27
Language : HTML, CSS, and a bit of JavaScript
Location : Scotland

http://www.simplyfifa.com

Back to top Go down

Solved Re: Changing 'You have no new message' to other text-form.

Post by Guest on February 25th 2013, 8:11 pm

Code:
        $(function(){
        $('a.mainmenu:contains("You have no new messages")').text('Call it whatever you want to');
        });

Guest
Guest


Back to top Go down

Solved Re: Changing 'You have no new message' to other text-form.

Post by Neymar1 on February 25th 2013, 10:14 pm

Something like this could be alright as well, maybe. Javascript, in all pages.

Code:
$(document).ready(function(){
  var x = document.getElementById('i_icon_mini_message');
  var y = document.getElementById('i_icon_mini_new_message');
  if(x) { x.parentNode.innerHTML="Mailbox"; }
  if(y) { y.parentNode.innerHTML="Mailbox: New Message!"; }
});

Neymar1
Forumember

Male Posts : 406
Reputation : 27
Language : HTML, CSS, and a bit of JavaScript
Location : Scotland

http://www.simplyfifa.com

Back to top Go down

Solved Re: Changing 'You have no new message' to other text-form.

Post by E-Mark on February 26th 2013, 12:12 pm

@Neymar:

Ahh, sorry, hahaha!
Btw, thanks, your code is working perfectly. Thank you too Coolyou!

E-Mark
Active Poster

Male Posts : 1389
Reputation : 164
Language : English, Tagalog
Location : Republic of the Philippines

http://coding-spot.darkbb.com/

Back to top Go down

Solved Re: Changing 'You have no new message' to other text-form.

Post by SLGray on February 26th 2013, 6:45 pm

Is this solved?


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


SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Changing 'You have no new message' to other text-form.

Post by E-Mark on February 27th 2013, 11:17 am

Yes!

E-Mark
Active Poster

Male Posts : 1389
Reputation : 164
Language : English, Tagalog
Location : Republic of the Philippines

http://coding-spot.darkbb.com/

Back to top Go down

Solved Re: Changing 'You have no new message' to other text-form.

Post by Sanket on February 27th 2013, 3:32 pm

Topic Solved & Locked

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.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