Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-02-2010, 12:32 PM
Ansaar Media Ansaar Media is offline
 
Join Date: May 2010
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.




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

Thnx for helping en sorry for my broking english
Reply With Quote
  #2  
Old 06-02-2010, 02:25 PM
jamesyfx jamesyfx is offline
 
Join Date: Jan 2005
Location: Manchester, UK
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 06-03-2010, 11:56 AM
Ansaar Media Ansaar Media is offline
 
Join Date: May 2010
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .

Thnx for helping.
Reply With Quote
  #4  
Old 06-03-2010, 02:24 PM
jamesyfx jamesyfx is offline
 
Join Date: Jan 2005
Location: Manchester, UK
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 06-10-2010, 07:52 PM
Ansaar Media Ansaar Media is offline
 
Join Date: May 2010
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
}

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 02:02 PM.


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.03893 seconds
  • Memory Usage 2,215KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_html
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete