What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] BB code to IRC code and vice versa

Pages: (2): « First « 1 [ 2 ] Last »
[Request] BB code to IRC code and vice versa
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: [Request] BB code to IRC code and vice versa
quote:
Originally posted by vikke
Simple!
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
Message.replace("[/C]", "");
Message.replace("]", "");
Message.replace("[C=", "");
}

Not working with gradients though..

Message.replace will only replace the first instance of the string, not the others... (probably the reason for not working with gradients :p)

code:
for(a=0;a<=99;a++){
myString = myString.replace(new RegExp("\\[c="+a+"\\]",'gi'),"·$"+a+" ");
myString = myString.replace(/\[\/c\]/g,'·$');
}
will work though

Converting IRC to BB will be harder though as IRC has not got a close tag (unless they use ·$ which is unlikely), which is required for it to work :p

This post was edited on 10-04-2006 at 05:53 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
10-04-2006 05:01 PM
Profile PM Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
O.P. RE: [Request] BB code to IRC code and vice versa
Also, that won't work with nicknames though, will it?
10-04-2006 05:48 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: [Request] BB code to IRC code and vice versa
In what way won't it work with nicknames?
<Eljay> "Problems encountered: shit blew up" :zippy:
10-04-2006 05:49 PM
Profile PM Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
O.P. RE: [Request] BB code to IRC code and vice versa
that will only replaces messages won't it. not WLM names.
(or am i just being stupid lol)
10-04-2006 05:56 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: [Request] BB code to IRC code and vice versa
You make a script that retireves your name (and PSM...) and convert the tags and then set that as your new name... it is possible :p
<Eljay> "Problems encountered: shit blew up" :zippy:
10-04-2006 05:58 PM
Profile PM Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
O.P. RE: [Request] BB code to IRC code and vice versa
lol yes, but hard?
10-04-2006 06:08 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: [Request] BB code to IRC code and vice versa
Not really...

code:
myString = Messenger.MyName;
for(a=0;a<=99;a++){
myString = myString.replace(new RegExp("\\[c="+a+"\\]",'gi'),"·$"+a+" ");
myString = myString.replace(/\[\/c\]/g,'·$');
}
Messenger.MyName = myString;


:p
<Eljay> "Problems encountered: shit blew up" :zippy:
10-04-2006 06:10 PM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On