Skip to content

Commit

Permalink
Mod requires PHP 7.1
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Mendiola <suki@missallsunday.com>
  • Loading branch information
MissAllSunday committed Dec 18, 2023
1 parent 1f04562 commit ccbe78a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions addHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
elseif (!defined('SMF'))
exit('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');

if (version_compare(PHP_VERSION, '7.0', '<'))
exit('This mod needs PHP 7.0 or greater. You will not be able to install/use this mod, contact your host and ask for a php upgrade.');
if (version_compare(PHP_VERSION, '7.1', '<'))
exit('This mod needs PHP 7.1 or greater. You will not be able to install/use this mod, contact your host and ask for a php upgrade.');

if(function_exists('curl_init') === false) {
exit('The requested PHP extension curl is missing from your system. You won\'t be able to use this mod without it.');
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ When installing make sure to mark the "[b]Install in Other Themes[/b]" checkbox.

[b]For SMF 2.0.x only[/b]

[b]Version 1.2.x and above requires [color=purple]PHP 7.0[/color] or greater[/b] and [color=purple]ECMAScript 2015[/color] or greater
[b]Version 1.2.15 and above requires [color=purple]PHP 7.1[/color] or greater[/b] [color=purple]curl ext[/color] and [color=purple]ECMAScript 2015[/color] or greater

You can auto-embed any valid youtube or vimeo urls and the mod will automatically convert them to videos.

This mod will also add a BBC tag: [nobbc][youtube][/youtube], [gifv][/gifv] and [vimeo][/vimeo][/nobbc] where you can post your youtube or vimeo urls and it will be converted to a video directly in the message.
This mod will also add a BBC tag: [nobbc][youtube][/youtube] and [vimeo][/vimeo][/nobbc] where you can post your youtube or vimeo urls and it will be converted to a video directly in the message.

You can enable/disable the mod as well as set the width and height for the videos, currently the mod support the following youtube and vimeo urls:

Expand Down Expand Up @@ -49,13 +49,16 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
- Spanish_es/utf8
- Polish/utf8

I welcome translations, please post them on the mod's support topic.


[color=purple][b][size=12pt]Changelog[/size][/b][/color]
[code]
1.2.15 - Dec 18, 2023
- Fix setting for allowFullScreen
- Don't need to parse new lines and spaces
- Add phpunit tests
- Mod now requires PHP 7.1

1.2.14 - May 06, 2023
- Remove imgur support
Expand Down
4 changes: 2 additions & 2 deletions tests/OharaYTEmbedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public function testOYTE_bbc_add_button()
OYTE_bbc_add_button($buttons);

$this->assertCount(2, $buttons);
$this->assertSame('youtube', $buttons[0]['image']);
$this->assertSame('vimeo', $buttons[1]['image']);
$this->assertSame('youtube', $buttons[-1][0]['image']);
$this->assertSame('vimeo', $buttons[0][0]['image']);
}

public function testOYTE_settings()
Expand Down

0 comments on commit ccbe78a

Please sign in to comment.