News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Ohara YouTube Embed

Started by Suki, December 21, 2011, 03:04:59 PM

Previous topic - Next topic

vbgamer45

I noticed that sometimes might a bug with SMF, I sometimes have the issue with winrar on windows, and then resort to using the built in windows zip function.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Arantor

The only 100% reliable methods I found were 7-zip on Windows - or just going .tar.gz.

KittyGalore

Quote from: Suki on May 13, 2020, 12:50:57 PM
Alright, made  a new zip file with p7zip hopefully this one won't cause any issues, dunno why the one generated by archive manager caused issues :/
Yes i tested this and it uploaded and installed fine no errors.
SMF Curve 2.0x

Suki

Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

gorbi

Is the mod adapted for viewing on mobile devices?

Suki

Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

gorbi

Quote from: Suki on May 15, 2020, 04:31:25 PM
Should be, yes.
Can you post a screenshot from a mobile device what YouTube looks like?

jsx

@Suki

Do you know why the video is not displayed on the Curve Minimal Multicolor theme, only the black screen is displayed. What may be the reason for this?

Suki

Would need to see a live example but 90% or so of this kind of issues is JS related, maybe that theme is trying to load its own jquery library and its causing issues.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

jsx

#789
Thanks for the tip. This version of jQuery has this theme:

Curve_Minimal_Multicolor_2/scripts/jquery-1.7.1.min.js

In the index.template.php file on this line, I added a link to the newer version of jQuery. And the video now displays correctly.

<script type="text/javascript" src="', $settings['theme_url'], '/scripts/jquery-1.7.1.min.js"></script>

<script type="text/javascript" src="', $settings['theme_url'], '/code.jquery.com/jquery-3.5.1.min.js"></script>

shadav

#790
need some help to install this
I already have something installed that edited source/post.php

the install wants this
<file name="$sourcedir/Post.php">
<operation>
<search position="replace"><![CDATA[if ($smcFunc['htmltrim'](strip_tags(parse_bbc($_POST['message'], false), '<img>')) === '' && (!allowedTo('admin_forum') || strpos($_POST['message'], '[html]') === false))]]></search>
<add><![CDATA[if ($smcFunc['htmltrim'](strip_tags(parse_bbc($_POST['message'], false), '<img><iframe><video><div>')) === '' && (!allowedTo('admin_forum') || strpos($_POST['message'], '[html]') === false))]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[if ($smcFunc['htmltrim'](strip_tags(parse_bbc($_POST['message'], false), '<img>')) === '')]]></search>
<add><![CDATA[if ($smcFunc['htmltrim'](strip_tags(parse_bbc($_POST['message'], false), '<img><iframe><video><div>')) === '')]]></add>
</operation>
</file>


but those have been modified by something else (I'm guessing open embed, which youtube isn't working on anymore so trying this out but don't want to remove open embed)

what I have is
if ($smcFunc['htmltrim'](strip_tags(parse_bbc($_POST['message'], false), '<img><object><embed>')) === '' && (!allowedTo('admin_forum') || strpos($_POST['message'], '[html]') === false))
and
if ($smcFunc['htmltrim'](strip_tags(parse_bbc($_POST['message'], false), '<img><object><embed>')) === '')

how can i get this to work with that as well, if possible....

[edit]hm ok so it wasn't the open embed mod it was the Fix Message Empty Error For Embed Video Mods   , temporarily removed it so I could install this

BCK

is this able to set for admin only in admin panel..or is the code in posts usable by all members ?

Suki

It is usable by default by all members.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

BCK

ok, is there a way by chance to set perms or limit use by admin and mods ?

shadav

Quote from: BCK on August 05, 2020, 06:21:24 PM
ok, is there a way by chance to set perms or limit use by admin and mods ?
from my understand, no....as it's a bbcode anyone can use it....you can hide it from the bbcode list, but still anyone that knows the code (which they could get from quoting a post that has it) could just type it in and be able to use it to embed youtube videos....

BCK

thx...to bad cant set perms for certain members or staff only..its an awesome mod..I only want limited access to it..so not flooded with videos not wanted..

BCK

is there a chance that an update with permissions could be done,  so admin can set member groups or ? access to use, or this asking for something not reasonable to do ? want everyone to see the videos just set perms for posting them to admin and staff only ?

Suki

No, it would hurt performance quite a bit.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

BCK

ok, understandable, thx for reply

1.1Nerd

Does this mod work with SMF 2.1 when manually installing it`?

Advertisement: