Results 1 to 1 of 1

Thread: Simple Additional PM Notification

  1. #1
    PS Owner

    Country
    Vals came from in Vietnam
    Join Date
    Mar 2017
    Location
    Can Tho
    Age
    38
    Sex
    Male
    Real name
    LE VAN AM
    Workplace
    Valsvet Co.,Ltd.
    Posts
    52
    Total Contributions
      $ 19.12

    Simple Additional PM Notification

    vB Version: 4.x.x

    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 -->
    Simple, yet very effective, i just felt my forum needed something that stood out a bit more but didn't want anything massive.
    Attached Images Attached Images
    Plesase donate to become the VIP member with many benefits!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •