What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » replace_str

replace_str
Author: Message:
Zeelia
New Member
*


Posts: 11
– / Male / Flag
Joined: Dec 2007
O.P. RE: replace_str
Thanks! That did work very well indeed.

*EDIT* nevermind, i saw how to make this in the link you sent! Thanks again

But now i have another issue, also in php you can use arrays to store information and now i need to store information in arrays but i dont know how to do it in javascript/Messenger Plus-script
so heres how i would to it in

PHP:
quote:
($ = declare variable)

$text = "OK! brb then. Or afk, i maybe take longer time than i think. so please dnd :)";
$array1 = array("afk", "brb", "dnd");
$array2 = array("<Away From Keyboard>", "<Be Right Back>", "<Do Not Disturb>");

str_replace($array1, $array2, $text);

--Output--
OK! <Be Right Back> then. Or <Away From Keyboard>, i maybe take longer time than i think. so please <Do Not Disturb> :)


so what i need help with is how i can store multiple strings in an array.
//Zeelia

This post was edited on 05-06-2008 at 08:40 PM by Zeelia.
05-06-2008 08:36 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
replace_str - by Zeelia on 05-06-2008 at 06:36 PM
RE: replace_str - by MeEtc on 05-06-2008 at 08:24 PM
RE: replace_str - by Zeelia on 05-06-2008 at 08:36 PM
RE: replace_str - by roflmao456 on 05-06-2008 at 09:19 PM
RE: replace_str - by Zeelia on 05-06-2008 at 11:01 PM
RE: replace_str - by CookieRevised on 05-07-2008 at 02:09 AM
RE: replace_str - by Zeelia on 05-07-2008 at 11:02 PM


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