Page 1 of 3

[PLUGIN] Shortcode API

Posted: Wed Nov 25, 2015 7:55 pm
by Fred
Shortcode API plugin for Bludit
What shortcodes?
The Shortcode API is a simple set of functions for creating Bludit shortcodes for use in posts and pages. For instance, the following shortcode (in the body of a post or page) would add a photo gallery of images attached to that post or page:

Code: Select all

{gallery}
The API enables plugin developers to create special kinds of content (e.g. forms, content generators) that users can attach to certain pages by adding the corresponding shortcode into the page text.

The Shortcode API makes it easy to create shortcodes that support attributes like this:

Code: Select all

{gallery id='123' size='medium'}
The plugin is delivered with 8 shortcodes ready to use! and is editable in config plugin!

Examples:
Cut post use simply this shortcode:

Code: Select all

{cut}
Dynamic site URL:

Code: Select all

 {site_url}
Social share:

Code: Select all

{Share class='uk-list-line' facebook='bludit' twitter='bludit' github='bludit'}
Gitter chat:

Code: Select all

{Gitter room='dignajar/bludit'}
Disqus comment system:

Code: Select all

{Disqus name='bludit'}
More video parse:

Code: Select all

{Youtube src='YQHsXMglC9A'}
{Dailymotion width='400' height='250' src='cexar241'}
{Vimeo width='400' height='250' src='144239829'}
Thank to Sergey Romanenko Force (Free components for kickass Web Applications) and Diego for his help and for this great cms.

Image

Download
  • 2016/08/12 - Version 1.5: Fallback Bludit 1.4 compatibilty & ready for 1.5Beta shortcode.zip
  • 2015/11/25 - Version 0.3: shortcode.zip

Re: [PLUGIN] Shortcode API

Posted: Wed Nov 25, 2015 8:56 pm
by Edi
Great! Thank you!

Re: [PLUGIN] Shortcode API

Posted: Thu Dec 10, 2015 8:28 am
by _-Caleb-_
Hey Fred! Thanks for this plugin!

A question: Can i use % in the video sizes? Ie:

Code: Select all

 {Youtube width='100%' src='YQHsXMglC9A'}

Re: [PLUGIN] Shortcode API

Posted: Thu Dec 10, 2015 10:20 am
by Fred
Yes you want ;)

Re: [PLUGIN] Shortcode API

Posted: Sun Feb 07, 2016 3:56 pm
by Bazim
File is 404 not found.

Re: [PLUGIN] Shortcode API

Posted: Sun Feb 07, 2016 8:02 pm
by Fred
Bazim wrote:File is 404 not found.
Sorry, link edited!

Re: [PLUGIN] Shortcode API

Posted: Sun Aug 07, 2016 12:40 pm
by adminvz
Like other plug-in does not work in the new version, it is not davzhe otobrozhaetsya in the admin panel BLUDIT v1.4

Re: [PLUGIN] Shortcode API

Posted: Sun Aug 07, 2016 9:46 pm
by Fred
Please update to Bludit 1.5Beta or add your Bludit version in metadata.json.

Code: Select all

"compatible": "1.4,1.5beta",
If you update the file, I would not be able to guarantee if the plugin and really compatible with an older version of Bludit, this time it is possible ;)

Re: [PLUGIN] Shortcode API

Posted: Fri Aug 12, 2016 9:00 pm
by Fred
Update plugin, read first post ;)

Re: [PLUGIN] Shortcode API

Posted: Sat Aug 27, 2016 6:52 am
by peepntom
is there a code to add these to the tinymce thing? just like adding a image or link. i hit the button and add the youtube id instead of looking for the short code over and over.