themaPoster
http://poster.themasoftware.com/forum/

Need Youtube Auto Wrap Code for WordPress websites.
http://poster.themasoftware.com/forum/viewtopic.php?f=3&t=10961
Page 1 of 1

Author:  SteveAzee [ September 2nd, 2022, 5:09 pm ]
Post subject:  Need Youtube Auto Wrap Code for WordPress websites.

Hi Freddy,

Hope you are fine and well. There is something big is missing in ThemaPoster, I have checked today, while entering a simple URL adding my post which was going to WordPress website,

Example URL: https://www.youtube.com/watch?v=XHc9d2Nihuk

When I added youtube link its goes straight away as link that was fine as i understand, but if and when anyone wants to embed the youtube link into their posts no option is available in ThemaPoster, I suggest there should be an option in setting area of each website as show in this screenshot

screenshot URL: Image

Please add an option like embed youtube videos with check-mark option with other settings. After checking and marking that youtube embed option youtube url will be posted in wordpress website like this way codes below
Code:
[youtube]https://www.youtube.com/watch?v=XHc9d2Nihuk[/youtube]
[youtube]https://www.youtu.be/XHc9d2Nihuk[/youtube]


Please do something like this option so we can choose such setting also for desired wordpress websites added on ThemaPoster, It will be an amazing upgrade for us..

Waiting for your kind Reply.

Regards....

Author:  Freddy [ September 3rd, 2022, 6:19 am ]
Post subject:  Re: Need Youtube Auto Wrap Code for WordPress websites

Hi,

you can already do that with replacement.

Add this replacement for needed site and it will surround automatically when posting:

Search for:
Code:
https?://(www.)?youtu\.?be.+


Replace with:
Code:
[youtube]$0[/youtube]


Enable regex search.

Author:  SteveAzee [ September 3rd, 2022, 12:50 pm ]
Post subject:  Re: Need Youtube Auto Wrap Code for WordPress websites

Its not working with your given replacement code.. Can you tell me what will be replacement for this URL:
Code:
https://www.youtube.com/watch?v=XHc9d2Nihuk

Author:  Freddy [ September 3rd, 2022, 4:56 pm ]
Post subject:  Re: Need Youtube Auto Wrap Code for WordPress websites.

It's working fine with this URL.

Maybe you forgot to enable "Regex" option or added in wrong place.

PM me. Will review your settings.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/