How can i change you have no messages to Inbox
4 posters
Page 1 of 1
How can i change you have no messages to Inbox
I really wanted to do this on my site and how can i do this, how can i change you have no messages to Inbox, here an image what im talking about:
I want to change this to Inbox
Please help me, If you can
Forum Version: PunBB
I want to change this to Inbox
Please help me, If you can
Forum Version: PunBB
Mr DarkHaxers2- Forumember
- Posts : 409
Reputation : -17
Language : English
Location : Modesto,Cali
Re: How can i change you have no messages to Inbox
Everyone someone asks this I challenge myself to do it another way lol.
Putting that in an announcement or widget will give you a nice new format for that link. It will be instant too, no flash of execution.
- Code:
<script>
(function(){var x= document.getElementById('i_icon_mini_message') ? 0 : /[0-9]/.exec(document.getElementById('i_icon_mini_new_message').title);
if(x){
document.getElementById('i_icon_mini_new_message').nextSibling.nodeValue = 'Inbox: '+x;
}else { document.getElementById('i_icon_mini_message').nextSibling.nodeValue = 'Inbox: 0'; }})();
</script>
Putting that in an announcement or widget will give you a nice new format for that link. It will be instant too, no flash of execution.
Last edited by LGforum on February 25th 2012, 11:30 pm; edited 3 times in total
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: How can i change you have no messages to Inbox
LGforum wrote:Everyone someone asks this I challenge myself to do it another way lol.
- Code:
<script>
(function(){x= document.getElementById('i_icon_mini_message') ? 0 : /[0-9]/.exec(document.getElementById('i_icon_mini_new_message').title);
if(x){
document.getElementById('i_icon_mini_new_message').nextSibling.nodeValue = 'Inbox: '+x;
}else { document.getElementById('i_icon_mini_message').nextSibling.nodeValue = 'Inbox: 0'; })();
</script>
Putting that in an announcement or widget will give you a nice new format for that link. It will be instant too, no flash of execution.
i put this code in Homepage>> Generalities but it did not change it
Mr DarkHaxers2- Forumember
- Posts : 409
Reputation : -17
Language : English
Location : Modesto,Cali
Re: How can i change you have no messages to Inbox
Sorry there was a character missing from the script. I have edited it now.
BUT you do realise that if you put it in the HOMEPAGE message then it will only change in the Homepage.
On an unrelatd note, why do you have the support forum listed as your site in your profile...?
BUT you do realise that if you put it in the HOMEPAGE message then it will only change in the Homepage.
On an unrelatd note, why do you have the support forum listed as your site in your profile...?
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: How can i change you have no messages to Inbox
ok updated the website fixed and i put the code in the templates>>Top of teh page but the you have no messages did not change
Last edited by Mr DarkHaxers2 on February 25th 2012, 7:21 pm; edited 1 time in total
Mr DarkHaxers2- Forumember
- Posts : 409
Reputation : -17
Language : English
Location : Modesto,Cali
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Re: How can i change you have no messages to Inbox
I said put it in an announcement of widget. Not templates. They are the only places it will work. Just do as mentioned.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: How can i change you have no messages to Inbox
ok, i put it in the widgets but it did not work
Mr DarkHaxers2- Forumember
- Posts : 409
Reputation : -17
Language : English
Location : Modesto,Cali
Re: How can i change you have no messages to Inbox
link to your forum please.
I tested this on punbb, worked wonderfully. It will work on all board types.
I tested this on punbb, worked wonderfully. It will work on all board types.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Mr DarkHaxers2- Forumember
- Posts : 409
Reputation : -17
Language : English
Location : Modesto,Cali
Re: How can i change you have no messages to Inbox
Okay a few things.
First of all, I'm confused, you said you put it in a widget, but yet don't have widgets on your forum.
Secondly, the first script I provided had an error in as I said, and I edited the post to fix that... but yet you still haven't updated your script... your still using the one with the error in it.
And thirdly, you have another script crashing, its your category toggle script.
First of all, I'm confused, you said you put it in a widget, but yet don't have widgets on your forum.
Secondly, the first script I provided had an error in as I said, and I edited the post to fix that... but yet you still haven't updated your script... your still using the one with the error in it.
And thirdly, you have another script crashing, its your category toggle script.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: How can i change you have no messages to Inbox
ok i don't used caggorie toggle so wuts the point and is this the new script:
- Code:
<script>
(function(){var x= document.getElementById('i_icon_mini_message') ? 0 : /[0-9]/.exec(document.getElementById('i_icon_mini_new_message').title);
if(x){
document.getElementById('i_icon_mini_new_message').nextSibling.nodeValue = 'Inbox: '+x;
}else { document.getElementById('i_icon_mini_message').nextSibling.nodeValue = 'Inbox: 0'; }})();
</script>
Mr DarkHaxers2- Forumember
- Posts : 409
Reputation : -17
Language : English
Location : Modesto,Cali
Re: How can i change you have no messages to Inbox
yes thats the new script.
If you don't use the category toggle script you should remove it.
If you don't use the category toggle script you should remove it.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: How can i change you have no messages to Inbox
ok topic solved then
Mr DarkHaxers2- Forumember
- Posts : 409
Reputation : -17
Language : English
Location : Modesto,Cali
Re: How can i change you have no messages to Inbox
Topic Solved & Locked |
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Similar topics
» Huge problem - Inbox::Messages
» Trying to change "inbox" to "new PM!" in custom navbar when user gets a message
» Is there anyway to change the private messages link?
» With this code you can change and delete only certain messages from chat?
» icon wont change sceditor-button-messages div
» Trying to change "inbox" to "new PM!" in custom navbar when user gets a message
» Is there anyway to change the private messages link?
» With this code you can change and delete only certain messages from chat?
» icon wont change sceditor-button-messages div
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum