vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Your Notifications: 1 - Like XenForo? (https://vborg.vbsupport.ru/showthread.php?t=296767)

Gladius2007 04-01-2013 04:41 PM

Your Notifications: 1 - Like XenForo?
 
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 [DATE]1364844067[/DATE] at [TIME]1364844067[/TIME] ---------------

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

In the "navbar" template find:

Code:

                <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:

Code:

                <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 :)


All times are GMT. The time now is 09:24 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00954 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete