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.

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

5 posters

Go down

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

Post by E-Mark Mon 25 Feb 2013 - 13:34

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 Wed 27 Feb 2013 - 11:59; edited 2 times in total
E-Mark
E-Mark
Active Poster

Male Posts : 1412
Reputation : 169
Language : English
Location : Bitcoin

View user profile 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 Mon 25 Feb 2013 - 13:53

i think you should create buttons (images) for it
Rhino.Freak
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
Language : English
Location : Mumbai, India

View user profile 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 Mon 25 Feb 2013 - 14:02

It can be done with Javascript. I just forgot the code given to me by Gangstar15 :/.
E-Mark
E-Mark
Active Poster

Male Posts : 1412
Reputation : 169
Language : English
Location : Bitcoin

View user profile 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 Mon 25 Feb 2013 - 18:57

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

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

View user profile http://www.simplyfifa.com

Back to top Go down

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

Post by Guest Mon 25 Feb 2013 - 20:11

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


Back to top Go down

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

Post by Neymar1 Mon 25 Feb 2013 - 22:14

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
Neymar1
Forumember

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

View user profile 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 Tue 26 Feb 2013 - 12:12

@Neymar:

Ahh, sorry, hahaha!
Btw, thanks, your code is working perfectly. Thank you too Coolyou!
E-Mark
E-Mark
Active Poster

Male Posts : 1412
Reputation : 169
Language : English
Location : Bitcoin

View user profile 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 Tue 26 Feb 2013 - 18:45

Is this solved?


Changing 'You have no new message' to other text-form. 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 : 50343
Reputation : 3473
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by E-Mark Wed 27 Feb 2013 - 11:17

Yes!
E-Mark
E-Mark
Active Poster

Male Posts : 1412
Reputation : 169
Language : English
Location : Bitcoin

View user profile 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 Wed 27 Feb 2013 - 15:32

Topic Solved & Locked
Sanket
Sanket
ForumGuru

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

View user profile

Back to top Go down

Back to top

- Similar topics

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