WordPress插件:Twitter Swell

Twitter Swell我是根据Twitter Blaster修改而来的一个插件,Twitter Swell的用途是添加Twiiter信息输入框到自己的博客上面并个性化输出显示。这样,我们就能免去很多麻烦,只要你登录了自己的博客就能在自己的博客上进行twitter。而Twitter Blaster插件则是让游客可以说是任何人都能用博客主人设定的账户发生twitter….好可怕啊…不知道Twitter Blaster的作者怎么想的…

下面,我们来看下效果图:
image
因为有些地方描述不是很好,这里做一个术语约定。
1. 登录窗体:即登录博客时填写用户名,密码的窗体。
2. Twitter发送窗体:即输入你要发送的Twiiter信息框的窗体。
3. Tweet窗体:即显示Twitter信息的窗体。

博客日志的正上方为Twitter发送窗体。右边About me下面是Tweet窗体。本来Tweet窗体是我自己做的一个主题部分,这次为了增强Twitter Swell的功能,就把它融合进来了。

使用方法也很简单,下载插件,上传并激活,进入后台Twitter Swell设置页面输入Twitter帐号和密码,然后在你想显示Twitter发送窗体的地方插入下面代码即可:




WSTS_ShowTwitter()还支持一个参数:


这个主要是为了方便大家的使用而设立的,也就是说如果你使:<?php WSTS_ShowTwitter($LoginForm=true); ?>代码,能在未登录博客的状态下显示登录窗体。同样的你也可以只直接使用代码显示登录窗体,只不过下面这函数只能显示登录窗体:


而想显示Tweet窗体,就插入代码:


如果你不满意当前的样式,你可以在插件目录下的css文件夹下修改相应的设置以满足你的要求。

这里有一个注意事项: 使用本插件显示Tweet窗体的时候,请务必确认没有其他第三方或者官方的显示插件。

插件下载:Twitter Swell 0.8

== Enlgish ==
Tags: twitter,widgets,posts,form,posting
Contributors: icyleaf
Requires at least: 2.3.1
Stable tag: trunk
Tested up to: 2.5.1

== Description ==
You coult post message to your Twitter and show it.

== Installation ==
1. Upload the full directory into your wp-content/plugins directory.
2. Activate the Plugin in WP-Admin.
3. Goto Options > Twitter Swell. You must input Twitter username and password.

== Useage ==
Terminology Agreement
1. LoginForm: Log in to Blog filled out a user name and password form.
2. TwitterForm: Send Twitter message form.
3. TweetForm: Show Twitter messages from.

Add below code to the theme where you would like it your user to twitter from:




The best place to put it would be in your theme’s index.php file right above

And WSTS_ShowTwitter() function can be used it with parameter! Parameter Usage:


if using it without parameter, then it did’t show LoginForm before log in to your blog.
Also, using <?php WSTS_TweetForm() ?> codes that it will show TweetForm.

Notice:
Make sure Don’t using this plugins together with the other twitter api apps.

Download:Twitter Swell 0.8

4 thoughts on “WordPress插件:Twitter Swell

  1. Very gread plugin! Thanks for sharing it to us!
    yep, i see it which some new changes to Twitter Blaster, but it takes a mistake when i active this plugins.

  2. Hi

    Can you show me how the form uses the login parameter? I’ve tried it but can’t seem to make it work?

  3. you can try < ?php WSTS_ShowTwitter(true); ?> that it’s both show login form and twitter form. or only show login form:< ?php WSTS_LoginForm(); ?>