vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   PM notification (https://vborg.vbsupport.ru/showthread.php?t=243790)

Ansaar Media 06-02-2010 11:32 AM

PM notification
 
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 01: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:

HTML Code:

<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

HTML Code:

<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

HTML Code:

<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 10: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 01: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:

HTML Code:

<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 06: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 [DATE]1276204090[/DATE] at [TIME]1276204090[/TIME] ---------------

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:

PHP Code:

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




All times are GMT. The time now is 08:48 AM.

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.01682 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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