Simple Youtube Video Embedder/BBC

Started by xPandax, July 12, 2013, 02:36:25 PM

Previous topic - Next topic

goodwinml

I just posted there and only got link. I copied address from youtube and pasted in forum. Posted and got link.

Colin

Alright. I will have a glance tomorrow as soon as I can. It is past 12 am here.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

goodwinml

I see you have beginning and ending youtube. Did you type in or was that input by mod?

Thanks, 1 am here!

goodwinml

Still not working, anyone want to chime in? The ONLY way to get the player to show is to manually type in the youtube opening and closing brackets.

Neo_TE

@Colin - Thank you very much for providing support for this mod. :)


Quote from: sun-man on August 27, 2013, 04:23:46 AM
Hi,

is it possible to disable it - to long to explain, but my members can need that for some special-threads. [nyoutube] as an example?

In such case, just wrap the youtube links within [url] tags. Youtube links within [url] tags won't be parsed into videos.



Quote from: mhason on August 27, 2013, 06:32:37 AM
Hi, I am having an issue with installing this mod.
First, I installed it on a local dev. environment to make sure it works as expected. No problem here.
Then, I went ahead and installed in on my production environment.
I had a write permission error to the directory, I fixed the permission and the mod installed, but didn't work.
Looking into the file system I noticed that the mod didn't do any editing to Post.php, although it looked like installed perfect without any errors, neither in the front end or in the logs.

I can go ahead and edit Post.php manually but I don't understand why the installation didn't do this.
Any ideas?

Thanks in advance
Maurice

I think that the issue should have been with the file permissions.



Quote from: fatyhxd41 on August 31, 2013, 11:30:13 AM
Hey all. I was installed this mod and was working well. Today I tried to intall a mod but cant. Then remove some files from my FTP and replace them with originals (subs.php and more some files i can't remember now their names). And now this mod not working. Im using
. But not working..

Could you please attach the "Subs.php" & "Post.php" files?



Quote from: goodwinml on September 03, 2013, 01:13:53 AM
I just installed this mod on SMF 2.0.5. It installs just fine. No errors. This is the only mod installed for youtube. I tried the manual update you have posted. Nogo! Attached are my post and subs files. I have also uploaded the youtube .gif to the theme bbc directory. When I make a thread on my forum there is no youtube gif button.
Quote from: goodwinml on September 04, 2013, 02:18:43 PM
Still not working, anyone want to chime in? The ONLY way to get the player to show is to manually type in the youtube opening and closing brackets.


This mod does "not" add a youtube bbc button.

Did you enable "Automatically link posted URLs" option?

http://wiki.simplemachines.org/smf/Posts_and_Topics#Bulletin_Board_Code

goodwinml

Quote from: xPandax on September 05, 2013, 08:26:17 AM
@Colin - Thank you very much for providing support for this mod. :)


Quote from: goodwinml on September 03, 2013, 01:13:53 AM
I just installed this mod on SMF 2.0.5. It installs just fine. No errors. This is the only mod installed for youtube. I tried the manual update you have posted. Nogo! Attached are my post and subs files. I have also uploaded the youtube .gif to the theme bbc directory. When I make a thread on my forum there is no youtube gif button.
Quote from: goodwinml on September 04, 2013, 02:18:43 PM
Still not working, anyone want to chime in? The ONLY way to get the player to show is to manually type in the youtube opening and closing brackets.


This mod does "not" add a youtube bbc button.

Did you enable "Automatically link posted URLs" option?

http://wiki.simplemachines.org/smf/Posts_and_Topics#Bulletin_Board_Code

Yes it is ticked and does not work. See attached pic

Neo_TE

Could you please PM me a demo login. And could you attach the Subs.php & Post.php files again. Thanks.


Rayleigh

Hi!
First of all, thanks for your mod, it works as smooth as butter and is perfect!

Is it possible to adjust the size of the youtube window? If yes, can you tell me how? If not, is it possible to add that feature to your mod?

Neo_TE

#69
Quote from: goodwinml on September 06, 2013, 03:15:47 PM
Here you go.

Ok, the mod is working the way it should. The youtube links posted by you were not parsed into videos because you wrapped it within [url] tags. If you wrap a link within [url] tags, then it means you are forcing it to be displayed as url. Kindly check attachment.  :)

Ill add this info. in the mod page too since a few other people also got into the same issue.



Quote from: Rayleigh on September 06, 2013, 06:13:52 PM
Hi!
First of all, thanks for your mod, it works as smooth as butter and is perfect!

Is it possible to adjust the size of the youtube window? If yes, can you tell me how? If not, is it possible to add that feature to your mod?

Thank you. And regarding the window size, yes, its possible.

In ~/Subs.php, find the following code and replace width="642" height="392" to your choice. :)


array(
'tag' => 'youtube',
'type' => 'unparsed_content',
'content' => '<iframe style="border:0;" width="642" height="392" src="http://www.youtube.com/embed/$1" allowfullscreen></iframe>',

goodwinml

Quote from: xPandax on September 07, 2013, 05:27:13 AM
Quote from: goodwinml on September 06, 2013, 03:15:47 PM
Here you go.

Ok, the mod is working the way it should. The youtube links posted by you were not parsed into videos because you wrapped it within [url] tags. If you wrap a link within [url] tags, then it means you are forcing it to be displayed as url. Kindly check attachment.  :)

Ill add this info. in the mod page too since a few other people also got into the same issue.


You said, I wrapped it within url tags. What I am doing is going to YouTube. I get a vid. I click share. I copy share link. I paste link in forum. I post. And ALL I get is a link to a video NOT a player! The ONLY way I can get a player is to MANUALLY type in the opening and closing youtube statements!

Those url tags are being inserted by SMF! Not me.

Rayleigh

Quote from: xPandax on September 07, 2013, 05:27:13 AM
Quote from: goodwinml on September 06, 2013, 03:15:47 PM
Here you go.

Ok, the mod is working the way it should. The youtube links posted by you were not parsed into videos because you wrapped it within [url] tags. If you wrap a link within [url] tags, then it means you are forcing it to be displayed as url. Kindly check attachment.  :)

Ill add this info. in the mod page too since a few other people also got into the same issue.



Quote from: Rayleigh on September 06, 2013, 06:13:52 PM
Hi!
First of all, thanks for your mod, it works as smooth as butter and is perfect!

Is it possible to adjust the size of the youtube window? If yes, can you tell me how? If not, is it possible to add that feature to your mod?

Thank you. And regarding the window size, yes, its possible.

In ~/Subs.php, find the following code and replace width="642" height="392" to your choice. :)


array(
'tag' => 'youtube',
'type' => 'unparsed_content',
'content' => '<iframe style="border:0;" width="642" height="392" src="http://www.youtube.com/embed/$1" allowfullscreen></iframe>',



I was talking about changing the size but not for all the videos, just for one. :D

Colin

Quote from: Rayleigh on September 07, 2013, 07:02:37 PM
Quote from: xPandax on September 07, 2013, 05:27:13 AM
Quote from: goodwinml on September 06, 2013, 03:15:47 PM
Here you go.

Ok, the mod is working the way it should. The youtube links posted by you were not parsed into videos because you wrapped it within [url] tags. If you wrap a link within [url] tags, then it means you are forcing it to be displayed as url. Kindly check attachment.  :)

Ill add this info. in the mod page too since a few other people also got into the same issue.



Quote from: Rayleigh on September 06, 2013, 06:13:52 PM
Hi!
First of all, thanks for your mod, it works as smooth as butter and is perfect!

Is it possible to adjust the size of the youtube window? If yes, can you tell me how? If not, is it possible to add that feature to your mod?

Thank you. And regarding the window size, yes, its possible.

In ~/Subs.php, find the following code and replace width="642" height="392" to your choice. :)


array(
'tag' => 'youtube',
'type' => 'unparsed_content',
'content' => '<iframe style="border:0;" width="642" height="392" src="http://www.youtube.com/embed/$1" allowfullscreen></iframe>',



I was talking about changing the size but not for all the videos, just for one. :D

Unfortunately, there is not a way to do that without some more major code changes.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Neo_TE

Quote from: goodwinml on September 07, 2013, 02:32:39 PM
You said, I wrapped it within url tags. What I am doing is going to YouTube. I get a vid. I click share. I copy share link. I paste link in forum. I post. And ALL I get is a link to a video NOT a player! The ONLY way I can get a player is to MANUALLY type in the opening and closing youtube statements!

Those url tags are being inserted by SMF! Not me.

Just post the youtube links as plain text. Don't insert links using the "Insert Hyperlink" button on the post box. Please check attachment.



Quote from: Colin on September 08, 2013, 12:56:14 AM
Quote from: Rayleigh on September 07, 2013, 07:02:37 PM
I was talking about changing the size but not for all the videos, just for one. :D

Unfortunately, there is not a way to do that without some more major code changes.

This!

The mod has to be rewritten to make that feature available for individual videos.  O:)

goodwinml

Quote from: xPandax on September 08, 2013, 05:14:20 AM
Quote from: goodwinml on September 07, 2013, 02:32:39 PM
You said, I wrapped it within url tags. What I am doing is going to YouTube. I get a vid. I click share. I copy share link. I paste link in forum. I post. And ALL I get is a link to a video NOT a player! The ONLY way I can get a player is to MANUALLY type in the opening and closing youtube statements!

Those url tags are being inserted by SMF! Not me.

Just post the youtube links as plain text. Don't insert links using the "Insert Hyperlink" button on the post box. Please check attachment.


I do not use Insert Hyperlink button. Like I said before. I go to video, click share, control-c to copy link, control-v to paste link! As stated before this works great if you manually type in the youtube tags! You are saying I need to type in 50 plus characters instead of just ctrl-c and ctrl-v then post?????????

Colin

"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

goodwinml

Quote from: Colin on September 08, 2013, 06:58:58 PM
Nice work xPandax!
Nice work? no fix yet!

Again, why should I have to type in a youtube link to make this work instead of ctrl-c and ctrl-v? SMF is causing the url to be input. How do you stop this? Hmmmmmmmmmmmmm?

Neo_TE

Quote from: Colin on September 08, 2013, 06:58:58 PM
Nice work xPandax!

Thanks. :)



Quote from: goodwinml on September 08, 2013, 02:51:14 PM
I do not use Insert Hyperlink button. Like I said before. I go to video, click share, control-c to copy link, control-v to paste link! As stated before this works great if you manually type in the youtube tags! You are saying I need to type in 50 plus characters instead of just ctrl-c and ctrl-v then post?????????
Quote from: goodwinml on September 08, 2013, 07:45:40 PM
Nice work? no fix yet!

Again, why should I have to type in a youtube link to make this work instead of ctrl-c and ctrl-v? SMF is causing the url to be input. How do you stop this? Hmmmmmmmmmmmmm?

What fix do you want? The mod is working fine.

I just tested in my test forum with WYSIWYG editor "enabled" as well as "disabled" and Ctrl-c & Ctrl-v works fine.

When I posted in your forum too, I copy pasted the youtube link & it parsed as video. I just don't understand why it doesn't work for you.

Maybe try disabling WYSIWYG editor.

TrueZone

well, for me not work.. when i  make a reply or a new topic the page remain  whit !!! What`s happening ? I folowed all instuction thee...

Neo_TE

Quote from: TrueZone on September 14, 2013, 06:48:30 AM
well, for me not work.. when i  make a reply or a new topic the page remain  whit !!! What`s happening ? I folowed all instuction thee...

Are you using any other video related mods?

Could you please attach the Subs.php & Post.php files? Or PM a demo login for your forum?

Thanks.

Advertisement: