Delete brackets in the notification button
+2
SLGray
bodahassan
6 posters
Page 1 of 1
Delete brackets in the notification button
Technical Details
Forum version : #phpBB3
Position : Founder
Concerned browser(s) : Mozilla Firefox, Google Chrome
Screenshot of problem : https://i.servimg.com/u/f35/13/76/93/58/fm_des10.png
Who the problem concerns : Yourself
Forum link : http://www.koutstore.com
Description of problem
Good eveningIs there a way can do it with JavaScript or css
To delete the brackets in the notification button, I want only numbers without bracket
This is very important to me Because I want to edit the button
<span id="notif_unread">(5)</span>
Re: Delete brackets in the notification button
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Delete brackets in the notification button
Thanks , but I guess you do not really try to help !!!!!!!!!!!!!!!!!!!!!!
You just put any reply
Can you @SLGray explain to me how this tutorial will help me to delete this brakets ??
You just put any reply
Can you @SLGray explain to me how this tutorial will help me to delete this brakets ??
Re: Delete brackets in the notification button
@bodahassan you could try this solution :
http://fmdesign.forumotion.com/t650-solved-how-to-remove-parenthesis-on-notifications
If it doesn't work let us know.
http://fmdesign.forumotion.com/t650-solved-how-to-remove-parenthesis-on-notifications
If it doesn't work let us know.
Re: Delete brackets in the notification button
Thank you a lots @Ange Tuteur
When I add the code in consle it works
But when I add it in JavaScript panel it not working
Is there a solution ??
- Code:
$(document).ready(function(){
$("span#notif_unread").text($("span#notif_unread").text().match(/[^()]+/g))
});
When I add the code in consle it works
But when I add it in JavaScript panel it not working
Is there a solution ??
Re: Delete brackets in the notification button
Do you have JavaScript Management activated?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Delete brackets in the notification button
SLGray wrote:Do you have JavaScript Management activated?
yes
Re: Delete brackets in the notification button
Did you try this one:
- Code:
$(function(){
setInterval(function () {
$("#notif_unread").length && $("#notif_unread").text(function (d, c) {
return c.replace(/\(|\)/g, "")
})
}, 200);
});
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Delete brackets in the notification button
Yes but it slows down browsingSLGray wrote:Did you try this one:
- Code:
$(function(){
setInterval(function () {
$("#notif_unread").length && $("#notif_unread").text(function (d, c) {
return c.replace(/\(|\)/g, "")
})
}, 200);
});
Re: Delete brackets in the notification button
Where the support team, what all this carelessness !!!!!!!!!!!!!!!!
5 days and did not solve the problem
And if the support team is not qualified to answer queries and issues of Members why if they are within the staff
5 days and did not solve the problem
And if the support team is not qualified to answer queries and issues of Members why if they are within the staff
Re: Delete brackets in the notification button
bodahassan wrote:Where the support team, what all this carelessness !!!!!!!!!!!!!!!!
5 days and did not solve the problem
And if the support team is not qualified to answer queries and issues of Members why if they are within the staff
Please don't use bold or color and keep to the default text. This is reserved for the staff for moderation. Thank you.
|
Please Don't be so rude we are here to help if we can
Please note all the staff here are voluntary all but the pro admin's that work in the head office.
We all work from our homes and give up our own time to help you and others around here.
Not all of us know coding but we know more about the way our system works and how to help other on other things.
Re: Delete brackets in the notification button
If every team had no coding experience why this Scripts (Coding) Problems forum exists ؟!
I haven't found any solutions to my problems since i registered on support forum only find silly responses from the support team ,All this and tell me that I'm rude And not the rudeness of your team. !!!!
Strong support does not make members waiting more than five days to solve his problem
I haven't found any solutions to my problems since i registered on support forum only find silly responses from the support team ,All this and tell me that I'm rude And not the rudeness of your team. !!!!
Strong support does not make members waiting more than five days to solve his problem
Re: Delete brackets in the notification button
Since @Ange Tuteur is the one who offered a solution, you will have to wait until Ange Tuteur logs on and sees that you still need help.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Delete brackets in the notification button
Hi, I tested your code and it works fine. I haven't noticed it slowing down my browsing.
If it is slowing down yours, it's cause the code you are using basically is set to run every 200 milliseconds.
If it is slowing down yours, it's cause the code you are using basically is set to run every 200 milliseconds.
Re: Delete brackets in the notification button
- Code:
$(function(){
setInterval(function () {
$("#notif_unread").length && $("#notif_unread").text(function (d, c) {
return c.replace(/\(|\)/g, "")
})
}, 200);
});
- Code:
$(function(){
$("#notif_unread").length && $("#notif_unread").text(function (d, c) {
return c.replace(/\(|\)/g, "")
})
});
Ch@lo Valdez- Forumember
- Posts : 138
Reputation : 50
Language : spanish
Re: Delete brackets in the notification button
bodahassan wrote: Thank you a lots @Ange Tuteur
- Code:
$(document).ready(function(){
$("span#notif_unread").text($("span#notif_unread").text().match(/[^()]+/g))
});
When I add the code in consle it works
But when I add it in JavaScript panel it not working
Is there a solution ??
try this way:
- Code:
$(function(){
$(function(){
var a = $("span#notif_unread");
a.text(a.text().match(/[^()]+/g))
});
});
Ch@lo Valdez- Forumember
- Posts : 138
Reputation : 50
Language : spanish
Re: Delete brackets in the notification button
- Code:
$(function(){
$("#notif_unread").length && $("#notif_unread").text(function (d, c) {
return c.replace(/\(|\)/g, "")
})
});
- Code:
$(function(){
$(function(){
var a = $("span#notif_unread");
a.text(a.text().match(/[^()]+/g))
});
});
Thank you but this codes did not work with me.
Ch@lo Valdez- Forumember
- Posts : 138
Reputation : 50
Language : spanish
Similar topics
» Custom notification button
» no Delete button!
» Delete Button..
» Delete all button for the Notifications
» Needed: Delete button
» no Delete button!
» Delete Button..
» Delete all button for the Notifications
» Needed: Delete button
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum