News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Simple Audio Video Embedder

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

Previous topic - Next topic

DarkAngel612

ok, then I will try it again and maybe it is like some other vids like to do...you insert link in post but nothing appears in preview window. I will go to my test forum and try doing it totally. I still need to reupload new pristine files for the main forum...even if just to clean up the codes of the mods...LOL
Thanks
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

Shambles

Quoteyou insert link in post but nothing appears in preview window

Nothing appears in my preview window - you need to post the message.

DarkAngel612

That is what was happening with all videos -- in the beginning of 2-3 updates ago but not anymore...LOL Thanks for letting me know for certain.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

AllMassive

Quote from: SMFHacks.com Team on January 27, 2018, 03:31:54 PM
Update!

4.3
+Added support for spotify thanks to butch2k
+Peformance increase for 2.0 not parsing for search engine robots thanks to shawnb61

Thanks - but i'm unable to use 'real' Spotify-Urls like:
spotify:track:1wdo8mIDzc8tlHP2RHMZ71

vbgamer45

Not at the moment. What would the web url look for that?
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

Just tried a 'regular' Spotify-Link:

https://open.spotify.com/track/5IsNoD2x1vQEZ6RrTNjho4?si=mO8HJDr-Sb-C4PImYlvgqA
spotify:track:5IsNoD2x1vQEZ6RrTNjho4

Like here in my Forum the first URL is just 'clickable'.

SMFHacks.com Team

4.5.3a
+Added install support for SMF 2.1 RC1
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

natcip

Hello,

I suddenly got this error message:
QuoteTable 'name_sql1.domain_sql1_smf_mediapro_sites' doesn't exist
File: /home/www/name/Sources/AutoEmbedMediaPro2.php
Line: 275

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.11, while your database is at version 2.0.10. The above error might possibly go away if you execute the latest version of upgrade.php.

It appears on the entire board. I've tried running the latest upgrade.php but it didn't work.

vbgamer45

Download the mod then  run the file AutoEmbedMediaProInstall2.php on your website in the browser and that will recreate that database table.
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

natcip

Quote from: vbgamer45 on February 17, 2019, 02:03:08 PM
Download the mod then  run the file AutoEmbedMediaProInstall2.php on your website in the browser and that will recreate that database table.
I did that and I got the exact same error message.

vbgamer45

Does the table smf_mediapro_sites exist in your database?
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

natcip

Quote from: vbgamer45 on February 17, 2019, 02:22:14 PM
Does the table smf_mediapro_sites exist in your database?
No, seems it doesn't.
How do I create the table? Sorry for the question but I rarely meddle in databases.

vbgamer45

The install script should have done it but you can run this sql

CREATE TABLE IF NOT EXISTS smf_mediapro_sites (
  id int(11) NOT NULL auto_increment,
  title varchar(255),
  enabled tinyint default 0,
  website varchar(255),
  regexmatch text,
  embedcode text,
  processregex text,
  height int(5) default 0,
  width int(5) default 0,

  PRIMARY KEY (id)
)


That will fix the error but not load the video sites.
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

natcip

Thank you. :) This fixed the error. Embedding Instagram and Youtube seems to work fine though.

natcip

Hi, sorry for the double post.
I've upgraded SMF yesterday and I'm now re-installing the mods I had before.
I still can't run AutoEmbedMediaProInstall2.php.
This is the error message (which appears on the whole site).
Table 'name_sql1.domain_sql1_smf_mediapro_sites' doesn't exist
File: /home/www/name/Sources/AutoEmbedMediaPro2.php
Line: 293

^The error message also shows up in unformatted text when I want to load AutoEmbedMediaProInstall2.php

I tried running the SQL like vgamer45 said, but it didn't work.

vbgamer45

Are you running MySQL? that install script should create the tables.
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

natcip

Nevermind, it works now. Weird. Thanks for the helpfulness! Appreciate it! ;)

MarkRH

Maybe I'm an idiot and doing something wrong but I installed this (version 4.5.3a ) in 2.1 RC 1 and just testing out YouTube links and they do not auto embed. It's just a clickable link.

Well, I figured out why.  When I went to uninstall the package, it failed on Subs.php because the text it was looking for wasn't actually in it.  I manually copied it's code into Subs.php and now the auto embed stuff started working.  I might have copied the Subs.php locally up to server and that took the code out.  I'll double check things.
Mark H.

vbgamer45

It should work for most youtube links there are a few if you using a custom format or change the url that it doesn't pickup
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

MarkRH

Upgraded local test forum to 2.1 RC 2 using the upgrade download.  I notice now in the Package Manager that it says "Install Emulating 2.1RC1" for the MOD. Should it? I just grabbed the latest copy of the mod.
Mark H.

Advertisement: