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>


The Geek 11-13-2005 05:06 PM

hehe. As much as I hate those office helpers - I do find the idea of this kind of amusing in a bizarre way. Dont think ill install however I still think well done on the idea!

???`S?LV?R???` 11-13-2005 05:13 PM

Quote:

Originally Posted by Injektilo
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>


Awesome... Installs this one.

Injektilo 11-13-2005 05:28 PM

Quote:

Originally Posted by ???`S?LV?R???`
Awesome... Installs this one.

i've updated the code and removed some greek phrases... :)

EasyTarget 11-13-2005 06:03 PM

does this work in all browsers and OS?

tamarian 11-13-2005 06:06 PM

This is cute :up:

I think admins can make it more interesting as random surprises, not just for PM's :)

KW802 11-13-2005 06:06 PM

Quote:

Originally Posted by EasyTarget
does this work in all browsers and OS?

No. The "Agent" technology is for Windows platforms only and the person implementing the code has to be careful if they do it via JS or VBS.


EDIT: For those wanting more information on MS Agents.... http://www.microsoft.com/msagent/default.asp

thedvs 11-13-2005 09:22 PM

Need to find a way to show it only once, and not again & again when you got to read the messages.

NuclioN 11-13-2005 09:51 PM

It's very nice but when MS agent is not installed there's an error. Can you make it so that when MS agent is not installed this script will be ignored? :)

Talisman 11-13-2005 10:47 PM

It's a nice idea, but yes... would be so much more fun used for something else than private messages. Maybe we <meaning: someone who can code, unlike myself> might be willing to adapt this for another purpose?

Aren't there also other characters we can use instead of Merlin? I kinda remember seeing some old English butler and I think there was a hot, sexy woman.

Thanks for releasing the cute hack ... I'll keep watch on this one to see how it expands.

KW802 11-13-2005 11:00 PM

Talisman, there are other characters but they have to be pre-installed. If they aren't already installed then the user either gets an error message or is prompted for a download (which may freak some visitors out a bit) depending upon how the coding was done to present the agent.

Talisman 11-13-2005 11:19 PM

Quote:

Originally Posted by KW802
Talisman, there are other characters but they have to be pre-installed. If they aren't already installed then the user either gets an error message or is prompted for a download (which may freak some visitors out a bit) depending upon how the coding was done to present the agent.

Thanks, Kevin. I wasn't sure if it was this that I'd seen before.

Merlin's a real cutie ... but if we could select which character we wanted to pre-install for this, it would let us customize this hack even better to suit the topic/subject of our forums.

Rickie3 11-14-2005 12:30 AM

i do like it,be geat if it worked for other browsers

C_P 11-14-2005 12:53 AM

Quote:

Originally Posted by Rickie3
i do like it,be geat if it worked for other browsers

So far feedback has been positive on this guy. I agree though, my FireFox users cannot see him.

Rickie3 11-14-2005 01:00 AM

Quote:

Originally Posted by C_P
So far feedback has been positive on this guy. I agree though, my FireFox users cannot see him.

same here,it certainly livens up recieveing a PM,most of my user use firefox

TCM 11-14-2005 02:06 AM

Great. A promotion of one of the most proprietary things you can possibly put on a web site. :down:

[high]* TCM doesn't install.[/high]

gldtn 11-14-2005 02:08 PM

Nice idea in my opinion, despite the fact that merlin is not a under the GNU License ;). What would happen if I load a forum that has this installed under linux? Maybe the coder should find a character that is internet based or something and would not require additional program installed on their computers or certain OS to be used.

An idea would possibly be SitePal. Even though it's quite expensive to run anything like this IMO.

Love the idea though ;)

KW802 11-14-2005 02:35 PM

Quote:

Originally Posted by gldtn
Nice idea in my opinion, despite the fact that merlin is not a under the GNU License ;). What would happen if I load a forum that has this installed under linux? Maybe the coder should find a character that is internet based or something and would not require additional program installed on their computers or certain OS to be used. ...

Merlin and other MS Agents are client based, not server based, so it doesn't matter what OS the server is, it only matters what OS the client browsing the server is using. The delivery package for the code is typically either JS or VBS and it's included in your HTML like any other bit script code would be; when the client's browser then receives that code it's up to the clients browser to determine what to do with it.

If the moon & stars are aligned correctly (the client's OS is a Windows machine that has the particular agent pre-installed along with a Text To Speech [TTS] engine) then the agent will appear as expected otherrwise it's a 'take-your-pick' scenario as to what will happen with the client viewing the page.

In regards to the GNU license, the MS Agents are free to download & use on any licensed Windows client. ;) Remember, the server isn't pushing the Merlin character down to the client, it is only sending code that will activate an already installed Merlin.

Hellspire 11-14-2005 02:38 PM

Quote:

Originally Posted by EasyTarget
does this work in all browsers and OS?

I believe it would only work on Windows 2000 and greater OS, though it is possible other OS' have equivalents they most likely would not be called in the same manner (no experience with this).

Yorixz 11-14-2005 04:09 PM

I bet it'll only work on Win2k (supposing they didn't uninstall that annoying Agent thingy like I did) with Internet Explorer, it's a nice thing but I'd rather see it as a javascript that runs in the client and changes messages and such.

Lionel 11-14-2005 05:31 PM

Mine works as described, except that the message is not spoken with a voice. It displays in a balloon with some other sounds. So sound is not the issue.

The Geek 11-14-2005 05:42 PM

Quote:

Originally Posted by gldtn
An idea would possibly be SitePal. Even though it's quite expensive to run anything like this IMO.

O my lordy. I think I have seen it all now.

This is soooooooo freaking cheesy I am actually straining my brain to desperately come up with a good reason to go buy it right now. Seriously. I really want it. I just cant think of a reason to get it.

(sorry for hijacking there for a minute!)

KW802 11-14-2005 06:04 PM

For you guy/gals about which Windows OS it'll work on, did you go to the MS page?

Lionel: If you go to the MS page under Downloads you'll find a TTS engine to install in your PC to enable the speech.

Geek: Don't do it! :p

The Geek 11-14-2005 06:17 PM

hehe... my wife is going to kill me.

I just couldnt resist. Apologies again for going off topic - I couldnt help myself. :)

Lionel 11-14-2005 06:17 PM

Thank KW802. That works now.

puertoblack2003 11-14-2005 11:17 PM

great hack like it since i use microsoft office alot...funny though****INSTALLED**** hope you can get it to work for firefox. :ermm:

TCM 11-15-2005 12:55 AM

Quote:

Originally Posted by nievesidenshop
great hack like it since i use microsoft office alot...funny though****INSTALLED**** hope you can get it to work for firefox. :ermm:

They can't. This will only ever work in IE, it's not going to be supported by anything else, nor should it be.

LincolnForums 11-15-2005 01:47 AM

Quote:

Originally Posted by EasyTarget
does this work in all browsers and OS?

Only internet explorer i'd imagine

aciurczak 11-16-2005 12:28 AM

I'd change the first conditional to:

Code:

<if condition="($bbuserinfo['pmunread']) AND (is_browser('ie'))">
to be safe. Still might behave badly on old versions of ie, but this will make the site run cleanly for any non-ie browsers.

aciurczak 11-16-2005 12:50 AM

A better change. If you use this conditional, it checks if the browser is IE, and it also checks to confirm that you *aren't* on the private message screen. So Merlin will bug the hell out of you until you click on the PM screen, but once you do he leaves you alone. I also changed the method to Merlin.think instead of Merlin.speak; now he just pops up a thinking box rather than voice.

Code:

<if condition="($bbuserinfo['pmunread']) AND (is_browser('ie')) AND (THIS_SCRIPT != 'private')">

phonexpo 11-25-2005 01:23 AM

Ok I have it installed, working great. But how can I use Robby instead of Merlin?

I've replaced the word Merlin with Robby in the code, but I still have Merlin.

Thanks great code.


All times are GMT. The time now is 10:22 PM.

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.01445 seconds
  • Memory Usage 1,830KB
  • 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
  • (9)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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