2009-07-19, 11:46 AM
I found out that in IE the button will appear when refreshing the reply/message window.
In my Help file I added following to the MyCode help section:
To insert a YouTube movie in your post you can do one of the following
(Note that we cannot give a 100% guarantee this plugin will work)
Please make sure to allow the popup script to appear when you have popups blocked in your browser settings.
1. In the message/post reply window you'll find a YouTube button.
When you click on this button, a popup will appear. Here you need to insert the LAST part of the YouTube video URL (so only the xxxxxxxxxxx at the end of the URL needs to be filled into the popup, instead of the complete URL http://www.youtube.com/watch?v=VGK9techDls). Then it will insert the YouTube video in your post.
2. Another way is to add [youtube]xxxxxxxxxxx[/youtube] in your post where the 'xxxxxxxxxxx' are the LAST digits from the YouTube URL
To be able to use the second choise you need to create a own YouTube MyCode in the ACP.
In the regular expression window you need to insert:
\[youtube\](.*?)\[/youtube\]
In the 'replace' by window you need to insert:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/$1&hl=de&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/$1&hl=de&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
I found the above code around here somewhere in the MyBB forum... I just don't know exactly who wrote it anymore.:-(
Most important is that there is another way besides the plugin to get it to work
In my Help file I added following to the MyCode help section:
To insert a YouTube movie in your post you can do one of the following
(Note that we cannot give a 100% guarantee this plugin will work)
Please make sure to allow the popup script to appear when you have popups blocked in your browser settings.
1. In the message/post reply window you'll find a YouTube button.
When you click on this button, a popup will appear. Here you need to insert the LAST part of the YouTube video URL (so only the xxxxxxxxxxx at the end of the URL needs to be filled into the popup, instead of the complete URL http://www.youtube.com/watch?v=VGK9techDls). Then it will insert the YouTube video in your post.
2. Another way is to add [youtube]xxxxxxxxxxx[/youtube] in your post where the 'xxxxxxxxxxx' are the LAST digits from the YouTube URL
To be able to use the second choise you need to create a own YouTube MyCode in the ACP.
In the regular expression window you need to insert:
\[youtube\](.*?)\[/youtube\]
In the 'replace' by window you need to insert:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/$1&hl=de&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/$1&hl=de&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
I found the above code around here somewhere in the MyBB forum... I just don't know exactly who wrote it anymore.:-(
Most important is that there is another way besides the plugin to get it to work