[PLUGIN] Shortcode API

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

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: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Great! Thank you!
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
_-Caleb-_
Sr. Bludit
Posts: 41
Joined: Sun Jul 05, 2015 4:47 pm

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: 236
Joined: Wed Jun 24, 2015 2:14 pm
Location: France
Contact:

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: 5
Joined: Sat Feb 06, 2016 7:08 pm

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

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

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: 236
Joined: Wed Jun 24, 2015 2:14 pm
Location: France
Contact:

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: 236
Joined: Wed Jun 24, 2015 2:14 pm
Location: France
Contact:

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

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