News:

SMF 2.1.3 has been released! Take it for a spin! Read more.

Main Menu

Vimeo Embedder BBC Mod

Started by Pipke, May 15, 2012, 12:38:31 PM

Previous topic - Next topic

Pipke

Link to Mod

Vimeo Embedder BBC Mod

Description

For SMF 2.0.x

This mod will add a BBC tag:  [vimeo][/vimeo]  where you can post your vimeo urls and it will be converted to a video directly in the message.
Uses SMF hooks wherever possible to avoid file edits.
In the settings you can enable/disable the mod, set the width and height for the video as well as play it automatically on load and more possibilities,
currently the mod support the following vimeo urls:


vimeo.com/{ID}
www.vimeo.com/{ID}
http://vimeo.com/{ID}
https://vimeo.com/{ID}


License

* This SMF modification is subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this SMF modification except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/

Settings

- Admin->Configuration->Modification Settings->Vimeo BBC

Languages

-English/utf8
-Spanish/utf8 by fapencio
-Portuguese/utf8 by FragaCampos

Changelog

Version 2.2 - Jun 29, 2014
- Fixed error: runtime-created function

Version 2.1 - Jun 27, 2014
- Small bug fixes
- Added more languages

Version 2.0 - Jan 24, 2014
- Added own admin settings page.
- Added https url support.
- New option in settings: Play the video automatically on load.
- New option in settings: Enable the badge on the video.
- New option in settings: Show the user's byline on the video.
- New option in settings: Show the user's portrait on the video.
- New option in settings: Specify the color of the video controls.
- Fixed issues that the smilies did not function in post.
- Revised some of the code in previous version.

Version 1.0 - Apr 20, 2012
- Initial Release
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Jaap Stam

I've noticed for some reason that smilies do not function in posts containing a vimeo with this mod installed.

Any help?

Rehash D Internet


Maniaka

Vimeo error on smf top 2.0.4

$txt['vimeo_desc'] = 'Vimeo video url'; $txt['vimeo_unvalid_link'] = 'Not a valid Vimeo URL %s';

FragaCampos

Hi there.
The mod is working fine in my forum, but I would like to change the button's position.
The usual file to edit is Sources/Subs-Editor.php but this mod uses it's own file, so I don't have a clue on how to do this... :P

FragaCampos

I confirm this. Any chance to correct this problem?

Also, is it possible to accept https links?

Quote from: Jaap Stam on July 19, 2012, 06:56:40 PM
I've noticed for some reason that smilies do not function in posts containing a vimeo with this mod installed.

Any help?


amadeos

Is this mod still working? I have some complications.

4Kstore

Quote from: amadeos on November 18, 2013, 09:06:47 AM
Is this mod still working? I have some complications.

Can you explain better your problem?

¡¡NEW MOD: Sparkles User Names!!!

Pipke

#8
mod updated
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

fapencio

Hi, great mod, thanks

add this:

vimeo.spanish_es-utf8
vimeo.spanish_latin-utf8

in attachments.

regards.
My smf forum is 2.0.10 version
my theme is default
language spanish es utf8

FragaCampos

Thanks a lot for this update, Pipke!
Now everything is working fine. :)

Here's my small contribution with the Portuguese utf8 file.

Regards!

FragaCampos

Hi again.

I'm getting a lot of these errors in the log:
Undefined index: vimeo_loop
Undefined index: vimeo_autoplay
Undefined index: vimeo_unvalid_link


How can I correct this?




Pipke

Quote from: FragaCampos on June 24, 2014, 11:09:35 PM
Hi again.

I'm getting a lot of these errors in the log:
Undefined index: vimeo_loop
Undefined index: vimeo_autoplay
Undefined index: vimeo_unvalid_link


How can I correct this?

he someone found the bug wich i already found, to fix this:
go to the settings in admin of the vimeo, select all the options to ON, then save.
after that unselect the options you dont want, if so..then save.
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

FragaCampos

That's a strange workaround :D but it works.
Thanks!

FragaCampos

I realized now that I'm still getting this error:
8: Undefined index: vimeo_unvalid_link 

::)

Shambles

Looks like the language file has the wrong string declared:

$txt['vimeo_unvalid_url'] = '[vimeo]Not a valid Vimeo URL[/vimeo]';

.. which maybe ought to be:

$txt['vimeo_unvalid_link'] = '[vimeo]Not a valid Vimeo URL[/vimeo]';

FragaCampos

vimeobbc.php does call the $txt['vimeo_unvalid_url'] once.
It as this:
return sprintf($txt['vimeo_unvalid_url']);

So, I believe that string is necessary...

But there's this:
if (empty($data))
$data = $txt[\'vimeo_unvalid_link\'];


which I don't really understand what it is...

Pipke

"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

FragaCampos

Thank you, Pipke.

All erros seem to have dissapeared. ;)
It would be great to be able to choose the button position, but the mod is working fine and without problems and that's the most important.

FragaCampos

Err... spoke too soon.  :-\

I'm still getting the following error:
8: Undefined index: vimeo_unvalid_url






Advertisement: