News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Simple Audio Video Embedder

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

Previous topic - Next topic

dowhelp

Hi

So if this is what I have: [youtube ]https://www.youtube.com/watchxxxxxxxxxx[/youtube ]

And I just want to remove the [youtube ] & [/youtube ]

I would use the following?


mysql> UPDATE test set test_char = replace(test_char, '[youtube ]', ' ');

mysql> UPDATE test set test_char = replace(test_char, '[/youtube ]', ' ');


Thank you for all the help so far. I just want to be sure.

Regards

vbgamer45

I would do backup first but you are right here is final solution just do it two times for both cases

UPDATE  smf_messages set body = replace(body, '[/youtube ]', ' ');
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

dowhelp

Quote from: vbgamer45 on July 26, 2018, 07:22:44 PM
I would do backup first but you are right here is final solution just do it two times for both cases

UPDATE  smf_messages set body = replace(body, '[/youtube ]', ' ');

So i should do it exactly like above?

Thank you

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

dowhelp

Thank you very much for all your help vbgamer45. I really appreciate it.

Regards

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

Shambles

Remember to remove the space from [/youtube ]

UPDATE  smf_messages set body = replace(body, '[/youtube]', ' ');

dowhelp

Hi

I see the mod does not pickup "https://youtu.be/"

Am I correct?

Regards

Shambles

Did you tick the checkbox for that site in the settings?

dowhelp

Quote from: Shambles on July 27, 2018, 06:27:04 AM
Did you tick the checkbox for that site in the settings?

Hi

I checked all settings to on.

Regards

aegersz

hi, i notice that "wide pannable" pics (where you move the image around) and 360-degree videos are starting to emerge.

is it possible for this mod to support that ?
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Arantor

Only if the site embedding them supports it...

aegersz

Quote from: dowhelp on July 27, 2018, 06:04:46 AM
Hi

I see the mod does not pickup "https://youtu.be/"

Am I correct?

Regards

are you running the latest version of this mod ? if not then upgrade it to get this working.

be sure to tick all the boxes on redirect.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

vbgamer45

Quote from: Arantor on August 14, 2018, 01:44:22 PM
Only if the site embedding them supports it...
exactly. Would need to see the video site link that supports then can copy the embed code if they offer it.
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

Facebook does it but I don't know if that's embeddable outside of FB.

dowhelp

Quote from: aegersz on August 14, 2018, 04:15:44 PM
Quote from: dowhelp on July 27, 2018, 06:04:46 AM
Hi

I see the mod does not pickup "https://youtu.be/"

Am I correct?

Regards

are you running the latest version of this mod ? if not then upgrade it to get this working.

be sure to tick all the boxes on redirect.

Yes I am

Regards

shawnb61

I am having problems with two patterns:
- stream.cz
- Facebook Video (new v5)

SAVE 4.5, SMF 2.0.15.   In both cases, SAVE returns null as the $message, which blanks out the forum posts. 

Another topic... 

I have some large formatted messages with [html] tags, which parse_bbc is supposed to skip.  But SAVE still works on them.  If there were a way to have SAVE honor the html tag that would be excellent.  Kinda funny having videos pop up randomly in some large lists! 

Thanks!
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

vbgamer45

Examples urls for those two.

HTML tag known issue not sure of a fix yet.
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

shawnb61

#3038
I have a very large post, 3MB+, and those two definitely cause issues on that post.  That post won't appear unless those two are disabled.  I can copy & PM you a link to the content, if you think that'd help. 

Oddly, I can't find specific videos for either in that post.  I don't think it's actually getting a hit on them...  They are failing for other reasons.

EDIT:  They are both returning PREG_BACKTRACK_LIMIT_ERROR, & the replace returns a null string.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

dand


Do youtu.be links work for you? Not for me...
Can this be added?

Advertisement: