PDA

View Full Version : Your Notifications: 1 - Like XenForo?


Gladius2007
04-01-2013, 04:41 PM
When you get a new notification in vBulletin, it's not very visible. XenForo does this much more visibly, with the number of new notifications in white text in a red square with rounded corners.

Is there a mod out there that changes the vB notifications to look like that?

If not, where can I edit the "Your Notifications: 1" block to put the number in a more visible red square?

--------------- Added 1364844067 at 1364844067 ---------------

OK, done it myself. In case anyone else wants it:

In the "navbar" template find:

<if condition="$show['notifications']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>

replace it with:

<if condition="$show['notifications']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <div style="background-color: red; display:inline; border-radius: 3px;"><span style="color: white;"><strong>&nbsp; $notifications_total &nbsp;</strong></span></div></span></div>

And you're done.

vijayninel
04-02-2013, 09:13 AM
That's good, but not perfect :D Let me give it a try.

Gladius2007
04-02-2013, 02:43 PM
You can add border-radius: 3px; to the red div for rounded corners. ;) Updated original post.

Brandon Sheley
04-02-2013, 02:48 PM
Could you add a screenshot of before and after?

Gladius2007
04-02-2013, 03:05 PM
Can't do before any more as I've got this running, but I can do after:

https://vborg.vbsupport.ru/external/2013/04/57.png

Brandon Sheley
04-02-2013, 03:11 PM
nice, thanks :)