Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Change Userinfo Box on New Notification Details »»
Change Userinfo Box on New Notification
Version: 1.1, by nix nix is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 3.7.0 Beta 4 Rating:
Released: 01-10-2008 Last Update: 01-31-2008 Installs: 142
Uses Plugins Auto-Templates
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 04-12-2008, 05:56 PM
RvG2 RvG2 is offline
 
Join Date: Jan 2007
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well said
Reply With Quote
  #43  
Old 04-12-2008, 06:03 PM
nix's Avatar
nix nix is offline
 
Join Date: Mar 2005
Posts: 975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea. Seems like a growing trend.

I just don't see why its so difficult to change this line

Code:
<td class="inlinemod" nowrap="nowrap">
to what ever you want.

Code:
<td class="mycss" nowrap="nowrap">
and then add this to the additional css in the style.

Code:
.mycss {background: #FFFFCC; color: #000;}
or if you want an image like how I have it

Code:
.mycss {background: transparent url(/path/to/my/image.png) no-repeat scroll right top;}
But to use an image to change the background color, well thats just...
Reply With Quote
  #44  
Old 04-12-2008, 07:05 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any way to make that image a tad smaller or transparent and include it in the first post? I'd like to try that, just for the heck of it.
Reply With Quote
  #45  
Old 04-12-2008, 07:30 PM
nix's Avatar
nix nix is offline
 
Join Date: Mar 2005
Posts: 975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what do you mean?
Reply With Quote
  #46  
Old 04-12-2008, 08:13 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The pic you use for your background.
Reply With Quote
  #47  
Old 04-17-2008, 05:30 PM
carrlos's Avatar
carrlos carrlos is offline
 
Join Date: Nov 2006
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nix View Post
Yea. Seems like a growing trend.

I just don't see why its so difficult to change this line
But to use an image to change the background color, well thats just...
In my defense, I don't use an image to change the background color but use an animated .gif file to flash the box. I don't know who came up with idea first and I really don't care. They both work. As for this one, for me it is more work because I am an average guy (read: non-coder) and find it more easy to reupload an image rather than recode something everytime I want to change it. That is the ease that I and many others find in a slightly different version of this hack.

But keep up the good work because it definitely is good work. :up:
Reply With Quote
  #48  
Old 04-22-2008, 10:06 PM
rapidphim rapidphim is offline
 
Join Date: Feb 2007
Posts: 733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works on RC3 right? Would someone please confirm? Thanks.
Reply With Quote
  #49  
Old 04-27-2008, 05:39 PM
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rapidphim View Post
It works on RC3 right? Would someone please confirm? Thanks.
I used on RC4! It works perfectly..
Reply With Quote
  #50  
Old 04-28-2008, 10:32 PM
nix's Avatar
nix nix is offline
 
Join Date: Mar 2005
Posts: 975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there is a 3.7 version but they are the same.
Reply With Quote
  #51  
Old 05-21-2008, 11:33 AM
Super Jinni Super Jinni is offline
 
Join Date: Mar 2008
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nix View Post
Yea. Seems like a growing trend.

I just don't see why its so difficult to change this line

Code:
<td class="inlinemod" nowrap="nowrap">
to what ever you want.

Code:
<td class="mycss" nowrap="nowrap">
and then add this to the additional css in the style.

Code:
.mycss {background: #FFFFCC; color: #000;}
or if you want an image like how I have it

Code:
.mycss {background: transparent url(/path/to/my/image.png) no-repeat scroll right top;}
But to use an image to change the background color, well thats just...
none of that works for me and the background color changed only to black

any idea about how to move around this please?

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:15 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08056 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete