This is a WordPress plugin that adds a sidebar widget to display 12seconds video status updates. For those of you who are familiar with Twitter; 12seconds is like Twitter, but with video instead of text updates. You can also embed the widget in posts and pages using shortcodes.
The widget itself is essentially a video player. It uses the widget embed code (need to login) provided by 12seconds.tv. The plugin saves you the hassle of copying and pasting embed code and editing templates.
Installation
- Verify that you have PHP5, which is required for this plugin.
- Download the whole 12seconds-widget folder into the
/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
Usage
The plugin can be used in two ways:
- Display the widget in the sidebar
- Embed the widget on posts and pages.
1, Displaying the widget on a sidebar
After activating the 12seconds-widget plugin, go to the widgets section. Now drag the widget into your chosen sidebar and configure. You must enter a 12seconds username. You can choose to display a skinny (175×290) or fat (380×440) version of the widget. Make sure you click the ‘Done’ button and the ‘Save Changes’ button after making changes.

If you don’t want a widget title just leave the Title field blank.
2, Displaying the widget on a post or page
Using the shortcodes system in WordPress 2.5 and up, the plugin will allow you to embed the widget into your pages and posts.
Use the “12suser” shortcode to display updates for an individual user

- The username attribute is required and is the login/user name to the 12seconds site.
- The *size* attribute is optional and can be “fat” or “skinny” (default).
Use the “12svideo” shortcode to display a single video
![]()
- The id attribute is required.
- The id is the last set of digits of the URL when viewing a video on the 12seconds.tv site. The URLs takes the form
http://12seconds.tv/channel/username/123456. The id in this case would be"123456".
PS: The 12s shortcode introduced in version 0.2 will still work, but it has been deprecated.
Styling Guidelines
The widget embed code tag is assigned CSS class twelve-s-widget.
The caption for individual videos ( when you use the 12svideo shortcode ) is assinged CSS class twelve-s-caption to the tag.
<span class="twelve-s-caption"> ........... </span>
Examples
The following examples show the status updates and individual videos by the 12seconds team.
Skinny widget showing the updates for username ”12seconds”.
Fat widget showing iJustine’s updates (she’s not a regular 12er, but the few she did are masterpieces).
From 12seconds.tv
Single video showing 12seconds co-founder Sol Lipman explaining what its all about.
This rocks dude!! Thanks!
[...] 12seconds Widget [...]
[...] 12seconds Widget [...]
[...] 12seconds Widget [...]
Sorry, doesn’t work for me: wordpress 2.7.1 sez “Parse error: syntax error, unexpected ‘,’, expecting ‘(’ in [HiddenPathToMyUserDir]/wp-content/plugins/12seconds-widget/12seconds-widget.php on line 27″ when trying to activate the plugin.
Any ideas?
Hi marius,
Line 27 is the first line of code in the new 0.3 version of the plugin. The Plugin requires PHP 5, so make sure that is not the problem.
Since you are running 2.7.1, can you install the plugin from within WordPress and see if that works. I’m wondering if the file got corrupted during transfer. Make sure that you delete the old plugin if you installed it manually.
Admin > Plugins > Add New
search for “12seconds”, install the plugin and activate. Let me know how things turn out.
[...] 12seconds Widget [...]
Thanks for the help.
My bad, I’m actually using PHP4 not PHP5.
Sorry for the cry wolf.
Ahhh sadness. I assume that the php4 vs 5 thing is my problem too despite not knowing completely what it is.
Hi Sue, it means that your blog/website host is running PHP version 4 to interpret plugin code. Active PHP 4 development was discontinued more than an year ago. Bugs and security holes that appeared in the recent past, and ones that are sure to appear in the future, will remain unfixed.
If you are running your blog on a commercial host, they may have an option to run PHP5 instead of PHP4.
It was a hard decision to not support the older version of PHP on this plugin ( yes I did think about it ). However, taking long-term maintenance into consideration, I decided to go with PHP 5.
[...] 12seconds Widget [...]
[...] 12seconds Widget [...]
[...] 12seconds Widget [...]
[...] 12seconds Widget [...]
Great plugin, I will say! However, I’m getting a bit of an error as well. I’m pretty sure I’m running PHP5, as my host (NetSol) claimed to have upgraded me last year. My error, when I activate the “skinny” sidebar widget, is:
Warning: Missing argument 3 for TwelveSecondsWidget::getWidgetCode(), called in /data/14/1/109/27/1272027/user/1357541/htdocs/wp-content/plugins/12seconds-widget/12seconds-widget.php on line 105 and defined in /data/14/1/109/27/1272027/user/1357541/htdocs/wp-content/plugins/12seconds-widget/12seconds-widget.php on line 110And then the 12seconds widget appears working just below it. Check out a live example on my site. Thoughts?
Ah, cancel previous comment. I believe I fixed it myself. I changed line 105 in 12seconds-widget.php from:
echo self::getWidgetCode( $username, $size );
to:
echo self::getWidgetCode( $username, $size, $video );
Thank you for making such an awesome plugin! 12 for life!
Thanks for catching that bug Jon. I’ve submitted version 0.3.1 with the fix.
[...] a sidebar widget to display 12seconds video status updates… …..read more Download Plugin! Plugin Owner: Chandima Cumaranatunge Homepage: Visit Plugin’s Website [...]
Well, it worths checking:-)
I get this error with a 2.8 install.
*******************************
Parse error: syntax error, unexpected ',', expecting '(' in /homepages/4/d219413911/htdocs/wp-content/plugins/12seconds-widget/12seconds-widget.php on line 27@swinhoe line 27 is the first line of code in the plugin. I think you may be running PHP 4. The plugin requires PHP 5. Can you check?
Is there any way to alter the size of the fat setting? It’s a little too wide for my sidebar. Thanks
Hi
This plugin is brilliant. Just a silly question – how can I adjust widths and heights of the flash video?
I’m trying to use it on the sidebar abd both of the options (skinny and fat) doesn’t apply to my design. I would really appreciate your help
Thank you Hubert
Hi Phil and Hubert,
Unfortunately there isn’t an option to customize the size of the widget. I’m using the video player developed by 12 seconds. To get a custom size you will have to use a custom player like the JW FLV Media Player and specify the video file using the 12seconds API. I did have plans to do this as a feature of the plugin but haven’t gotten around to it.
[...] you with a WordPress blog, you can showcase your 12seconds videos on your blog with this plugin: 12seconds Widget: A Plugin to display 12seconds videos on your WordPress blog __________________ Free PC Game Download InfoVisit theBubbler Amazon StoreStay Connected by [...]
Is there a way to get the widget to center itself in my side bar? Right now its left justified. YOU TOTALLY ROCK!!! Your widget is awesome!
@tommytrc the widget embed tag is assigned a “twelve-s-widget” class. The widget should center with the following class style rule.
.twelve-s-widget {text-align: center;}