vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Private Messages Enhancements - Change Userinfo Box on New Notification (https://vborg.vbsupport.ru/showthread.php?t=167539)

nix 01-10-2008 10:00 PM

Change Userinfo Box on New Notification
 
This will change the Navbar where the userinfo is to a different color when a user has a unread private message, unread profile message, profile visitor message awaiting approval, incoming friends request, requests to join users social group or an invitation to join social groups.

This can be done with a simple template edit but I do this on so many forums I'm tired of doing the template edit every update. So this hack is born.

1.1 - Fixed the code to match 3.7 (thanks boofo for bringing it up)

Install Info:
  1. Import the product.
  2. done.

See SS for example.

How to change the style:

I used the td.inlinemod class for the color effect. If you wish to use your own just create some custom CSS and add it in the additional CSS field in you style manager for the styles you use. You could also add a background image in your custom CSS for other effect.

To change the CSS go into the options page for this hack and where it says replacment text change the following:

Code:

<td class="inlinemod" nowrap="nowrap">

Now you would replace the text in red "inlinemod" to your custom CSS. Depending on your style it would look something like this.

Code:

<td class="yourcss" nowrap="nowrap">

youradhere4222 01-11-2008 08:23 PM

Very nice!

JAuthement 01-12-2008 12:36 AM

Nice mod ... made a few CSS changes to suite my site but overall assessment of this is "Very Nice" and simple!!

Zaiaku 01-13-2008 03:34 PM

Nice simple and very useful

Golzarion 01-13-2008 04:14 PM

I used This modification too. but now I have a problem in navbar view.

I attached the problem screen shot .

How should I changed the navbar to affect the complete color changing ?

Golzarion 01-15-2008 05:09 PM

no idea ?

nix 01-15-2008 07:28 PM

Just change the css or what the mod is looking for in the template.

:Judge: 01-16-2008 08:02 AM

Had a issue but fixed after simply looking at it.

I had to use this:
Code:

<td class="inlinemod" nowrap="nowrap">
because there was no valign in my code.

Thanks!

nix 01-16-2008 07:29 PM

Quote:

Originally Posted by :Judge: (Post 1422392)
Had a issue but fixed after simply looking at it.

I had to use this:
Code:

<td class="inlinemod" nowrap="nowrap">
because there was no valign in my code.

Thanks!

Yea that was just left over from vb 3.6 directions.

Ohiosweetheart 01-26-2008 12:32 PM

GREAT idea! I'll be using this for sure.


All times are GMT. The time now is 09:59 PM.

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.01061 seconds
  • Memory Usage 1,734KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete