To the admins

Suggestions, complaints and news about coffeeshopdirect.com
speedy
Posts: 45
Joined: Thu 3rd Nov 2011 04:20 pm

To the admins

Post by speedy »

I notice that if someone posts a video up they generally just provide a link.

In the phpbb admin panel there is the option to add custom bbcode.

the replacement code you need to use is

Code: Select all

<object type="application/x-shockwave-flash" data="{IDENTIFIER}" width="425" height="350">
<param name="movie" value="{IDENTIFIER}" />
<param name="wmode" value="transparent" />
</object>
bbcode useage would be

Code: Select all

[youtube]{IDENTIFIER}[/youtube]
and then an example would be

Code: Select all

[youtube]http://www.youtube.com/watch?v=G9f4kqOaIiQ[/youtube]
then people would enter their url from youtube like the last example and it should embed the video and people can watch them on this site without having to redirect to youtube.


User avatar
USbongLord
Posts: 6704
Joined: Tue 19th Sep 2006 07:47 pm
Location: Baltimore,Amsterdam

Re: To the admins

Post by USbongLord »

fuck..my head just exploded :lol:
rockin into the night
Scandalous Monk
Posts: 199
Joined: Tue 18th Oct 2011 05:09 pm

Re: To the admins

Post by Scandalous Monk »

+1 Speedy, I was wondering why it wasn't possible to embed videos. It makes it far easier to watch them especially as a lot of peoples video links don't even tell you what they are so I don't bother clicking them :)
User avatar
USbongLord
Posts: 6704
Joined: Tue 19th Sep 2006 07:47 pm
Location: Baltimore,Amsterdam

Re: To the admins

Post by USbongLord »

yeah..dont click on mine
rockin into the night
speedy
Posts: 45
Joined: Thu 3rd Nov 2011 04:20 pm

Re: To the admins

Post by speedy »

an altertenative would be to display the video within an iframe, you would still have to create the custom code as above,. an iframe will allow the video to be seen in a bigger variety of browser.

the code for that would be

Code: Select all

<iframe title="YouTube video player" type="text/html" width="425" height="349" src="[indetifier]" frameborder="0"></iframe>
if this is something you want to do and have any problems or questions about it then feel free to shoot them over to me.
User avatar
Lemming
Site Admin
Posts: 3433
Joined: Sat 5th Mar 2005 07:17 am
Location: UK
Contact:

Re: To the admins

Post by Lemming »

So you need me to add a custom BBCode?
If you know your way around phpBB then let me know exactly what I need to put in.
speedy
Posts: 45
Joined: Thu 3rd Nov 2011 04:20 pm

Re: To the admins

Post by speedy »

click the posting tab in the admincp
then on the left hand menu there is bbcodes
click on that and then when it loads up that admin screen, over on the right of it there is a button to add code.

click on that,

then you have 3 boxes to input data,

the top one is useage
thats where you put

Code: Select all

[youtube]http://www.youtube.com/watch?v=FxR-lFHFqGI[/youtube]
next box down is the html you want the above bbcode to run which would be

Code: Select all

<object type="application/x-shockwave-flash" data="{IDENTIFIER}" width="425" height="350">
<param name="movie" value="{IDENTIFIER}" />
<param name="wmode" value="transparent" />
</object>
then in the 3rd box some help text, which would be maybe, use the full link from youtube between the [youtube] tags to embed your video and then after that tick the box to show on posting page and hit submit and then it should work.
speedy
Posts: 45
Joined: Thu 3rd Nov 2011 04:20 pm

Re: To the admins

Post by speedy »

you should have a screen that looks like this
Attachments
phpbbcode.jpg
phpbbcode.jpg (225.9 KiB) Viewed 4118 times
User avatar
hulldj
Posts: 844
Joined: Thu 5th Apr 2007 06:12 pm
Location: MA

Re: To the admins

Post by hulldj »

Great idea guys,

I've just spent ages trying to work out a way to embed my trip report video into the thread.

I've had to drop box it and link for now.
Live.. Love... Laugh and dance more. Stay safe ACD
User avatar
Lemming
Site Admin
Posts: 3433
Joined: Sat 5th Mar 2005 07:17 am
Location: UK
Contact:

Re: To the admins

Post by Lemming »

OK, done that.
speedy
Posts: 45
Joined: Thu 3rd Nov 2011 04:20 pm

Re: To the admins

Post by speedy »

speedy
Posts: 45
Joined: Thu 3rd Nov 2011 04:20 pm

Re: To the admins

Post by speedy »

sorry to be confusing, this is the last change and then it will work, its getting knocked out with the http for the youtube link,

the second box with the replacement html, change it to this

Code: Select all

<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/{IDENTIFIER}" width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}" />
<param name="wmode" value="transparent" />
</object>
and the top box should have this in

Code: Select all

[youtube]{IDENTIFIER}[/youtube]
once those changes are made it will work for sure, i've just tested this out on a phpbb platform, I'm more used to vbulletin than phpbb so there is a slight variation in the code.
User avatar
Lemming
Site Admin
Posts: 3433
Joined: Sat 5th Mar 2005 07:17 am
Location: UK
Contact:

Re: To the admins

Post by Lemming »

Cool! You only need this to make it work. You put the rest in the HTML so you only need the video ID:

Code: Select all

[youtube]XsebWFPloUQ[/youtube]
Here is your video (nice!):


Can you do a new topic in FAQ explaining how people can upload videos onto YouTube and post them like this please?
speedy
Posts: 45
Joined: Thu 3rd Nov 2011 04:20 pm

Re: To the admins

Post by speedy »

that works, did you use the whole code or just the end section?
speedy
Posts: 45
Joined: Thu 3rd Nov 2011 04:20 pm

Re: To the admins

Post by speedy »

just the last bit

so taking the link as http://www.youtube.com/watch?v=EgCJdCh_9Wg and just using the part EgCJdCh_9Wg like so

Code: Select all

[youtube]EgCJdCh_9Wg[/youtube]
Post Reply