Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upload Plugin Embed Code Options
#1
There are plenty options to make the Upload Plugin fit better for your website needs.  By adding a few words and you can make the system integrate more aesthetically.

The base code to implement the Upload Plugin is:
Code:
<script async src="//imgzb.com/sdk/pup.js" data-url="https://imgzb.com/upload"></script>
There are many options for the upload image embed code that is automatically inserted into your text input area.  The default embed code is BBCode Medium Size Image.  However, all of the embed codes that are available on the website of imbZB are available to be inserted!

If you wanted to have the BBCode Full Size Image inserted, you simply add data-auto-insert="bbcode-embed-full to the imgzb script tag, like this:
Code:
<script async src="//imgzb.com/sdk/pup.js" data-url="https://imgzb.com/upload" data-auto-insert="bbcode-embed-full"></script>

The default selections include: Viewer links, Direct links, HTML image, HTML full linked, HTML medium linked, HTML thumbnail linked, BBCode full, BBCode full linked, BBCode medium linked, BBCode thumbnail linked, Markdown full, Markdown full linked, Markdown medium linked, Markdown thumbnail linked

So to make the code embed BBCode thumbnail images, you would add data-auto-insert="bbcode-embed-thumbnail", so the script tag would be revised to this:
Code:
<script async src="//imgzb.com/sdk/pup.js" data-url="https://imgzb.com/upload" data-auto-insert="bbcode-embed-thumbnail"></script>
There many other options available which include what type of color the upload button is displayed as, where the button is placed in relation to your text input box and much more.  Visit the Upload Plugin page and click on the hyperlink "options" for more information on options for implementation.
Offline Offline
Reply
Topic Options
Forum Jump:




Users browsing this thread: 1 Guest(s)