Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Background Color New PM Notification Details »»
Background Color New PM Notification
Version: 1.00, by jdk10 jdk10 is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 3.6.0 Rating:
Released: 08-19-2006 Last Update: 08-19-2006 Installs: 73
Template Edits
 
No support by the author.

I couldn't find a mod for changing the background of the welcome box when the member has a new PM, so I decided to write one. This is my first mod so be nice

I have tested it with vB 3.6.0 and it works flawlessly.

In the navbar template
Find:
Code:
<td class="alt2" valign="top" nowrap="nowrap">
Replace with:
Code:
<if condition="$bbuserinfo['pmunread']">
	<td class="pmbg" valign="top" nowrap="nowrap">
<else />
	<td class="alt2" valign="top" nowrap="nowrap">
</if>

Next, go to Style Manager > Main CSS and scroll to the very bottom. Under Additional CSS Definitions add the following to the bottom box.

Code:
.pmbg { background-color: #33CCFF; color: #000000;}
Hit save and you are done.

Don't forget to click INSTALL

Show Your Support

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

Comments
  #12  
Old 08-26-2006, 07:37 PM
jdk10 jdk10 is offline
 
Join Date: Apr 2005
Location: Florida
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

He gave the code to change the background color. He didn't give any code to show if there is a new message or not. Its a stupid little hack to change the background color. If someone told me the hex for the color white text and I go create a hack changing text white, it doesn't mean they told me how to write the mod.
Reply With Quote
  #13  
Old 08-26-2006, 07:38 PM
jdk10 jdk10 is offline
 
Join Date: Apr 2005
Location: Florida
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by o0Hubba0o
Well, not bad for your first, and I'll try to be nice. However didn't you get this from ericgtr's hack? Which I guess is cool too, that's how I'm learning, from other peoples work, but you should give credit to where you got the idea.
Reply With Quote
  #14  
Old 08-27-2006, 07:44 PM
therocks therocks is offline
 
Join Date: Mar 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod! thanks!
Reply With Quote
  #15  
Old 08-28-2006, 05:21 PM
o0Hubba0o's Avatar
o0Hubba0o o0Hubba0o is offline
 
Join Date: Mar 2005
Location: Minnesota
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jdk10
He gave the code to change the background color. He didn't give any code to show if there is a new message or not. Its a stupid little hack to change the background color. If someone told me the hex for the color white text and I go create a hack changing text white, it doesn't mean they told me how to write the mod.
hex color and changing the font color isn't quite the same thing, sorry, nice try. the table class: pmbg and adding it to the css was told to you by eric in his post. Basically you just took what he told you to do and made it your's without giving credit.

If this is what people want for their pm's great, you provided a seperate thread with this idea, but you didn't write it yourself, just released it after getting the info from eric.
Reply With Quote
  #16  
Old 08-28-2006, 06:20 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Who cares? It's all open-source anyway; technically you're stealing from the person who created PHP - or HTML, in this case.
Reply With Quote
  #17  
Old 08-28-2006, 07:14 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Who cares ? - the person who wrote it might care - you can't just go around copying other peoples code and releasing it as your own. I suggest you contact eric and ask.
Reply With Quote
  #18  
Old 08-28-2006, 08:09 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe it was already discussed in Eric's original thread - he didn't sound too happy, but he wasn't freaking out.
Reply With Quote
  #19  
Old 09-06-2006, 05:27 AM
TheBlackPoet's Avatar
TheBlackPoet TheBlackPoet is offline
 
Join Date: May 2006
Location: Pasadena, Texas, USA
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was hating that my members had to look up and see they had a msg TEN MINUTES AGO..... this is a great idea and my mems preciate it~
Reply With Quote
  #20  
Old 09-19-2006, 05:41 PM
trainer trainer is offline
 
Join Date: Nov 2001
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ben Wilkins
Awsome, is there a way i can make it flash back to white then back to blue and so on?

couldn't you use this code to set the background as a flashing .gif image? that would allow you to have it flashing
Reply With Quote
  #21  
Old 09-20-2006, 12:12 AM
MRGTB MRGTB is offline
 
Join Date: Dec 2004
Posts: 548
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by acidburn0520
Who cares? It's all open-source anyway; technically you're stealing from the person who created PHP - or HTML, in this case.
agree
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 10:54 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.04620 seconds
  • Memory Usage 2,307KB
  • 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
  • (3)bbcode_code
  • (4)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
  • (3)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