News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Simple Youtube Video Embedder/BBC

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

Previous topic - Next topic

sadiahassan41

thanks for this mods its a very simple and useful mod i thanks again the developer of this mod.

azirion

Hi

I'm having trouble with this wonderful mod. It doesn't seem to work right in my site. When I post a YouTube video, it opens up a black video box on the thread but with an error that says the video is not available. It happens with any youtube video  :( any ideas?

I'm using the core theme and the SPortal mod

Thanks in advance for any help  ;)

Neo_TE

Quote from: Malibuz0r on July 30, 2013, 05:11:08 AM
No no, that's not what I want. Whenever I post a youtube URL, a complete URL in the shoutbox, it cuts off the link and leaves it like:
. Which makes the URL unclickable.. I want it to show the full url. This only started happening after I installed the mod.

PS: Don't want to embed videos on the shoutbox.

Unfortunately, that's how this mod works (i.e. youtube links will be automatically wrapped within [youtube] tags.. So, if you want to post youtube url as clickable links, you should wrap them with [url] tags.



Quote from: sadiahassan41 on July 30, 2013, 07:51:13 AM
thanks for this mods its a very simple and useful mod i thanks again the developer of this mod.
Thanks & you're welcome. :)



Quote from: azirion on July 30, 2013, 02:13:00 PM
Hi

I'm having trouble with this wonderful mod. It doesn't seem to work right in my site. When I post a YouTube video, it opens up a black video box on the thread but with an error that says the video is not available. It happens with any youtube video  :( any ideas?

I'm using the core theme and the SPortal mod

Thanks in advance for any help  ;)
Did the mod install without any error?

Are there any other youtube video related mods installed in your forum? If so then you should remove any one of the mods.

azirion

Quote from: xPandax on July 31, 2013, 03:26:44 AM
Did the mod install without any error?

Are there any other youtube video related mods installed in your forum? If so then you should remove any one of the mods.
Yep installed with no errors. And no, there is no other video mod. As a matter of fact the only mod installed is the SimplePortal mod.

Neo_TE

Quote from: azirion on July 31, 2013, 10:43:57 PM
Quote from: xPandax on July 31, 2013, 03:26:44 AM
Did the mod install without any error?

Are there any other youtube video related mods installed in your forum? If so then you should remove any one of the mods.
Yep installed with no errors. And no, there is no other video mod. As a matter of fact the only mod installed is the SimplePortal mod.

This mod does not have any issues with simple portal.

Could you please post a link to a thread in your forum that has a youtube video link in the post. Also could you kindly attach the Subs.php file which you can find in the Sources directory.

azirion

Ok here's the example:

http://acuarioscr.com/index.php?topic=221.msg1704;topicseen#new

I'm still trying to figure out how to attach the subs.php file with my cellphone  :-\

azirion

Here's another example from a forum with guest permissions:

Go to the bottom of: http://acuarioscr.com/index.php?topic=22.new#new

azirion

Ok here's something weird: in this post there are 2 videos. One doesn't show up but the next one looks perfect  ???  http://acuarioscr.com/index.php?topic=202.0

Any ideas here?

azirion

Hi

Finally I got to my computer, here´s the Subs.php file you asked

Neo_TE

Quote from: azirion on August 01, 2013, 09:24:15 PM
Hi

Finally I got to my computer, here´s the Subs.php file you asked

Ok, I figured out the issue. There mod is working fine and there are no compatibility issues with the mods installed in your forum.

I check the source code of the thread in this link, http://acuarioscr.com/index.php?topic=221.0.

The issue is that some random span style tags gets inserted automatically.

<span style="width: 0; margin: 0 -0.6ex 0 -1px;"> </span>

And if you check the above code, there is just a "space" between the span tags. I don't have any idea how that "space" gets into the video links.

This does not happen just with youtube videos, it happens with posts that has only text too. Please check the attached pictures.



I think this has something to do with the language settings used in your forum but I'm not sure. You may try posting this issue (along with the pictures) in the language specific support board. Thanks. :)

donut42day

hi xPandax can u kindly help to edit my Post.php? can't locate the <img>

electricwildflower

OMG Thank you i have wanting to update my forum with a much simple way of youtube inbedding for ages but never got round to looking for a replacement for the large avemedia mod. Replaced avemedia in my test forums and embeds the videos like normal. I no longer have to have avemedia installed and disabled enough to just let forum video posting.

Again Thanks for fantastic mod.

Neo_TE

Quote from: donut42day on August 07, 2013, 07:53:33 AM
hi xPandax can u kindly help to edit my Post.php? can't locate the <img>

I've edited the file. Please check the attachment. :)

For your reference, you can find the <img> tag 2 times in Post.php.

#1 - Line 1524
#2 - Line 2730


Quote from: electricwildflower on August 07, 2013, 08:28:14 AM
OMG Thank you i have wanting to update my forum with a much simple way of youtube inbedding for ages but never got round to looking for a replacement for the large avemedia mod. Replaced avemedia in my test forums and embeds the videos like normal. I no longer have to have avemedia installed and disabled enough to just let forum video posting.

Again Thanks for fantastic mod.

You're welcome and thank you very much.  :)

donut42day

Quote from: xPandax on August 07, 2013, 09:46:44 AM
Quote from: donut42day on August 07, 2013, 07:53:33 AM
hi xPandax can u kindly help to edit my Post.php? can't locate the <img>

I've edited the file. Please check the attachment. :)

For your reference, you can find the <img> tag 2 times in Post.php.

#1 - Line 1524
#2 - Line 2730

Tks for your help and quick respond  xPandax  :D 
After editing my Class-Package.php from 32m to 128m, your mod work instantly ! Greatly appreciate your work, thanks again  :)

Neo_TE

Quote from: donut42day on August 07, 2013, 02:03:33 PM
Tks for your help and quick respond  xPandax  :D 
After editing my Class-Package.php from 32m to 128m, your mod work instantly ! Greatly appreciate your work, thanks again  :)

Glad to help. Thanks. :)

Hypnos76

Just installed this (it was my first MOD) and it seems to work perfect vary clean light and fast. Thanks :)

Neo_TE

Quote from: Hypnos76 on August 12, 2013, 09:40:06 AM
Just installed this (it was my first MOD) and it seems to work perfect vary clean light and fast. Thanks :)

Thanks & you're welcome. :)

granddaddy

Thanks for the wonderful mod. It works great.

Is it possible to support linking videos with a specific time stamp? e.g. ending with t=1m44s

Neo_TE

Quote from: granddaddy on August 13, 2013, 01:48:39 PM
Thanks for the wonderful mod. It works great.

Is it possible to support linking videos with a specific time stamp? e.g. ending with t=1m44s

Sorry, its not possible to link a video with time stamp as this mod uses regex which extracts just the video id from the url and then embed that video id in the code to display the video. Thanks.

electricwildflower

I have a problem well not sure if it's a problem that i need help with.

I was using avemedia and switched to your mod as it's much better now when i add a video just using the youtube url it works fine and shows up but when anyone else posts a url it just shows up the url but clickable and nothing more.

Also the links that where posted before i removed avemedia and added your mod show up as band name - name of song and this is clickable.

Here is a link to my video posting section does it look alright for you or does it come up with as i stated above.

http://keepitrealkeepitgoth.com/forum/index.php/topic,264.0.html

Advertisement: