vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Notice new message-very effective and interesting (https://vborg.vbsupport.ru/showthread.php?t=100705)

Living in music 11-12-2005 10:00 PM

Notice new message-very effective and interesting
 
Really simple, just copy this code and add at begining of template navbar:

Code:

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

You also can be flexible to edit whatever you want. For me,I think it's very effective for members know that they're having new message.

MrNase 11-13-2005 11:43 AM

Who or what is 'Merlin'?!

akanevsky 11-13-2005 11:48 AM

Hmmm... This guy must be on drugs or something.
What does Merlin, whoever he is, have to do with PMs?

EDIT:

I think this is the Windows Animated Helper or something.
But how is it supposed to connect to vB?

Living in music 11-13-2005 12:04 PM

Image of Big Grin smile(grin.gif),you must replace by " : D " (Dont' have space between ":" and "D")

MrNase: Demo Image will show you who Merlin is,or you can hack immediately,you will know him.

pipin 11-13-2005 01:18 PM

Quote:

Originally Posted by Psionic Vision
Hmmm... This guy must be on drugs or something.
What does Merlin, whoever he is, have to do with PMs?

EDIT:

I think this is the Windows Animated Helper or something.
But how is it supposed to connect to vB?

Its Microsoft Agent 2.0 - comes with MS Operating Systems later then Win 98 and NT.

Releases like this make me think if moderated releases would be better. :disappointed: :confused:

tcs 11-13-2005 02:21 PM

Nice but u have an error in OBJECT classid=CLSID and at the end needs a </if>

thedvs 11-13-2005 02:46 PM

very funny just do this

Code:

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


thedvs 11-13-2005 02:59 PM

Variables

Code:

Merlin.Play("Announce");
will make him blow a trumpet
Code:

Merlin.Play("Greet");
will make him bow etc

look up merlin on google for more variables

thedvs 11-13-2005 03:33 PM

This is the one im using on a test board, this one makes him fly about...

Code:

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


Injektilo 11-13-2005 03:58 PM

this will make him fly at the top right of your page and announce the pm and the username :

Code:

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



All times are GMT. The time now is 01:10 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.01156 seconds
  • Memory Usage 1,740KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete