ProIcons   -  Jan 21, 2013

@Hawkee the Number of Notifications on top of the Exclamation mark how are called? I mean i can't find how to accomplish that. I'm trying to create a notif system for my Gaming Servers Interface... but i don't know how to accomplish it , any ideas? I'm using bootstrap with

Conscious  -  Jan 21, 2013

Unread notifications?

ProIcons  -  Jan 22, 2013

yea

Conscious  -  Jan 22, 2013

You'd need to have a field in your database table, probably a boolean then you simply query

SELECT COUNT(*) as unread FROM tablename WHERE userid=? AND unread=1

and when they view the notifications,

UPDATE tablename SET unread=0 WHERE userid=?

or something like that, anyway

ProIcons  -  Jan 22, 2013

I know this its not what i'm searching. I wasn't never good with css at all. I want the solution to add a Counter Indicator on the ICON thats what i'm searching if there is a ready function for that, if not i think i will manage to do it by my self.

Conscious  -  Jan 22, 2013

make an element, set its text the the number, and have the background-image in CSS of a colour you want, or something o.o

ProIcons  -  Jan 22, 2013

I'm stupid :D

Hawkee  -  Jan 22, 2013

Are you using Bootstrap?

ProIcons  -  Jan 22, 2013

yes

Edit: your question was about the comment with video i deleted? I found the solution for that

ProIcons  -  Jan 22, 2013

I've tried them i probably have to Reposition them with css

Hawkee  -  Jan 22, 2013

Yes, you'll probably need to set position: absolute and adjust the top and right CSS values to position it.

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.