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

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
E-Mark
Active Poster

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

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
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
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
E-Mark
Active Poster

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

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

Male Posts : 406
Reputation : 28
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');
        });
avatar
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
Neymar1
Forumember

Male Posts : 406
Reputation : 28
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
E-Mark
Active Poster

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

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?


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 : 46711
Reputation : 3276
Language : English
Location : United States

https://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
E-Mark
Active Poster

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

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
Sanket
ForumGuru

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

Back to top Go down

Back to top


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