cotonti.com : Youtube bbcode https://www.cotonti.com Последние сообщения в теме Cotonti en Thu, 09 Oct 2025 07:49:00 -0000 ez I see you are using my original bbcode :)
I will try to make a bbcode that works both for a url and for a code alone.. (regexp)

Cache problems... I too have them sometimes, I always clear cache things when I worked on bbcodes..
It is so automatic for me, that I forgot to mention it... thnx]]>
вт, 14 сен 2010 03:18:03 -0000
pieter It is not working anymore for me.

Can we clear somewhere the cache for this?

I deleted the item in BBcodes, cleared HTML cache on the bbcode page and cleared the intern cache under admin/others.

Then recreated it and it worked.

\[youtube\](.+?)\[/youtube\]

<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/$1" width="425" height="344"><param name="movie" value="http://www.youtube.com/v/$1" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /></object>


Added 14 seconds later:

Hope this helps you]]>
вт, 14 сен 2010 02:05:49 -0000
ez
ahh I see where it goes wrong..

http://www.youtube.com/watch?v=mnt30iJfMM8
is a full youtube interface with stuff in the screen

You want only the movie in a box, so that is this url.
http://www.youtube.com/v/mnt30iJfMM8 geeft

You have to change this regexp
\[youtube\](.+?)\[/youtube\]

You have to experiment with that a little, because My regexp is not realy great.

try something like:
\[youtube\][www.youtube.com\/watch\?v=](.+?)\[/youtube\]

This is my best guess.. try it, and fiddle with it

The replace must be:

<object width="290" height="233"><param name="movie" value="http://www.youtube.com/v/$1"></param><embed src=https://www.cotonti.com/"http://www.youtube.com/v/$1" type="application/x-shockwave-flash" width="290" height="233"></embed></object>
]]>
пн, 13 сен 2010 22:32:30 -0000
Twiebie # ez : what is the html code for this box?

<p>
<object width="290" height="233"><param name="movie" value="http://www.youtube.com/watch?v=mnt30iJfMM8"></param><embed src=https://www.cotonti.com/"http://www.youtube.com/watch?v=mnt30iJfMM8" type="application/x-shockwave-flash" width="290" height="233"></embed></object>
</p>

When clicking right mouse button on the white box it's saying: Movie not loaded..]]>
пн, 13 сен 2010 20:52:05 -0000
ez пт, 10 сен 2010 03:40:05 -0000 Twiebie чт, 09 сен 2010 22:29:29 -0000 ez
use:
\[youtube\](.+?)\[/youtube\]

use replace:
<object width="290" height="233"><param name="movie" value="$1"></param><embed src=https://www.cotonti.com/"$1" type="application/x-shockwave-flash" width="290" height="233"></embed></object>
]]>
чт, 09 сен 2010 22:23:03 -0000
Twiebie http://www.cotonti.com/forums.php?m=posts&q=2227&d=15

Yes, I checked the container checkbox.

Let me explain it once more, just to be clear.

Now the code is for example:
[youtube=WoAXW30mMAg]
But I would like it to be:
[youtube=http://www.youtube.com/watch?v=WoAXW30mMAg]
or:
[youtube]http://www.youtube.com/watch?v=WoAXW30mMAg[/youtube]

Now visitors need to copy paste the last bit of the url instead of the whole url, which is a bit confusing for most people since on most forums you just copy/paste the whole url in to youtube tags.

Any ideas how to get this to work?]]>
чт, 09 сен 2010 21:59:33 -0000
ez You can do it with the regular bbcodes.

Did you check the container checkbox !
code should be like this: [youtube]79PIIl0B2uM[/youtube]

Also I made an integration into the editor (markitup) with a button that asks you for the code... :)

greetz,

ez]]>
чт, 09 сен 2010 21:33:00 -0000
Twiebie
I'm using that bbflow plugin, is there a way to insert the normal url instead of the last bit of the url for all the video websites that are included in the bbflow plugin? Most members on my website are used to copy/pasting the whole url between the [youtube] [/youtube] tags.]]>
чт, 09 сен 2010 18:10:44 -0000
ez mode: PCRE
structuur: \[youtube\]([^\s"\';&\?\(\[]+)\[/youtube\]
container: (mark this checkbox)
replacement:
<object width="290" height="233"><param name="movie" value="http://www.youtube.com/v/$1"></param><embed src=https://www.cotonti.com/"http://www.youtube.com/v/$1" type="application/x-shockwave-flash" width="290" height="233"></embed></object>

for other sizes, just change width and height in the replacement section]]>
чт, 09 сен 2010 14:43:11 -0000
Twiebie
The YouTube bbcode at the moment:
\[youtube=([^\s"';&\?\(\[]+)\]

What do I need to change?]]>
чт, 09 сен 2010 14:22:05 -0000