[PLUGIN] Shortcode API

User avatar
Fred
Legend Bludit
Posts: 304
Joined: Wed Jun 24, 2015 2:14 pm
Contact:

Wed Nov 25, 2015 7:55 pm

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
Last edited by Fred on Fri Aug 12, 2016 8:59 pm, edited 4 times in total.
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
User avatar
Edi
Site Admin
Posts: 1295
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Wed Nov 25, 2015 8:56 pm

Great! Thank you!
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
_-Caleb-_
Sr. Bludit
Posts: 48
Joined: Sun Jul 05, 2015 4:47 pm

Thu Dec 10, 2015 8:28 am

Hey Fred! Thanks for this plugin!

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

Code: Select all

 {Youtube width='100%' src='YQHsXMglC9A'}
TANSTAAFL
User avatar
Fred
Legend Bludit
Posts: 304
Joined: Wed Jun 24, 2015 2:14 pm
Contact:

Thu Dec 10, 2015 10:20 am

Yes you want ;)
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
User avatar
Bazim
Jr. Bludit
Posts: 9
Joined: Sat Feb 06, 2016 7:08 pm

Sun Feb 07, 2016 3:56 pm

File is 404 not found.
User avatar
Fred
Legend Bludit
Posts: 304
Joined: Wed Jun 24, 2015 2:14 pm
Contact:

Sun Feb 07, 2016 8:02 pm

Bazim wrote:File is 404 not found.
Sorry, link edited!
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
adminvz
Ssr. Bludit
Posts: 27
Joined: Sun Jan 24, 2016 1:06 pm

Sun Aug 07, 2016 12:40 pm

Like other plug-in does not work in the new version, it is not davzhe otobrozhaetsya in the admin panel BLUDIT v1.4
User avatar
Fred
Legend Bludit
Posts: 304
Joined: Wed Jun 24, 2015 2:14 pm
Contact:

Sun Aug 07, 2016 9:46 pm

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 ;)
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
User avatar
Fred
Legend Bludit
Posts: 304
Joined: Wed Jun 24, 2015 2:14 pm
Contact:

Fri Aug 12, 2016 9:00 pm

Update plugin, read first post ;)
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
peepntom
Jr. Bludit
Posts: 2
Joined: Sat Aug 27, 2016 6:12 am

Sat Aug 27, 2016 6:52 am

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.
Post Reply