vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




New PM Message Notification - Using Windows' Merlin

Joeychgo
11-13-2005, 02:54 PM
This is kinda cool.

What this does is use the little windows XP merlin dude to announce you have a new private message.

http://www.microsoft.com/technet/images/scriptcenter/agent/agent6.jpg

There are many variables and customization you can make to this. You can learn more about this at: http://www.microsoft.com/msagent/default.asp


Easy to install - just add the code below to the top of your navbar template.


This makes him pop up ad just announce there is a new message:


<if condition="$bbuserinfo['pmunread']">
<!-- Script New PM -->
<OBJECT classid=CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F id=ricci width="32" height="32"></OBJECT>
<SCRIPT>
var MerlinID;
var MerlinACS;
ricci.Connected = true;
MerlinLoaded = LoadLocalAgent(MerlinID, MerlinACS);
Merlin = ricci.Characters.Character(MerlinID);
Merlin.Show();
Merlin.Play("congratulate");
Merlin.Speak("You have new message!");
Merlin.Play("domagic1");
Merlin.Hide();
function LoadLocalAgent(CharID, CharACS) {
LoadReq = ricci.Characters.Load(CharID, CharACS);
return(true);
}
</SCRIPT>
<!-- / Script New PM --></if>




This one makes him fly across the screen and blow a trumpet then announce a message..

You can change the message by changing where it says You Have a New Board Message


<if condition="$bbuserinfo['pmunread']">
<!-- Script New PM -->
<OBJECT classid=CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F id=ricci width="32" height="32"></OBJECT>
<SCRIPT>
var MerlinID;
var MerlinACS;
ricci.Connected = true;
MerlinLoaded = LoadLocalAgent(MerlinID, MerlinACS);
Merlin = ricci.Characters.Character(MerlinID);
Merlin.MoveTo(0, 0);
Merlin.Show();
Merlin.MoveTo(800, 500);
Merlin.Play("Announce");
Merlin.Play("Greet");
Merlin.Play("Read");
Merlin.Speak("You have a new Board Message!");
Merlin.Play("domagic2");
Merlin.Hide();
function LoadLocalAgent(CharID, CharACS) {
LoadReq = ricci.Characters.Load(CharID, CharACS);
return(true);
}
</SCRIPT>
<!-- / Script New PM --></if>



This one makes him fly across the page and call the username and announce a message:


<if condition="$bbuserinfo['pmunread']">
<!-- Script New PM -->
<OBJECT classid=CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F id=ricci width="32" height="32"></OBJECT>
<SCRIPT>
var MerlinID;
var MerlinACS;
ricci.Connected = true;
MerlinLoaded = LoadLocalAgent(MerlinID, MerlinACS);
Merlin = ricci.Characters.Character(MerlinID);
Merlin.Show();
Merlin.MoveTo(750,200);
Merlin.Play("congratulate");
Merlin.Speak("$bbuserinfo[username]- You have new message!");
Merlin.Play("domagic1");
Merlin.Hide();
function LoadLocalAgent(CharID, CharACS) {
LoadReq = ricci.Characters.Load(CharID, CharACS);
return(true);
}
</SCRIPT>
<!-- / Script New PM --></if>

Its not exactly a hack, so I went ahead and posted it here. This came from vb.org and the idea came from Living in music

gprime
11-21-2005, 11:02 AM
Is there a way to allow members to choose whether or not they want such a flashy and bold PM notifier? Because whilst this is rather effective at getting your attention, those who PM often, or are in the middle of a long PM conversation probably don't want to have to see it constantly.

Joeychgo
11-21-2005, 11:18 AM
I dont know - im not a coder, but thought this was kinda neat. Im sure this could be adapted somehow.


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum