Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Pipke on May 15, 2012, 12:38:31 PM

Title: Vimeo Embedder BBC Mod
Post by: Pipke on May 15, 2012, 12:38:31 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3398)

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 (http://www.simplemachines.org/community/index.php?action=profile;u=394383)
-Portuguese/utf8 by FragaCampos (http://www.simplemachines.org/community/index.php?action=profile;u=94593)

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
Title: Re: Vimeo bbc_code Mod
Post by: 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?
Title: Re: Vimeo bbc_code Mod
Post by: Rehash D Internet on November 14, 2012, 02:06:07 PM
It also autoplays.
Title: Re: Vimeo bbc_code Mod
Post by: Maniaka on February 20, 2013, 07:21:20 AM
Vimeo error on smf top 2.0.4

$txt['vimeo_desc'] = 'Vimeo video url'; $txt['vimeo_unvalid_link'] = 'Not a valid Vimeo URL %s';
Title: Re: Vimeo bbc_code Mod
Post by: FragaCampos on March 26, 2013, 12:24:25 AM
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
Title: Re: Vimeo bbc_code Mod
Post by: FragaCampos on June 01, 2013, 04:00:41 PM
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?

Title: Re: Vimeo bbc_code Mod
Post by: amadeos on November 18, 2013, 09:06:47 AM
Is this mod still working? I have some complications.
Title: Re: Vimeo bbc_code Mod
Post by: 4Kstore on November 18, 2013, 10:58:29 AM
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?
Title: Re: Vimeo Embedder BBC Mod
Post by: Pipke on January 24, 2014, 10:31:43 AM
mod updated
Title: vimeo.spanish_es-utf8
Post by: fapencio on May 21, 2014, 04:00:44 PM
Hi, great mod, thanks

add this:

vimeo.spanish_es-utf8
vimeo.spanish_latin-utf8

in attachments.

regards.
Title: Re: Vimeo Embedder BBC Mod
Post by: FragaCampos on June 24, 2014, 08:06:01 PM
Thanks a lot for this update, Pipke!
Now everything is working fine. :)

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

Regards!
Title: Re: Vimeo Embedder BBC Mod
Post by: 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?



Title: Re: Vimeo Embedder BBC Mod
Post by: Pipke on June 25, 2014, 03:02:35 AM
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.
Title: Re: Vimeo Embedder BBC Mod
Post by: FragaCampos on June 25, 2014, 01:57:02 PM
That's a strange workaround :D but it works.
Thanks!
Title: Re: Vimeo Embedder BBC Mod
Post by: FragaCampos on June 26, 2014, 05:05:16 PM
I realized now that I'm still getting this error:
8: Undefined index: vimeo_unvalid_link 

::)
Title: Re: Vimeo Embedder BBC Mod
Post by: Shambles on June 26, 2014, 05:22:16 PM
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]';
Title: Re: Vimeo Embedder BBC Mod
Post by: FragaCampos on June 27, 2014, 01:02:41 AM
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...
Title: Re: Vimeo Embedder BBC Mod
Post by: Pipke on June 27, 2014, 08:53:24 AM
mod updated to v2.1
Title: Re: Vimeo Embedder BBC Mod
Post by: FragaCampos on June 27, 2014, 04:49:02 PM
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.
Title: Re: Vimeo Embedder BBC Mod
Post by: FragaCampos on June 28, 2014, 05:43:00 PM
Err... spoke too soon.  :-\

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





Title: Re: Vimeo Embedder BBC Mod
Post by: Pipke on June 29, 2014, 10:10:09 AM
Quote from: FragaCampos on June 28, 2014, 05:43:00 PM
Err... spoke too soon.  :-\

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

you get also this in youre error log?

8: Undefined index: vimeo_unvalid_url
Apply Filter: Only show the errors from this file
File: /home/**********/public_html/smf/Sources/vimeobbc.php(121) : runtime-created function
Line: 5


If so then the error comes when you post/hit the bbc button of vimeo and the user doesnt put/enter a url between the vimeo code

like this
[vimeo][/vimeo]
I do not have figured out how to solve that quickly.

ps.if you get different error then what i posted here let me know and post the whole error, thx
Title: Re: Vimeo Embedder BBC Mod
Post by: Pipke on June 29, 2014, 11:07:58 AM
fixed this

8: Undefined index: vimeo_unvalid_url
Apply Filter: Only show the errors from this file
File: /home/**********/public_html/smf/Sources/vimeobbc.php(121) : runtime-created function
Line: 5


mod updated to v2.2
Title: Re: Vimeo Embedder BBC Mod
Post by: FragaCampos on June 29, 2014, 02:31:51 PM
That was exactly the error I was getting.  ;)
I'll test it and come back to report to you.

Thank you!
Title: Re: Vimeo Embedder BBC Mod
Post by: zolander on November 19, 2014, 02:39:12 PM
hello,

i just installed this mod on smf 2.0.9 and when try to post youtube link, it shows: [vimeo]Not a valid Vimeo URL[/vimeo]
when vmeo - it loaded it

here is how it looks:
[vimeo]http://www.youtube.com/watch?v=iUiTQvT0W_0[/vimeo]
Title: Re: Vimeo Embedder BBC Mod
Post by: Arantor on November 19, 2014, 02:49:00 PM
Um, why would it support YouTube? This mod embeds Vimeo links, not YouTube ones...
Title: Re: Vimeo Embedder BBC Mod
Post by: zolander on November 19, 2014, 03:02:52 PM
did i install a wrong mod?

i just wanted a simple one that supports most popular videos..
Title: Re: Vimeo Embedder BBC Mod
Post by: zolander on November 19, 2014, 03:05:02 PM
wow

i see
vimeo mod
youtube mod

now what - install both?
Title: Re: Vimeo Embedder BBC Mod
Post by: Arantor on November 19, 2014, 03:08:40 PM
Or the other mod that lets you just post the URL and automatically convert it into the video without having to use bbcode.
Title: Re: Vimeo Embedder BBC Mod
Post by: vbgamer45 on November 19, 2014, 03:13:13 PM
I have one at http://custom.simplemachines.org/mods/index.php?mod=2681 no bbcode though or button you just post the link.
Title: Re: Vimeo Embedder BBC Mod
Post by: zolander on November 19, 2014, 04:52:10 PM
thanks both!

I installed it, looks great