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

mitch84 05-01-2011 04:43 AM

thank you, installed

boydy 05-01-2011 09:18 AM

Quote:

Originally Posted by Juggernaut (Post 2190548)
If this was for all notifications, I would use it, but it's only for pm's. :)

Watch this space, update coming later today :)

boydy 05-01-2011 12:34 PM

For those after a mod/hack that displays all notifications in a similar manner i have added a new modification - https://vborg.vbsupport.ru/showthread.php?t=262940

Juggernaut 05-01-2011 05:54 PM

Thank you boydy. :D

UKCE_Hitman 05-02-2011 11:49 AM

Great job Thanks Installed

COL NIL SATIS 05-02-2011 05:38 PM

Quote:

Originally Posted by boydy (Post 2190643)
For those after a mod/hack that displays all notifications in a similar manner i have added a new modification - https://vborg.vbsupport.ru/showthread.php?t=262940


Super,will check that now mate...top stuff:)

steve1966 05-04-2011 07:58 AM

Brilliant thank you

zonaenlinea 05-09-2011 01:51 PM

thanks

midgetgrimm 05-10-2011 11:30 PM

Quote:

Originally Posted by goxy63 (Post 2190494)
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

This for me as well, it stays on, also, Is there any way to adjust the size of the box, when I edit the 'width' parameter, it only subtracts from the right, and I have tried to center it, but nothing I do seems to work. Any thoughts on this? Also great mod and marked as well, nice work mate:up:


***I answered my own question**** Very simple, justput a <center></center> around your <vb></vb> ******
Still wish it would go away after your in your message area

JasonP38 05-11-2011 12:03 AM

installed, thanks. :)

boydy 05-12-2011 07:47 AM

Quote:

Originally Posted by trunkride (Post 2194246)
This for me as well, it stays on, also, Is there any way to adjust the size of the box, when I edit the 'width' parameter, it only subtracts from the right, and I have tried to center it, but nothing I do seems to work. Any thoughts on this? Also great mod and marked as well, nice work mate:up:


***I answered my own question**** Very simple, justput a <center></center> around your <vb></vb> ******
Still wish it would go away after your in your message area

I can't really do anything about issues with other peoples hacks/mods. I can however say that to center it, set the width you want and add margin: 0 auto; to the class.

midgetgrimm 05-13-2011 12:58 PM

Quote:

Originally Posted by boydy (Post 2194682)
I can't really do anything about issues with other peoples hacks/mods. I can however say that to center it, set the width you want and add margin: 0 auto; to the class.

Im sure that works as well, I just set my width and put <center> tags around the <vb> part of it, and bingo bongo. Thanks for the extra help though, always good to know more than one way..

blackrat250 05-15-2011 07:20 PM

Excellent Mod. Installed and 5 stars !!

MrAd 06-01-2011 08:41 PM

works for 3.8.x as well ?

MrAd 06-03-2011 09:18 AM

it look like a greta modification, can somebody adjust it to 3.8.x ?

boydy 06-03-2011 05:35 PM

I'll sort it out for you mate shortly, some things to do first.

boydy 06-03-2011 05:57 PM

Ok, without testing MrAd try this,

Template - Header

Add to 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>
<if condition="$bbuserinfo[pmunread]">
<div class="alert">
<p><span style="text-decoration:blink; font-weight:bold;">ATTENTION! $bbuserinfo[username]</span> You've got $bbuserinfo[pmunread] unread private message(s), click <a href="private.php">here</a> to view.</p></div>
</if>
<!-- Private Message Alert End -->

Should work fine...

MrAd 06-04-2011 04:05 PM

thanks works smooth!, only question how can I make this align center ?

boydy 06-05-2011 02:51 PM

Add margin: 0 auto; to the alert class, or copy below;

Code:

.alert {
    background-color:#F00;
    width:100%;
    height:30px;
    color:#fff;
    font-size:14px;
    display:block;
    margin: 0 auto;
}


saimon69 07-08-2011 06:54 PM

ok i would like something a bit different: mean i would like that instead of the pop-up window, the new message notification might happen via AJAX in an html layer since i tihnk most of modern users have some sort of pop-up blocker on; there is any mod for CMS that does this?

boydy 07-09-2011 07:30 AM

Difference is, this isn't a popup so no popup blocker will touch it.

stephen1976 07-09-2011 03:58 PM

Simple but dam good, that how they should all be :up:

CoZmicShReddeR 07-20-2011 12:49 PM

OMG so simple yet so effective!

boydy 07-21-2011 02:27 PM

This is no longer supported, product is now available here - https://vborg.vbsupport.ru/showthread.php?t=267180

strudinox 07-21-2011 07:22 PM

For performance purposes, would dropping the CSS portion of the code into the additional.css template work?


All times are GMT. The time now is 06:13 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.01107 seconds
  • Memory Usage 1,783KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (35)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