Archive for Hack

How to make one twitter page in your blog

Twitter provides some plugins that can display your messages recently in twitter. But for me, that isn’t enough. I need twitter to be one powerful supplement for my blog: 1. the visitors needn’t go to twitter to see my message; 2. the visitors can view all of my messages by page turning.

So, I did as the below way. It is enable in WordPress.

1.make one new page, and paste the below code

<style type=”text/css”>
#sidebar{display:none;}
#content{width:800px;}
</style>

<iframe src=”http://fanfou.com/terababy” height=”1500″ width=”100%”></iframe>

Note:
Because most of pages in WordPress template, the sidebar always display, the work of the css is to hide the sidebar and make the twitter wider.

And you must replace the source of the element “iframe” with your twitter’s profile.

2. publish the page, then you can see it in your blog

You can see the work in my test blog:
http://terababy.yo2.cn/twitter/

Btw, I have 2 invites in Pownce. If you need it, please leave me your email address.


Share this: del.icio.us Digg Furl Reddit BlinkList blogmarks Google Ma.gnolia Netscape Newsvine Simpy Spurl StumbleUpon Technorati Windows Live Yahoo!

Related Post




How to make one Google Blog Search Form in your blog

Google blog search service is one nice search engine. And you can search articles in one special blog by "keyword blogurl:http://blogurl/". For the blogger. It is better than Google Customize Search.

How to make one Google Blog Search Form in your blog? You need only put the below code into your blog template. And replace the variable - site with your blog url. You can download the code from http://www.codingmill.com/theforgottenmilk/download/3/

<script type="text/javascript">
function searchblogs() {
var q = document.getElementById("searchbox_googleblog_q").value;
var site = "terababy.blogspot.com";
var href = "http://blogsearch.google.com/blogsearch?hl=en&newwindow=1&safe=off&rls=org.mozilla%3Aen-US%3Aofficial&amp;amp;amp;amp;ie=UTF-8&oe=UTF-8&um=1&tab=wb&oi=revisions_inline&resnum=0&ct=property-revision&cd=1&q=" + q+ "+blogurl%3Ahttp%3A%2F%2F" + site + "%2F&btnG=Search+Blogs";
window.open (href , ‘_blank’);
}
</script>

<form id="searchbox_googleblog" onsubmit="javascript:searchblogs();return false;">
<input id="searchbox_googleblog_q" style="margin: 4px 0 0 1px;padding: 1px 0 0 2px;border: 2px solid #919191;width=120px;height=16px; " name="q" type="text"/>
<input value="Search" name="sa" onclick="javascript:searchblogs();" type="button"/>
</form>

For example, you can search my articles in the head of my blog.


Share this: del.icio.us Digg Furl Reddit BlinkList blogmarks Google Ma.gnolia Netscape Newsvine Simpy Spurl StumbleUpon Technorati Windows Live Yahoo!

Related Post




How to share articles from GoogleReader to Twitter

When reading articles in GoogleReader, how to share the nice articles to Twitter at a rapid? I made one GreaseMonkey script for that, and you can now.

The format of messages

[Tag] Title(Note) URL

The basic function

  • Tag\title\URL are received from articles in GoogleReader automatically. And you can edit them.
  • URL can be converted into tinyURL.
  • Before sending the messages, the words number will be counted.

The installation order

i. Install the browser - firefox
http://www.mozilla.com/en-US/
ii. Install the plugin - GreaseMonkey
http://addons.mozilla.org/en-US/firefox/addon/748
iii. Install this script
http://userscripts.org/scripts/show/10169

The specification

1. the link "Share with twitter"

After installing the script, open GoogleReader. Below each article, one link "Share with twitter" is added in the toolbar.

2. one mini window

Click the link, one mini window will popup. There are four inputboxes: Title, Tags, URL, and Note. Tag\title\URL are received from articles in GoogleReader automatically. And you can edit them. If you want to talk about it yourself, please input in "Note".

3. four buttons

  • Save - send the message to twitter
  • TinyURL - make the long url tiny. Once you click it, please wait the URL changing from "making urlurl tiny…" to one tiny url
  • Count - count the words’ number
  • Cancel - close the mini windows

4. the user authentication

When you send the first message, one authentication is required. Please use your registered username or email address as the username component.

5. show the messages shared

You can install the script here:
http://userscripts.org/scripts/show/10169


Share this: del.icio.us Digg Furl Reddit BlinkList blogmarks Google Ma.gnolia Netscape Newsvine Simpy Spurl StumbleUpon Technorati Windows Live Yahoo!

Related Post




Page 1 of 212»