MyBB Community Forums

Full Version: Youtube Code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Updated my code.
It's an bug with the [code] thingy.
Works perfectly. Big Grin

Thanks again.
thanks CraKteR
CraKteR Wrote:Updated my code.
It's an bug with the [code] thingy.

How to fix dhe [code] ??
Warning: youtubebbcode_activate(./inc/adminfunctions_templates.php): failed to open stream: No such file or directory in /home/www/albasport.com/inc/plugins/youtubebbcode.php on line 24

Warning: youtubebbcode_activate(./inc/adminfunctions_templates.php): failed to open stream: No such file or directory in /home/www/albasport.com/inc/plugins/youtubebbcode.php on line 24

Warning: youtubebbcode_activate(./inc/adminfunctions_templates.php): failed to open stream: No such file or directory in /home/www/albasport.com/inc/plugins/youtubebbcode.php on line 24

Fatal error: youtubebbcode_activate(): Failed opening required './inc/adminfunctions_templates.php' (include_path='.:/usr/local/lib/php') in /home/www/albasport.com/inc/plugins/youtubebbcode.php on line 24
Read this -> http://community.mybboard.net/showthread...3#pid79213
Works.
That plugin is not for 1.2
CraKteR Wrote:You could just add it to an custom mycode..
Pattern:
\[youtube\](.*?)\[/youtube\]
Replace:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\$1"></param><embed src="http://www.youtube.com/v/\$1" type="application/x-shockwave-flash" width="425" height="350"></embed></object>

I'm getting a blank box. Sad
Updated the code, it was broken since they fixed the code bug.
I think some are getting a blank page because they are entering the entire youtube url which is what I prefer since that's what youtube gives to members to link.

http://www.youtube.com/watch?v=jW-iPfZbUIY

I had a tough time getting a custom mycode to work with this...so I simply used my plugin for it.
i want a media plugin like the on for vb. I think it would be nice to just say [media] and it know what you want from the link, and can get the flash from google, youtube, etc. this would be really hard though by comparison.
Pages: 1 2 3