To allow your site's visitors to twell your stories from your website and submit your stories to Twelling, please select one of the code below and copy paste it into your website.
 |
<script type="text/javascript">
var_url = 'WEBSITE_URL';
var_skin = 'mode1';
var_width = '100';
var_height = '21';
</script>
<script src="http://www.twelling.com/tools/vote/vote.js" type="text/javascript"></script>
|
 |
<script type="text/javascript">
var_url = 'WEBSITE_URL';
var_skin = 'mode2';
var_width = '100';
var_height = '21';
</script>
<script src="http://www.twelling.com/tools/vote/vote.js" type="text/javascript"></script>
|
Replace WEBSITE_URL, with the URL that you want to use. Don't worry about URL-encoding it, our code will do that for you. For example:
http://example.com/yourstoryur/storypagedetails.html
This method will allow you to have a number of Twell This buttons on the same page of your site. Remember, the above two examples will also work to submit the page if the content hasn't yet appeared on Twelling.
Full Example on using Voting widget:
<script type="text/javascript">
var_url = 'http://example.com/yourstoryurl/storypagedetails.html';
var_skin = 'mode1';
var_width = '100';
var_height = '21';
</script>
<script src="http://www.twelling.com/tools/vote/vote.js" type="text/javascript"></script>
Integrate Twelling Voting Widget into your CMS website
We provide several plugins for your CMS website to make your Twelling Voting Widget installation easy:
WordPress
- Download the plugin here
- Extract and upload the zip file into wp-content/wp-plugins
- Login into wordpress administrator then go to menu Admin - Plugin.
- Activate Twell plugin
- Edit your wordpress template, wp-content/<your active theme>/index.php
- Find syntax " <?php the_content " and under this line please add this code below:
<?php twell(); ?
- A parameter that can be added on calling function twell() is:
mode1 or mode2
e.g. twell('mode1');
Blogspot
Blogspot doesn't provide plugin's installation, so you have to add this plugin's code manually. Please follow these instructions below:
- Login into your blogspot account, go to Setting - Archiving menu
- Select Yes to Enable Post Pages
- Don't forget to backup your template first in Template - Edit HTML - Download menu
- Still in this menu, choose Expand Widget Template, find the code "<p><data:post.body/></p>" and under this line please copy paste this code below:
<div style='float:left; margin-left:10px;'>
<script type="text/javascript">
var_url = '<data:post.url/>';
var_skin = 'mode2';
var_width = '100';
var_height = '21';
</script>
<script src="http://www.twelling.com/tools/vote/vote.js" type="text/javascript"></script>
</div>
- Save and preview your template
-
Joomla
- Download the plugin here
- Login into your Joomla Admin site
- Goto to menu Installers - Mambots
- Press "Browse" button and choose mostwell.zip file, then click "Upload file and Install" button
- Then go to menu Mambots - Site Mambots and publish "Twelling Voting Widget" mambot
- When you click the title name, you will be brought into "Twelling Voting Widget" mambot edit. There are also 2 parameters that can be set here; button mode and what content categories that you want to show this voting widget