Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Simple Additional PM Notification Details »»
Simple Additional PM Notification
Version: 1.00, by boydy boydy is offline
Developer Last Online: Dec 2014 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 4.x.x Rating:
Released: 04-29-2011 Last Update: Never Installs: 50
Template Edits
Translations  
No support by the author.

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

Screenshots

File Type: gif vbpm.gif (26.5 KB, 0 views)
File Type: png 20110430-143717.png (93.3 KB, 0 views)

Show Your Support

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

Comments
  #22  
Old 05-12-2011, 07:47 AM
boydy's Avatar
boydy boydy is offline
 
Join Date: Jan 2011
Location: UK
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by trunkride View Post
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.
Reply With Quote
  #23  
Old 05-13-2011, 12:58 PM
midgetgrimm midgetgrimm is offline
 
Join Date: Apr 2011
Location: Florida, USA
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boydy View Post
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..
Reply With Quote
  #24  
Old 05-15-2011, 07:20 PM
blackrat250 blackrat250 is offline
 
Join Date: Dec 2010
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent Mod. Installed and 5 stars !!
Reply With Quote
  #25  
Old 06-01-2011, 08:41 PM
MrAd MrAd is offline
 
Join Date: Nov 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works for 3.8.x as well ?
Reply With Quote
  #26  
Old 06-03-2011, 09:18 AM
MrAd MrAd is offline
 
Join Date: Nov 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it look like a greta modification, can somebody adjust it to 3.8.x ?
Reply With Quote
  #27  
Old 06-03-2011, 05:35 PM
boydy's Avatar
boydy boydy is offline
 
Join Date: Jan 2011
Location: UK
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll sort it out for you mate shortly, some things to do first.
Reply With Quote
  #28  
Old 06-03-2011, 05:57 PM
boydy's Avatar
boydy boydy is offline
 
Join Date: Jan 2011
Location: UK
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #29  
Old 06-04-2011, 04:05 PM
MrAd MrAd is offline
 
Join Date: Nov 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks works smooth!, only question how can I make this align center ?
Reply With Quote
  #30  
Old 06-05-2011, 02:51 PM
boydy's Avatar
boydy boydy is offline
 
Join Date: Jan 2011
Location: UK
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
}
Reply With Quote
  #31  
Old 07-08-2011, 06:54 PM
saimon69 saimon69 is offline
 
Join Date: Jun 2010
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
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 01:30 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.06824 seconds
  • Memory Usage 2,330KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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
  • (2)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete