vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Private Messages Enhancements - Simple Additional PM Notification (https://vborg.vbsupport.ru/showthread.php?t=262898)

boydy 04-29-2011 10:00 PM

Simple Additional PM Notification
 
1 Attachment(s)
Hi guys,

This mod/hack gives you a very simple yet much more noticeable Private Message notification. When the user has any PM's a red box will be added to the header of your website notifying the user of a new PM. It has animated text which is shown in the .gif screenshot attached below.

=|= Install =|=


Open Template - header

Add at Top -

Code:

<!-- Private Message Alert -->
<style type="text/css">
.alert {
    background-color:#F00;
    width:100%;
    height:30px;
    color:#fff;
    font-size:14px;
    display:block;
}
.alert p {
    padding:5px;
}
.alert a {
    color:#ccc;
    text-decoration:none;
}
</style>
<vb:if condition="$bbuserinfo[pmunread]">
<div class="alert">
<p><span style="text-decoration:blink; font-weight:bold;">ATTENTION! {vb:raw bbuserinfo.username}</span> You've got {vb:raw bbuserinfo.pmunread} unread private message(s), click <a href="private.php">here</a> to view.</p></div>
</vb:if>
<!-- Private Message Alert End -->


Demo: https://vborg.vbsupport.ru/attachmen...5&d=1304172078

Simple, yet very effective, i just felt my forum needed something that stood out a bit more but didn't want anything massive.

Enjoy! And please remember to mark as installed for future updates and support!

Boydy

For alert's on all notifications go here - https://vborg.vbsupport.ru/showthread.php?t=262940

Juggernaut 04-30-2011 04:45 PM

Looks good, will try out now. :)

COL NIL SATIS 04-30-2011 06:18 PM

This looks sweet!!!! will give it a whirl now...cheers

Krusty1231 04-30-2011 06:19 PM

Works great! Thanks Installed!

COL NIL SATIS 04-30-2011 06:31 PM

Tested...that's spot on that is Boydy,looks class too...installed and rates 5 for its effectiveness

boydy 04-30-2011 06:34 PM

No problem mate, glad you like it :)

Jimandbob 04-30-2011 06:55 PM

Thanks boydy, installed and 5 stars :)

goxy63 04-30-2011 10:20 PM

Great, thank you

When you read new message notification is still on, this would be perfect if notification would dissapear when you open new message
Anyways great mod, installed, nominated, rated

EasyEazy 05-01-2011 02:37 AM

Nice work. Installed and tested. Working great

Juggernaut 05-01-2011 03:57 AM

If this was for all notifications, I would use it, but it's only for pm's. :)


All times are GMT. The time now is 12:07 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.01415 seconds
  • Memory Usage 1,730KB
  • 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
  • (1)bbcode_code_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