Knowledgebase
Storm Palace Hosting
>
Storm Hosting Help Desk
>
Knowledgebase
Ask a question:
Loading knowledgebase suggestions...
Stand Alone Embed YouTube
Solution
This script goes into the door you would like your Youtube embed into.
view sourceprint?ON INCHAT {
videobot GLOBAL
{{"http://www.youtube.com/embed/$2?autoplay=1&fs=1&autohide=1&showinfo=1" GREPSUB ME WEBEMBED "" CHATSTR = } CHATSTR "^http://(?:www\\.)?youtube.com/(watch_popup\\?v=|watch\\?v=|v/|watch\\?feature=player_embedded&v=)([-\\w]+)" REGEXP IF
} 1 videobot == IF
{
{"If you would like to use youtube please say 'video on'." GREPSUB LOGMSG "" CHATSTR = } CHATSTR "^http://(?:www\\.)?youtube.com/(watch_popup\\?v=|watch\\?v=|v/|watch\\?feature=player_embedded&v=)([-\\w]+)" REGEXP IF } 0 videobot == IF
}
ON OUTCHAT {
videobot GLOBAL
{ 1 videobot =
} CHATSTR "video on" == IF
{ 0 videobot =
"" ME WEBEMBED } CHATSTR "video off" == IF
{ "$1" GREPSUB query =
"http://www.youtube.com/results?search_query=" query & LOADWEBSITE
"" CHATSTR = } CHATSTR "^search (.*)$" GREPSTR IF }
Search added by Spyder
Was this article helpful?
yes
/
no
Article details
Article ID:
73
Category:
Room Scripts
Date added:
04-02-2011 22:32:00
Views:
820
Rating (Votes):
(1)
<<
Go back
Powered by
Help Desk Software
HESK™