PDA

View Full Version : PM notification


Ansaar Media
06-02-2010, 12:32 PM
Hi All,

I want to ask maybe it's a mod or a script. When a PM reciveid that de color changing to a color en other color its change ever 1second. I want to set left avatar en pm image.

You see here what i mean only the pm color changing by 1 second to other color.

https://vborg.vbsupport.ru/external/2010/06/90.jpg

You see here left avatar en a pm image howe to set it?

Thnx for helping en sorry for my broking english:p

jamesyfx
06-02-2010, 02:25 PM
Hi,

I can help with the PM notification, but the avatar would require a plugin to work.

For the notification, follow these conditional rules:


<if condition="$bbuserinfo[pmunread]">
You have a new message
<else />
You have no new messages
</if>


If you wish to use this with some style, try this:

In the template navbar, find


<if condition="$show['member']">
<td class="alt2" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />


And replace this with


<if condition="$show['member']">
<td <if condition="$bbuserinfo[pmunread]">style="background-color:yellow"<else />class="alt2"</if> nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />


This basically makes the background colour of the welcome box bright yellow if there is a new PM, but keeps it regular colour if not. Alter it as you see fit!

Hope this is what you were looking for.

Ansaar Media
06-03-2010, 11:56 AM
Hi Jamesfyx

Thank you for helping me whit this. Butt when the pm is received its not changing color. I want that the color change just like a police sirene :D.

Thnx for helping.

jamesyfx
06-03-2010, 02:24 PM
Ah, you want the colour to alternate.

The easiest way would be to use a 1x1 animated gif which flashes red, blue and white and then use this as the background istead of yellow. I don't have the tools to create this however, but here is the code you would need to use:

<if condition="$show['member']">
<td <if condition="$bbuserinfo[pmunread]">style="background: url('path/to/image.gif')"<else />class="alt2"</if> nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />

Again, you or somebody else would have to provide the image, and you would have to upload this to your webserver and edit where it says 'path/to/image.gif' to the location of your image yourself, but this is the simplest way.

Ansaar Media
06-10-2010, 07:52 PM
Hi jamesyfx,

Thnx for helping my. This is what i have searched :). Butt what i want to that the pm color change again to other color en near 1 second color change again to the yellow color en change again to a green color en again to yellow about 1 second.

I hope you know howe now.

Thnx en sorry for my broking english.

--------------- Added 1276204090 at 1276204090 ---------------

I have search on the other site..

Butt i see this in the script: I dont now howe to use it butt maybe sombody now it:

<script language="JavaScript"> <!-- Begin
pmnotbox = document.getElementById('pmNotifybox');
pmnotbox.style.background='#F1F1F1';
setInterval("Timer()", 500);
x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmnotbox.style.background='#F1F1F1';
x=1;
set=0;
}
if(x==1 && set==1) {
pmnotbox.style.background='#aba811';
x=0;
set=0;
}
}