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


All times are GMT. The time now is 04:34 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.01025 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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