[PLUGIN] Shortcode API

Kanna
Jr. Bludit
Posts: 9
Joined: Mon Aug 06, 2018 6:45 pm

Wed Aug 08, 2018 4:30 pm

I'm using it on 2.3.4 i had to replace 2-3 var name it works for now

Screenshot

Image
stevang
Jr. Bludit
Posts: 5
Joined: Wed Feb 28, 2018 7:06 pm

Wed Aug 08, 2018 5:37 pm

Kanna wrote:
Wed Aug 08, 2018 4:30 pm
I'm using it on 2.3.4 i had to replace 2-3 var name it works for now

Screenshot

Image
Nice! do you want to share the updated plugin?
Kanna
Jr. Bludit
Posts: 9
Joined: Mon Aug 06, 2018 6:45 pm

Wed Aug 08, 2018 7:20 pm

here is plugin . i never used it before so dunno about errors.
Attachments
shortcode.zip
(227.62 KiB) Downloaded 9 times
stevang
Jr. Bludit
Posts: 5
Joined: Wed Feb 28, 2018 7:06 pm

Thu Aug 09, 2018 10:58 am

Thank you for attaching the plugin, but works in the post itself only. if i go thru the list of posts or thru clicking on a tag, in those lists of posts the shortcode does not work.
furthermore i had the videos autosize responsivly before. that does not work now as well. :(
Kanna
Jr. Bludit
Posts: 9
Joined: Mon Aug 06, 2018 6:45 pm

Thu Aug 09, 2018 2:47 pm

i checked it it seems it was applying changes to non exists field that is why it had no effect on homepage and tags, category page it now showing video :P

i don't about responsive if you share responsive code i may test it xD
Attachments
shortcode.zip
(227.6 KiB) Downloaded 13 times
stevang
Jr. Bludit
Posts: 5
Joined: Wed Feb 28, 2018 7:06 pm

Thu Aug 16, 2018 4:05 pm

for now i will use direct html and embed the youtube video this way. this is the embed code that you get on the youtube page by the share function, wrapped into div with class videoWrapper. This way the video shows responsive on every screen size. so the shortcode plugin has been deactivated for now here.

Code: Select all

<div class="videoWrapper"><iframe src="https://www.youtube-nocookie.com/embed/Kzh_Wl2ZovQ?rel=0&amp;showinfo=0" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe></div>
css

Code: Select all

.videoWrapper {
position:relative;
padding-bottom:56.25%;
height:0;
overflow:hidden;
width:100%;
height:auto
}
.videoWrapper iframe {
position:absolute;
top:0;
left:0;
width:100%;
height:100%
}
who knows what happens to the shortcode module when Bludit 3 comes out. its just not very nice to loose former working plugins / themes everytime bludit upgrades to a new major version.
Post Reply