News:

Wondering if this will always be free?  See why free is better.

Main Menu

Simple Audio Video Embedder

Started by SMFHacks.com Team, August 09, 2010, 10:42:47 PM

Previous topic - Next topic

Darkness7148

Is there any way to get this to not embed anything if it's in a paragraph? I need some new regex:

$message = preg_replace('#<a href="' . $medialink . '"[^>]*>([^<]+)</a>\s*#i', $mediaSite['embedcode'], $message);

vbgamer45

That I would not know how to easily do. You have to get an expert in regex to look for the <p> tags
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

butch2k

Here are the Spotify embed details i use in case someone needs them.

vbgamer45

Can you copy and paste it as text will get it added.
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

butch2k

Here it is.

regexpmatch
htt(p|ps)://open.spotify.com/track/([A-Za-z0-9]*)

embedcode
<iframe src="https://embed.spotify.com/?uri=spotify:track:$2" width="250" height="80" frameborder="0" allowtransparency="true"></iframe>

vbgamer45

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

SMFHacks.com Team

Update!

4.3
+Added support for spotify thanks to butch2k
+Peformance increase for 2.0 not parsing for search engine robots thanks to shawnb61
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

pocttopus

I went to update 4.2 -> 4.3 but I need to find something and add something, but I don't know what to add?  ???
The path of the file is: ./Themes/default/languages/Modifications.english.php


vbgamer45

Add this

// Begin Auto Embed Media Pro Text Strings
$txt['mediapro_admin'] = 'Simple Audio Video Embedder';
$txt['mediapro_settings'] = 'Settings';
$txt['mediapro_save_settings'] = 'Save Settings';
$txt['mediapro_err_cache'] = 'Cache folder not writable must fix for performance!';
$txt['mediapro_settings2'] = 'Settings and configuration for Simple Audio Video Embedder';
$txt['mediapro_copyremove'] = 'Copyright Removal';
$txt['mediapro_copyremove2'] = 'Remove the copyright for Simple Audio Video Embedder';
// END Auto Embed Media Pro  Text Strings
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

pocttopus

I forgot to mention that this is the process for removing the previous version 4.2.
Should I add the code you post?

vbgamer45

If you are uninstalling you can either ignore it or find that code that i have above and just remove.
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

AllMassive

I first upgraded, but then deinstalled and reinstalled completly - but still:
https://i.imgur.com/ta9Tp7k.png
Why is it shown twice ?

vbgamer45

There is an extra entry made in source/querystring.php file remove one or attach the file here.
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

AllMassive


vbgamer45

Remove all that you can see been // auto embed media pro and
//end auto embed media pro
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

yameth

SMF 2.0.11, EZPortal, Ad Management, SMF Articles, Simple Audio Video Embedder, SMF Trader System, SMF Packs SEO

Jeff B

Quote from: vbgamer45 on November 09, 2015, 06:39:51 PM
It does not. No way to make it responsive.

Is there a way that in css we could disable the embed for mobile screen sizes? So it just reads as a link?

butch2k

Quote from: Jeff B on February 13, 2018, 09:35:22 AM
Quote from: vbgamer45 on November 09, 2015, 06:39:51 PM
It does not. No way to make it responsive.

Is there a way that in css we could disable the embed for mobile screen sizes? So it just reads as a link?
Never tested it but there is an option to disable embedding for mobile devices.

Bigguy

Just installed this and yes there is an option to disable for mobile. Installed great to. No problems at all.

Jeff B

I have an older version and I tried to uninstall and get a whole slew of errors. I'd like to try the new version but not sure how to approach the errors.

Advertisement: