ProSoundWeb Community

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Embedded Videos (Youtube) in forum  (Read 4176 times)

Lee Richard

  • Full Member
  • ***
  • Offline Offline
  • Posts: 223
Embedded Videos (Youtube) in forum
« on: May 05, 2009, 04:28:41 PM »

Hey, is it possible to get a [youtube] tag made to embed youtube videos? That would be alot easier than linking one and having people leave the site to view them.

FUDForum has a code to add it, all your webadmin has to do is insert this code.

Quote:

 Edit post_proc.inc.t to include the following lines:

This goes with the other replacements:
/* Start YouTubeReplace */   while (preg_match('!<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/([^"]+)"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/(.*?)" type="application/x-shockwave-flash" wmode="transparent"width="425" height="355"></embed></object>!s', $fudml, $res)) {         $fudml = str_replace($res[0], '[youtube]'.$res[2].'[/youtube]',$fudml);   }/* End YouTubeReplace */


This goes with the other cases

/* Start YouTubeCase*/            case 'youtube':               $url = substr($str, $epos+1, ($cpos-$epos)-1);               $end_tag[$cpos] = '" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>';               $ostr .= '<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/'.$url.'"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/';               break;/*End YouTubeCase */



Logged
"We do not claim to have achieved perfection, but we have a system, and it works." -Klaatu
Lee Richard
RCI
soundguy(at)gmail.com

Ernie Black

  • SR Forums
  • Full Member
  • *
  • Offline Offline
  • Posts: 190
    • http://www.standingstone.com
Re: Embedded Videos (Youtube) in forum
« Reply #1 on: May 05, 2009, 11:20:27 PM »

Interesting idea. We'll look into it!
Logged
Ernie Black, Code Warrior
ProSoundWeb Forums Webmaster

Lee Richard

  • Full Member
  • ***
  • Offline Offline
  • Posts: 223
Re: Embedded Videos (Youtube) in forum
« Reply #2 on: May 06, 2009, 12:35:02 AM »

Cool.
That's one thing I've found lacking on the forum, users not taking full advantage of the tags we have here.
Another thing is the image system in the forum. I find that it looks way better to upload to a free image host (www.imgur.com is a really nice one) and then just paste the [img] tagged link into the post. Then when people view the thread, the image automatically loads, instead of you clicking on the uploaded img link. It also takes the load off psw servers and onto the free image host. It would be hard to tell users to do that, especially the un-websavvy group, but it's just a cool tip.

Cheers
Logged
"We do not claim to have achieved perfection, but we have a system, and it works." -Klaatu
Lee Richard
RCI
soundguy(at)gmail.com

Ernie Black

  • SR Forums
  • Full Member
  • *
  • Offline Offline
  • Posts: 190
    • http://www.standingstone.com
Re: Embedded Videos (Youtube) in forum
« Reply #3 on: May 06, 2009, 02:07:42 PM »

Well, saving bandwidth on the forum is a good thing, considering how much it costs to keep this boat afloat. As for embedding images, you can do that, just upload an image and then click "Insert image into message body" to load the image in your post.

index.php/fa/22633/0/
Logged
Ernie Black, Code Warrior
ProSoundWeb Forums Webmaster

Geri O'Neil

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2413
Re: Embedded Videos (Youtube) in forum
« Reply #4 on: May 07, 2009, 08:35:04 AM »

Ernie Black wrote on Wed, 06 May 2009 13:07

Well, saving bandwidth on the forum is a good thing, considering how much it costs to keep this boat afloat. As for embedding images, you can do that, just upload an image and then click "Insert image into message body" to load the image in your post.

index.php/fa/22633/0/


Ahhh, I've seen that look on babies before. They're not flipping you off, they are flicking boogers at you. Or perhaps they are doing both.

Geri "yeah, it's gonna be that kind of a day" O
Logged
"Stagelite Sound...A Pin 2 hot-compliant company"
Pages: [1]   Go Up
 

Site Hosted By Ashdown Technologies, Inc.

Page created in 0.088 seconds with 19 queries.