Surprise! After having served Blogger for over 5 years we are back again with yet another plugin that will transform blogger templates and especially blogging like never before. Equipping it with a system that will make web designing and creation of widgets a piece of cake! STCnetwork is proud to Introduce Blogger Shortcode Plugin that will let you add Web elements with very little effort without using any long complicated, ugly code. You can now insert videos, audios, photo gallery, tabs, accordions, etc. with just a single line of code inside your posts, widgets, sidebars and guess where else? also inside your Blog Comments! Embedding Objects in Blogger was never that easy before. Today we are taking blogger to the next Level. Lets get started!
What is a Blogger Shortcode?
Blogger shortcode is a macrocode i.e. a single line of code that contains a set of instructions which lets you do nifty things with no effort at all. Shortcodes can help you embed files or create objects in BlogSpot blogs with a single line of code that would normally require a lot of complex, long ugly code.
You can now easily insert objects such as Videos, Audios, Files, Slideshows and all important web elements such as accordions, tabs, colorful buttons, boxes etc. inside Header, Sidebar, Footer, Posts, Pages, Titles and amazingly even inside comments! It requires no prior knowledge of HTML, CSS or JavaScript. The plugin is extremely lightweight and its multiple-embed-support will reduce your Page Load time by 50%.
How Different is it From Wordpress Shortcode?
Wordpress has been our biggest source for inspiration and it would have never been possible to develop this plugin for Blogger if the logic was not already present. We simply converted the PHP functions into jQuery functions which are both platform independent and easy to implement.
Unlike Wordpress shortcodes which can only be inserted inside Post content, Blogger shortcode plugins lets you insert content even inside widgets and Comments! WP shortcode API is platform specific but our plugin offers cross-platform embedding support that is not limited to blogger blogs alone. It can surely work on any website be static or dynamic.
Most exclusive feature of this plugin is to support nesting of shortcodes. You can insert a shortcode inside another one to offer full dynamic experience.
Shortcodes such as accordion and Tabs can be added a multiple times on a single page without effecting one another. This plugin optimizes and reduces Page Load time extremely well.
List of Supported Shortcodes
We have so far developed around 10 Shortcodes and we are planning to develop around 50 shortcodes within a month inshAllah. Shortcodes will be created based on their importance and usability. We will release each shortcode with a separate tutorial.
A shortcode itself it not a code but a TEXT which is processed as HTML. Don't believe yourself? Believe it! :)
Following are the shortcodes developed so far.
Shortcode | Definition |
---|---|
[accordion] | Accordion is a vertically stacked list of items where each item can be "expanded" or "stretched" to reveal the content associated with that item. Items can be Toggled on and off easily. An example is the accordion widget |
[tab] | Tab widget allows multiple documents or panels to be contained within a single window, using tabs as a navigational widget for switching between sets of document. An example is the Multi Tab Widget |
[code] | Embeds syntax Highlighter which preserves the original formatting of source code |
[table] | Create responsive and fancy HTML Tables with multiple Rows and Columns |
[quote] | Inserts a Fancy Blockquote |
[button] | Inserts colorful CSS3 Buttons |
[icon] | Insert FontAwesome icons anywhere with custom options support |
[soundcloud] | Embeds SoundCloud Track |
[dailymotion] | Embeds Dailymotion Video |
[youtube] | Embeds YouTube Video |
[divider] | Inserts a Horizontal Separator to divide a section, also contains a Back To Top button |
[num] | Inserts a Number enclosed inside a circular background |
[warning] | Inserts a box with Warning message |
[success] | Inserts a box with Success message |
[alert] | Inserts a box with Alert message |
[info] | Inserts a box with Some Information message |
[update] | Inserts a box with Update status message |
[facebook] | Embeds Facebook Page Plugin |
[image] | Embeds Images anywhere you want in clear cut resolution! |
[tooltip] | Inserts a Fancy CSS3 Tooltip above or below hyperlink to show extra info |
- You can now also suggest us which shortcode to create
Installation Steps
Follow these steps to install the Shortcode Plugin on your blogger blog.1 Go To Blogger > Template > Backup your template
2 Click Edit HTML
3 Search </body>
4 Download the following dynamically updated JS file and host it somewhere and then paste the following code just above </body>
<!-- Blogger Shortcode Plugin Dynamic JS File -->
<script src='PASTE-YOUR-LINK-HERE' type='text/javascript'></script>
NOTE: Replace with your hosted js file link that you downloaded from here
5 Next Search For <head>6 Paste the following CSS files just below it
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'></script>Note that in the above code I have included latest versions of jQuery and FontAwesome libraries. I suggest that you use these versions instead of any old versions you may already be using.
<link href='http://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.css' rel='stylesheet'/>
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'/>
7 Save your template and you are all done!
New functions are dynamically inserted inside the Shortcode JS file and you need to install it only once. I will keep updating this page to introduce any update made to the script and new shortcodes created will be appended to the Table List on this page.
Shortcode Syntax
Shortcodes have a name and attributes. The attributes are options that help you configure an object. Shortcodes are symbolized by Square brackets. The braces are opened and closed just like HTML but with a much simpler format as shown below:Suppose you need to embed a Dailymotion video inside your blog posts, sidebar or blog comments then you can do it in two ways.
[dailymotion src="x2lhjki"][/dailymotion]
or simply
[dailymotion src="x2lhjki" /]
Now if you wish to change the color of the player button, hide player info and edit the player dimension then you can insert attributes as shown below
[dailymotion src="x2lhjki" width="100%" background="0080ff" height="100" info="0"][/dailymotion]
or simply
[dailymotion src="x2lhjki" width="100%" background="0080ff" height="100" info="0" /]
Note that the above is just an example, full details on how to use a dailymotion shortcode will be shared in its own tutorial
Syntax Errors
Avoid making these mistakes when typing shortcode names and attributes:- Don't use camelCase or UPPER-CASE for attribute names or Shortcode names. Use only lowercase characters
- Don't add spaces between Shortcode Names and the Square Braces
- Shortcode macros may use single (') or double quotes (") for attribute values, or omit them entirely if the attribute value does not contain spaces.
[table col='123' row=456]
is equivalent to[table col="123" row="456"]
- A space is required between the shortcode name and the shortcode attributes. When more than one attribute is used, each attribute must be separated by at least one space.
- The shortcode parser does not accept square brackets within attributes.
[tag attribute="[Some value]"]
How Does This Shortcode Plugin Works?
Shortcodes are written by providing a handler function "mbt(html)" . Shortcode handlers are broadly similar to WordPress filters: they accept parameters (attributes) and return a output. We used a jQuery function to parse through Square bracket content and attributes and then replace the Square bracket DOM with the HTML version and ignore or escape those Square braces which are enclosed across a name which is not registered through the global variable "var bhf". The Parser function recognizes registered shorctodes through the global variables only. Locations where shortcodes will work include Widgets, Blog Posts, Pages and Blog comments. Shortcodes placed elsewhere will be escaped.
Credits
© 2008-2015 STCnetwork.org.Version: 1.0 (29-March-2015)
Blogger Shortcode Plugin by STCnetwork is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. You are most welcomed to share the plugin with your readership as long as you attach attribution link back to this blog post and avoid selling the plugin in a commercial product or service.
We have to thank a lot of people here for helping us in the Plugin development.
-
We would like to thank the helpful community at stackoverflow who helped us in optimizing the scripts as much as possible and writing down simple logics. If these shortcodes are nest-able then it is only because of the kind help I received from this community co-founded by @jeff Atwood
-
We would like to thank Wordpress for sharing their helpful API that helped us better understand some core logics. Indeed they are the pioneers behind this idea.
-
We would like to thank Tien Nguyen for providing an idea of how to traverse through a loop using jQuery and replace the Square brackets with HTML tags.
-
We would like to thank Ahmed Nasir for helping us in debugging the script and making it possible to embed shortcodes within Comment iframe windows.
What is Next?
In coming hours, we will post separate tutorials for each shortcode, new and more demanded shortcodes will be released. Embedding stuff in blogger will be at your finger tips. Get rid of those long, complicated, heavy scripts and add stuff in blogger with just one line of code!
For extra help and details on implementation and development of this plugin, please create a discussion Topic at our Forum where I am always available 24/7 for any help needed.
Do share your precious views on this plugin and let us know how can we improve it further. Do mention services for which you need a custom shortcode and we would love to develop it for you and share it for free on this blog. Peace and blessings buddies! =>
If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »
hmmm...interest concept, nice nice
ReplyDeletety \m/
So glad to see you after such a long time beben :)
Deleteto make it more clear, how the explanation followed by CSS or HTML syntax writing in your project!
Deletebeben we will share the stylesheet for shotcodes in coming tutorials. Will share stylesheet separately for each shortcode so that users may only use the styles for shortcodes they wish to use. This saves load time and is a recommended approach
DeleteI got it :)
DeleteWow.. going to use it right away on my blog .. www.uberpromo.in
ReplyDeleteDo let us know if you need any help after installing :)
DeleteHi Mustafa,
ReplyDeleteI have been visiting that demo blog you created since you shared it on your G+ profile or it got shared automatically. I was so amazed to see all those tabs in the comments an posts.
I will try it on my blog too as this looks really interesting. Thanks for sharing and also thanks to those who (are mentioned in the post who) contributed in the making of the plugin.
Thanks for being an inspiration.
- Rohan Chaubey.
Damn I had mistakenly forgotten to unchecked the option "Automatically share to Google+ after posting" Clever you! ;)
DeleteWill wait to receive your kind views after you implement it. Thank you for all the kind feedback :)
Hey Bro,
ReplyDeleteReally that's a revolutionary change in blogger platform. Hats off for this great plugin and your efforts.
Thanks
Not until you add it to your blog and experience it live on your site! :D
DeleteSo glad you liked it. Thank you zohaib :>
Sure bro why not :)
DeleteGreat Help for the bloggers community. Thank you, for develpoing blogger shortcode and sharing with us. I'mm gonna add this on my blog.
ReplyDeleteNow you have something unique to share with your audience. Make sure to be the first to share it online! Really appreciate the kind words :>
Deleteaoa mustafa bahi i have a blog http://xasgames.blogspot.com where you can download free games.but there is no traffic (visitors).i done all seo setting plz help.
ReplyDeleteregards
malik sharjeel
W.salam dear
DeleteFor all such queries we launched the forum. Post your question now at www.bloggerhelpforum.com :)
Really a Great effort from you and your team Keep it up :) . I will try it on my blog insha allah
ReplyDeleteA pleasure dear Ghulam! :)
DeleteWow !!! Great :) Masha Allah :) Keep rocking bro :D
ReplyDeletemost welcome dear Ahmad , glad you liked it =)
DeleteYou are amazing brother. I was missing a amazing plugin for blogger from this blog. And after a long gap finally you gave us the gift :).
ReplyDeleteSurely you are the inspiration and example for those who thinks that wordpress is the best blogging platform. Now i am not going anywhere . I am sticking with blogger.com platform. Don't care what others says.
Amazing are people like you who keep contributors like us alive! =>
DeleteSurely blogger is the best platform to do blogging in every respect. For me wordpress is best for ecommerce purposes only
Thanks mohammad for letting us know about blogger short codes it will be really helpful
ReplyDeleteI hope it will making embedding of important wen elements extremely easy for most :)
DeleteThanks Mohammad for this amazing plugin.
ReplyDeleteTip:
1. You can update the fontawesome icons link with the latest.
You Can Replace:
http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css
To:
http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css
2. You can mention that persons who already have added the font oswald and font awesome icons by reading and following our previous posts, don't add it them this time.
Thank you shivansh, now that was a clever suggetsion. I have updated the fontawesome code.
DeletePeople using font oswald wil be guided in my coming tutorials. It will be relevant discussing it once i share the stylesheet :)
WOW! This is just great sir. just great...
ReplyDeleteA pleasure Debbie. Most welcomed!
Deletemuhammad brother this is great i love you brother this what i was searching thank you so much and may Allah give you more success and good health
ReplyDeleteI love you even more brother. You will find the coming tutorials a life really interesting. Posting the next tutorial within 24 hours
Delete:)
Hey I'm unable to use these shortcodes. I sucessfully installed the shortcodes but now I don'y know how to use them. I teried of adding the following code in my blog post but nothing happened. Please guide me regarding this.
ReplyDelete[update] MBT is planning to develop around 50 shortcodes within a month.[/update]
Of course nothing will happen unless we share the tutorials for each of these shortcodes which we will release shotrly :)
DeleteUPDATE
You can now suggest which Shortcode would you like to be created by us
You selected the Update shortcode, At present only those shortcodes are included inside the dynamic JS file which you find on the DEMO page. If the shortcode you are trying is not listed on demo page than it means you need to wait for its tutorial :)
DeleteI knew this when you shared it's posts on G+ sir :) very interested project, similar with wordpress. Good job sir :) It's very usefull for blogger to make great widget.
ReplyDeleteBut some of blogger always ask about blocking-render js on pagespeed insight when we use some js on blog. Is it support asynchronous sir?
This plugin is more lighter in weight compared to the blogger Navigation menu or blog post widget! Blogger shortcode plugin Renders seemless in background.
DeleteOur demo page has a page speed score of 81!! What else can someone wish for? :)
You are always awesome dear!
ReplyDeleteGreat help for bloggers willing to decorate their blogs with useful shortcodes. Waiting tutorials for better implementation on my blog. Thanks!
You are always welcomed!
DeleteJust published the first shortcode for Accordions! Check it out! =>
Superb Work specially using js thumbs up for great effort and idea
ReplyDeleteThat JS file is the engine that runs the shortcode. Thank you for the kind feedback Ahmed =>
DeleteYes i have watched that js file and also read your article i have made shortcodes for wordpress as i know its not as easy to take those code from PHP to JS anyway keep it up bro as your ideas and work is great
DeleteAwesome approach!
ReplyDeleteNow I can say loudly "We are Pakistanis and We best at blogging ;) " Thanks Mustafa for this plugin sharing :)
I am glad you liked it Umer but always remember that knowledge is a collective contribution and the reason why I am able to blog today is thanks to my mentors who were Indians. So it would be wrong to give a patriotic touch to it because I hold really high regards for my indian readers and also mentors.
DeleteYour excitement still means a lot. Thank you dear =>
You Have Two Steps With Same Name 6.Anyway Thanks
ReplyDeleteDear follow the shortcode tutorials to add them to your blog. And I have corrected the number mistake. Thank you for reminding :)
DeleteAwesome !
ReplyDeleteI'll wait next tutorial :)
Thanks !
ReplyDeleteMustafa SIR youare a great man day by day you making blogger very
easy and awsm..!! bt sir i need your one help..! for comment box
You are most welcomed dear abhijit. We will also try to create a shortcode for Facebook comments. :)
DeleteBuddy for any help contact me 24/7 at the forum only.
Nice tips. This blogger shortcode is easier to follow for beginner like me. Thanks a lot.
ReplyDeletehi, its long time Mohammad but glad you are back.
ReplyDeletemy query: how do i change upper case of title of the shortcode of sentence or title case
Glad to hear from you buddy! Such a pleasant surprise =d
DeleteWhich shortcode are you referring to? Mention the shortcode name so that I may let you customize its CSS
Accordian code....
DeleteThe accordion tabs headlines Character case appears as you type. If you wish to auto change the character case then add the following css property
Deletetext-transform:uppercase;
to this class
.sc-accordion > h3 a {
--
----
}
You can choose lowercase, uppercase and capitalize.
Amazing innovation bro..Keep going
ReplyDeleteHow to make tables with shortcodes? I've tried [table] But its not working. Then how to make tables using shortcodes? Please help
ReplyDeleteWe just served your request and have developed HTML Table shortcode. Try it now! :)
DeleteI have added your request to our TO-DO list and we will surely create the table shortcode too :)
ReplyDeleteHi,
ReplyDeleteAwesome Plugin!
I'm having one problem. The Tabs widget doesn't appears, but doesn't respond when I put it inside an Accordion Item. Is there a way to get it to work?
Thanks
I have to spend 2 or 3 months to understand the concept and now get back here as I have got the point :) , I am so usual with WordPress shortcodes, but now I've learnt a lot how to get it work with Blogger, Jquery! Never thought of it before. Thanks and keep up the good work, Brother. The next homework is how to make it neater to reduce the pageload time :p
ReplyDeleteAssalamu'alaykum
Is it possible to do the same from other video sharing sites like vimeo, tinypic etc. Since what i am doing is getting me banned from youtube and dailymotion :P
ReplyDeleteYou are a beautiful; =) lol
ReplyDeleteFrom Brazil!
Problem with your domain http://downloads.mybloggertricks.com ??
ReplyDeleteWhat shorcode do I use for tabs?
ReplyDeleteNP adding the plugin, but can not get the shortcodes to work
ReplyDeleteMohammad Hello, I'm doing a template to sell and want to add some shortcodes, how can I do the assignment for you?
ReplyDeleteSure you can do that!
DeleteJust link back to this page on your Template Selling page as the only favour in return
Currently we have assigned them to work only for blogger comments. We have added your request to our list. I think we can surely do that.
ReplyDeletewell ... actually I cannot find any proper "body" txt after which inserting your script
ReplyDeleteI tried the codes on my blog and nothing worked. Rather the hidden text that should appear only when the mouse is hovered on the link appeared on the page. see website: http://fxtradecity.blogspot.com/p/test_8.html
ReplyDeletehow can i crate one
ReplyDeleteThis is awesome bro :)
ReplyDeleteCan this shortcode also be used to insert facebook video?
Is this shotcode still working? And can it be used on the custom template
ReplyDeleteOf course it works and will live evergreen!! :)
Deletewhere's the shortcode list? or it's only for dailymotion!?
ReplyDeleteCan't you see that big list of all shortcodes inside the table at top? :)
DeleteHello, I first read this post back in 2015 and I had to come back because I am interested in it.
ReplyDeleteI would love you to create short code for content locker.
Sure John I will consider it. Thank you for the kind feedback :)
DeleteThe shortcodes work perfectly on a page, but when I use them in a post, the post breaks.
ReplyDeleteIt is just me or the script stoped working?
ReplyDeleteI have stopped the support from my host but you can download the file from here and host it on your webserver or any third party and it will just fine again
Delete