Social buttons
With maxmertkit you can add customized social buttons to you projects with you own links, names and other stuff. What those buttons can do? For example, get number of shares. Let's look.
Twitter button
<iframe src="http://maxmert.com/services/social/twitterTwitButton?url=http://www.maxmert.com&counter=true&via=maxmertkit&twit=twit%20text&buttontext=Twit about maxmertkit" frameborder="0" allowtransparency="true" scrolling="no" onload="resizeFrame(this)"></iframe>
Usage
Just add iframe and pass parameters with url http://maxmert.com/services/social/twitterTwitButton
| Name | Type | Description |
|---|---|---|
| url | string | Url you want to share. Also uses to get shares quantity. |
| counter | boolean | If true get and show count of shares. |
| withIcon | boolean | If true, show twitter icon. |
| via | string | Set via value to twit text (for example via @maxmertkit). |
| twit | string | Twit text. |
| buttontext | string | Text on the button. |
Also you should add some javascript to you page (this code will work for all buttons)
<script type="text/javascript">function resizeFrame(f) {var innerDoc = f.contentDocument || f.contentWindow.documentvar button = innerDoc.getElementById('button');f.height = f.contentWindow.document.documentElement.scrollHeight || f.contentWindow.document.body.scrollHeight;f.width = button.offsetWidth + 20;}</script>Facebook button
<iframe src="http://maxmert.com/services/social/facebookPostButton?url=http://www.maxmert.com&counter=true&buttontext=Post about maxmertkit" frameborder="0" allowtransparency="true" scrolling="no" onload="resizeFrame(this)"></iframe>
| Name | Type | Description |
|---|---|---|
| url | string | Url you want to share. Also uses to get shares quantity. |
| counter | boolean | If true get and show count of shares. |
| withIcon | boolean | If true, show facebook icon. |
| buttontext | string | Text on the button. |
Do not forget to add javascript code to you page.
Delicious button
<iframe src="http://maxmert.com/services/social/deliciousSaveButton?url=http://www.maxmert.com&counter=true&title=Maxmertkit&buttontext=Save to delicious" frameborder="0" allowtransparency="true" scrolling="no" onload="resizeFrame(this)"></iframe>
| Name | Type | Description |
|---|---|---|
| url | string | Url you want to share. Also uses to get shares quantity. |
| counter | boolean | If true get and show count of shares. |
| withIcon | boolean | If true, show facebook icon. |
| buttontext | string | Text on the button. |
| title | string | Title for saving bookmark. |
Do not forget to add javascript code to you page.
Github button
<iframe src="http://maxmert.com/services/social/githubForkButton?user=maxmert&repo=maxmertkit&counter=true&buttontext=Watch me" frameborder="0" allowtransparency="true" scrolling="no" onload="resizeFrame(this)" class="githubForkButton" height="44" width="163"></iframe>
| Name | Type | Description |
|---|---|---|
| user | string | User name. |
| repo | string | Repository name. |
| counter | boolean | If true get and show count of shares. |
| withIcon | boolean | If true, show facebook icon. |
| buttontext | string | Text on the button. |
Do not forget to add javascript code to you page.