From e1fd13f1b24d76fc969c14faf1096872396b7bf2 Mon Sep 17 00:00:00 2001 From: Dan Boger <zigdon@irc.peeron.com> Date: Mon, 29 Jun 2009 14:49:21 -0700 Subject: [PATCH 1/1] Add HTML and php pages --- html/about.html | 22 +++ html/history.html | 341 +++++++++++++++++++++++++++++++++++++++++++ html/index.php | 133 +++++++++++++++++ html/installing.html | 25 ++++ html/tweets.html | 4 + html/using.html | 125 ++++++++++++++++ 6 files changed, 650 insertions(+) create mode 100644 html/about.html create mode 100644 html/history.html create mode 100644 html/index.php create mode 100644 html/installing.html create mode 100644 html/tweets.html create mode 100644 html/using.html diff --git a/html/about.html b/html/about.html new file mode 100644 index 0000000..6a11e8e --- /dev/null +++ b/html/about.html @@ -0,0 +1,22 @@ +<p><img src="twirssi-shot.png" /></p> +Twirssi allows you to post to <a href="http://twitter.com">Twitter</a> +and <a href="http://identi.ca">Identi.ca</a> from <a href="http://irssi.org">your +favorite IRC client</a>, as well as: + +<ul><li>Read your friend feed, and your replies (from people on and not on your feed).</li> +<li>Receive and send direct messages (DMs)</li> +<li>Use multiple accounts, on either twitter or identi.ca - follow, read and post</li> +<li>See the context when your friends reply to users you aren't following</li> +</ul> + +<a href="twirssi.pl">Click here</a> to download the current version. Current +development is mirrored in <a href="http://github.com/zigdon/twirssi/tree/master">github</a>. +A running twirssi install can be switched to use beta code by setting +twirssi_upgrade_beta to true, and using /twirssi_upgrade. +. +The script is written and maintained by <a +href="http://twitter.com/zigdon">@zigdon</a>, and the site and logo are by <a +href="http://twitter.com/relsqui">@relsqui</a>. Try it out, leave comments, and +follow development by following <a +href="http://twitter.com/twirssi">@twirssi</a>, or join #twirssi on <a +href="http://foonetic.net">Foonetic</a>.</p> diff --git a/html/history.html b/html/history.html new file mode 100644 index 0000000..4de21cf --- /dev/null +++ b/html/history.html @@ -0,0 +1,341 @@ +<ul> +<li><strong>v.2.2.4BETA - currently under development</strong><br /> + <li>Rename /twitter_friend and /twitter_unfriend to /twitter_follow and + /twitter_unfollow</li> + <li>BETA versions are always available at <a + href="http://github.com/zigdon/twirssi/tree/master">github</a>. You + can also upgrade a running twirssi install by setting + twirssi_upgrade_beta to true, and using /twirssi_upgrade.</li></ul></li> +<li><strong>v.2.2.3 - 14:00 21-May-2009</strong><br /> + <ul> + <li>Reduce the frequency we check friends list updates, controlled by + twitter_friends_poll. By default set to 10 minutes.</li> + <li>Fixed nick hilighting thanks to a pointer from @g45g.</li> + <li>Don't show the "Haven't been able to get updates since..." after the + first 10 minutes of failure.</li> + <li>Don't tie retweets with their originating tweet, as that would cause + them to not be displayed to people who haven't already seen the + original. #fixreplies.</li> + <li>View it <a href="twirssi-2.2.3.html">here</a>, + download version 2.2.3 <a href="twirssi-2.2.3.pl">here</a>.</li></ul></li> +<li><strong>v.2.2.2 - 20:30 20-Apr-2009</strong><br /> + <ul> + <li>Added tab-complete for /twitter_unfriend</li> + <li>Fix searches, thanks to @Olatho finding a bug. Note that existing + searches should be removed before upgrading, and re-added after.</li> + <li>View it <a href="twirssi-2.2.2.html">here</a>, + download version 2.2.2 <a href="twirssi-2.2.2.pl">here</a>.</li></ul></li> +<li><strong>v.2.2.1 - 00:00 11-Apr-2009</strong><br /> + <ul> + <li>Stopped using <code>since</code> as a parameter as Twitter suddenly + dropped support for it.</li> + <li>Reduce number of times context calls are made to Twitter</li> + <li>Added /retweet and /retweet_as commands. See docs for usage + details.</li> + <li>View it <a href="twirssi-2.2.1.html">here</a>, + download version 2.2.1 <a href="twirssi-2.2.1.pl">here</a>.</li></ul></li> +<li><strong>v.2.2.0 - 15:30 16-Mar-2009</strong><br /> + <ul> + <li>Added initial support for Identi.ca. Whenever a username is + specified, you can now say username@twitter or username@identica.</li> + <li>Added support for bit.ly as a URL shortener by adding a new setting, + short_url_args, where you can enter your bit.ly username and API + key.</li> + <li>New setting added, twirssi_default_service - should be either Twitter + or Identica. Used when a username is specified without a @service, + though some smarts are in place to try to guess correctly.</li> + <li>New command /twitter_device_updates allow starting and stopping of + SMS messages from twitter.</li> + <li>View it <a href="twirssi-2.2.0.html">here</a>, + download version 2.2.0 <a href="twirssi-2.2.0.pl">here</a>.</li></ul></li> +<li><strong>v2.1.2 - 14:00 07-Mar-2009</strong><br /> + <ul> + <li>Truncated tweets will now include the URL to follow to see the full + text.</li> + <li>If your password contains a comma, you can now escape it in + twitter_passwords with a '\'.</li> + <li>When using /twitter_reply, tab complete should now suggest nicks in + the order of most-recently-tweeted first.</li> + <li>Some twirssi generated messages now will no longer count as activity + in the twitter window.</li> + <li>View it <a href="twirssi-2.1.2.html">here</a>, + download version 2.1.2 <a href="twirssi-2.1.2.pl">here</a>.</li></ul></li> +<li><strong>v2.1.1 - 15:00 25-Feb-2009</strong><br /> + <ul> + <li>New setting, twirssi_upgrade_beta, will cause /twirssi_upgrade to + grab the latest BETA version if true. Defaults to off.</li> + <li>Duplicate tweets within the same update will no longer be displayed + (such as search results matching a tweet already being followed</li> + <li>Bug fix - random search subscriptions will no longer appear</li> + <li>View it <a href="twirssi-2.1.1.html">here</a>, + download version 2.1.1 <a href="twirssi-2.1.1.pl">here</a>.</li></ul></li> +<li><strong>v2.1.0 - 17:00 24-Feb-2009</strong><br /> + <ul> + <li>Fix Unicode support for incoming tweets (outgoing always + worked).</li> + <li>Improve behaviour when twitter is lagged, will result in much fewer + lost tweets.</li> + <li>Add pretty fail-whale art when twitter is very broken.</li> + <li>Shorten URLs only when needed in @replies too, not just in normal + tweets.</li> + <li>View it <a href="twirssi-2.1.0.html">here</a>, + download version 2.1.0 <a href="twirssi-2.1.0.pl">here</a>.</li></ul></li> +<li><strong>v2.0.5 - 14:00 19-Feb-2009</strong><br /> + <ul> + <li>New settings, twirssi_notify_timeouts, controls if twitter API + timeouts should be reported at all. Changed the text of the message to + be more user friendly.</li> + <li>Internal code layout changes.</li> + <li>View it <a href="twirssi-2.0.5.html">here</a>, + download version 2.0.5 <a href="twirssi-2.0.5.pl">here</a>.</li></ul></li> +<li><strong>v2.0.4 - 20:00 16-Feb-2009</strong><br /> + <ul> + <li>Minor fix allowing displaying @nick and #topic colors + completely.</li> + <li>View it <a href="twirssi-2.0.4.html">here</a>, + download version 2.0.4 <a href="twirssi-2.0.4.pl">here</a>.</li></ul></li> +<li><strong>v2.0.3 - 20:00 16-Feb-2009</strong><br /> + <ul> + <li>Fixed a few bugs that would claim that a DM was sent when it + wasn't really.</li> + <li>Automatically reduce multiple spaces to one.</li> + <li>New setting, twirssi_hilights, controlls if your own @nick mentioned + should make hilight the line.</li> + <li>New settings, twirssi_nick_color and twirssi_topic_color, allow + selecting what colors should @nicks and #topics use.</li> + <li>View it <a href="twirssi-2.0.3.html">here</a>, + download version 2.0.3 <a href="twirssi-2.0.3.pl">here</a>.</li></ul></li> +<li><strong>v2.0.2 - 11:00 05-Feb-2009</strong><br /> + <ul> + <li>Fixed a few bugs that would have led to missed or duplicate search + results</li> + <li>Added a new setting, twirssi_replies_autonick, that can disable + automatically adding @nick to the beginning of @replies</li> + <li>View it <a href="twirssi-2.0.2.html">here</a>, + download version 2.0.2 <a href="twirssi-2.0.2.pl">here</a>.</li></ul></li> + +<li><strong>v2.0.1 - 10:00 02-Feb-2009</strong><br /> + <ul> + <li>Fixed a bug that would cause tweets to disappear if they're a reply + to a tweet we can't see.</li> + <li>Fixed a bug that would show #topic searches to show the same results + multiple times</li> + <li>Fixed a bug that would cause duplicate errors to show up when a tweet + containing a URL is too long</li> + <li>View it <a href="twirssi-2.0.1.html">here</a> + (<a href="http://tinyurl.com/dclxj3">git</a>), + download version 2.0.1 <a href="twirssi-2.0.1.pl">here</a>.</li></ul></li> + +<li><strong>v2.0 - 18:30 29-Jan-2009</strong><br /> + <ul> + <li>Add support for Net::Twitter 2.x search commands.</li> + <li>Allow adjusting the polling interval by setting + twitter_poll_interval</li> + <li>Allow subscribing to topics (or any search keyword) with + /twitter_subscribe, /twitter_unsubscribe.</li> + <li>Use /twitter_list_subscriptions to see all current searches</li> + <li>View it <a href="twirssi-2.0.html">here</a> + (<a href="http://tinyurl.com/twirssi-2-0">git</a>), + download version 2.0 <a href="twirssi-2.0.pl">here</a>.</li></ul></li> + +<li><strong>v1.7.8 - 17:00 27-Jan-2009</strong><br /> + <ul> + <li>Change the way tweets are printed, using irssi's formats. As a side + effect, should support proper nick hilighting.</li> + <li>View it <a href="twirssi-1.7.8.html">here</a> + (<a href="http://tinyurl.com/aa772x">git</a>), + download version 1.7.8 <a href="twirssi-1.7.8.pl">here</a>.</li></ul></li> + +<li><strong>v1.7.7 - 08:00 26-Jan-2009</strong><br /> + <ul> + <li>Auto-create the twitter window if it doesn't exist.</li> + <li>Don't shorten URLs unless we need the space.</li> + <li>View it <a href="twirssi-1.7.7.html">here</a> + (<a href="http://tinyurl.com/abuo94">git</a>), + download version 1.7.7 <a href="twirssi-1.7.7.pl">here</a>.</li></ul></li> + +<li><strong>v1.7.6 - 10:00 21-Jan-2009</strong><br /> + <ul> + <li>Fix tab-complete for /twitter_reply - it will now include the latest + :nn for whatever it's completing, and strip out leading @ signs</li> + <li>View it <a href="twirssi-1.7.6.html">here</a> + (<a href="http://tinyurl.com/8u52rg">git</a>), + download version 1.7.6 <a href="twirssi-1.7.6.pl">here</a>.</li></ul></li> + +<li><strong>v1.7.5 - 23:30 20-Jan-2009</strong><br /> + <ul> + <li>Minor fix for an additional source of Lost Terminal errors</li> + <li>View it <a href="twirssi-1.7.5.html">here</a> + (<a href="http://tinyurl.com/8u52rg">git</a>), + download version 1.7.5 <a href="twirssi-1.7.5.pl">here</a>.</li></ul></li> + +<li><strong>v1.7.4 - 21:00 13-Jan-2009</strong><br /> + <ul> + <li>New option, tweet_window_input (off by default) to allow writing to + the twitter window directly for tweets.</li> + <li>Remove the ban on JSON::XS as it wasn't related to the Lost Terminal problem.</li> + <li>View it <a href="twirssi-1.7.4.html">here</a> + (<a href="http://tinyurl.com/8o9bum">git</a>), + download version 1.7.4 <a href="twirssi-1.7.4.pl">here</a>.</li></ul></li> + +<li><strong>v1.7.3 - 15:00 08-Jan-2009</strong><br /> + <ul> + <li>Minor code cleanups</li> + <li>Catch another place where a bad reply from twitter could cause a Lost + Terminal problem</li> + <li>Remove any embedded newlines in incoming tweets</li> + <li>View it <a href="twirssi-1.7.3.html">here</a> + (<a href="http://github.com/zigdon/twirssi/tree/d45fb40111af895f017bfa0d7e0f2bc9e988f2c9">git</a>), + download version 1.7.3 <a href="twirssi-1.7.3.pl">here</a>.</li></ul></li> + +<li><strong>v1.7.2 - 20:00 06-Jan-2009</strong><br /> + <ul> + <li>Minor updates to how messages are printed</li> + <li>Try to avoid using JSON::XS in hopes of getting rid of the Terminal + Lost bug once and for all. /twirssi_version will now report which + JSON module is being used.</li> + <li>View it <a href="twirssi-1.7.2.html">here</a>, download version 1.7.2 <a +href="twirssi-1.7.2.pl">here</a>.</li></ul></li> + +<li><strong>v1.7.1 - 07:00 06-Jan-2009</strong><br /> + <ul> + <li>Minor typos fixed</li> + <li>Fixed a small bug that forced using lower case nicks in replies, even + though the tab complete did it right.</li> + <li>View it <a href="twirssi-1.7.1.html">here</a>, download version 1.7.1 <a +href="twirssi-1.7.1.pl">here</a>.</li></ul></li> + +<li><strong>v1.7 - 18:00 05-Jan-2009</strong><br /> + <ul> + <li>Replies should now work even if you reload twirssi (saved in the + location set by twirssi_replies_store)</li> + <li>Further attempts to deal with errors originating from Twitter or + Net::Twitter in a graceful fasion</li> + <li>View it <a href="twirssi-1.7.html">here</a>, download version 1.7 <a +href="twirssi-1.7.pl">here</a>.</li></ul></li> + +<li><strong>v1.6.1 - 08:00 05-Jan-2009</strong><br /> + <ul> + <li>Minor update, might help people running into the Lost Terminal + problem (trying to workaround a possible bug in newer + Net::Twitter)</li> + <li>View it <a href="twirssi-1.6.1.html">here</a>, download version 1.6.1 <a +href="twirssi-1.6.1.pl">here</a>.</li></ul></li> + +<li><strong>v1.6 - 19:00 04-Jan-2009</strong><br /> + <ul> + <li>Add a /twitter_reply (and optionally a /reply) command, allowing + @replies to be tied to particular tweets. See new settings + twirssi_track_replies (default on), twirssi_use_reply_aliases + (default off).</li> + <li>Fixed a bug that would cause zombies on Gentoo (and other linux + distros) to accumulate over time</li> + <li>Updated to show new url (http://twirssi.com).</li> + <li>View it <a href="twirssi-1.6.html">here</a>, download version 1.6 <a +href="twirssi-1.6.pl">here</a>.</li></ul></li> + +<li><strong>v1.5.1 - Noon 22-Dec-2008</strong><br /> + <ul> + <li>Minor bug fix - Stop claiming we failed to autologin, when we in fact did succeed.</li> + <li>View it <a href="twirssi-1.5.1.html">here</a>, download version 1.5.1 <a +href="twirssi-1.5.1.pl">here</a>.</li></ul></li> + +<li><strong>v1.5 - Noon 22-Dec-2008</strong><br /> + <ul> + <li>Refuse updates longer than 140 characters.</li> + <li>Do auto-login if /login is called without args.<li> + <li>Minor bug fix - Maintain a cache of the last 10 minutes of tweets, to avoid duplicates.</li> + <li>View it <a href="twirssi-1.5.html">here</a>, download version 1.5 <a href="twirssi-1.5.pl">here</a>.</li></ul></li> + +<li><strong>v1.4 - 13:00 21-Dec-2008</strong><br /> + <ul> + <li>New settings - twitter_usernames and twitter_passwords. Each stores + a list of users and passwords to log in as, comma separated.</li> + <li>View it <a href="twirssi-1.4.html">here</a>, download version 1.4 <a href="twirssi-1.4.pl">here</a>.</li></ul></li> +<li><strong>v1.3 - 15:00 17-Dec-2008</strong><br /> + <ul> + + <li>Minor bugfix - if the short_url_provider is cleared in runtime, stop calling makeashorterlink immediately.</li> + <li>New command - /twirssi_upgrade, with try to automatically get and install the latest version of twirssi (to +twirssi_location, defaults to .irssi/scripts/twirssi.pl)</li> + <li>View it <a href="twirssi-1.3.html">here</a>, download version 1.3 <a href="twirssi-1.3.pl">here</a>.</li></ul></li> +<li><strong>v1.2 - 11:00 17-Dec-2008</strong><br /> + <ul> + + <li>Bugfix - if twitter is a little bit slow, make sure we keep waiting + until the updates are all there.</li> + <li>Minor bugfix - don't claim we have 0 friends, we have friend, we're cool!</li> + <li>Detect and report if we're exceeding our rate limit on login</li> + <li>View it <a href="twirssi-1.2.html">here</a>, download version 1.2 <a href="twirssi-1.2.pl">here</a>.</li></ul></li> +<li><strong>v1.1 - 17:00 14-Dec-2008</strong><br /> + + <ul> + <li>Support for multiple accounts</li> + <li>Commands added: /tweet_as /dm_as /twitter_switch /twitter_logout</li> + <li>View it <a href="twirssi-1.1.html">here</a>, download version 1.1 <a href="twirssi-1.1.pl">here</a>.</li></ul></li> +<li><strong>v1.0 - Noon 11-Dec-2008</strong><br /> + + <ul> + <li>We now have a logo, thanks to @relsqui!</li> + <li>View it <a href="twirssi-1.0.html">here</a>, download version 1.0 <a href="twirssi-1.0.pl">here</a>.</li></ul></li> +<li><strong>v0.9 - 10:00 11-Dec-2008</strong><br /> + <ul> + <li>Show @replies from people who you are not following (note that with + the current Net::Twitter, there's a bug that breaks this a little. Patch + to Net::Twitter <a href="http://rt.cpan.org/Ticket/Display.html?id=41635">sent</a>.</li> + + <li>Add an option to hide your own tweets</li> + <li>Tab-complete will remember @nicks of people you tweeted at, heard of in other tweets</li> + <li>Add /twirssi_version command</li> + <li>View it <a href="twirssi-0.9.html">here</a>, download version 0.9 <a href="twirssi-0.9.pl">here</a>.</li></ul></li> +<li><strong>v0.8 - 18:00 10-Dec-2008</strong><br /> + + <ul> + <li>Optionally, when someone you're following is @replying to someone + you're not, show what prompted the reply (see show_reply_context)</li> + <li>Tab-complete will now prepend a '@' only when completing a /tweet, not a /dm</li> + <li>Following someone will automatically add them to your tab complete list</li> + <li>View it <a href="twirssi-0.8.html">here</a>, download version 0.8 <a href="twirssi-0.8.pl">here</a>.</li></ul></li> + +<li><strong>v0.7 - 14:00 06-Dec-2008</strong><br /> + <ul> + <li>Automatically make short urls (see short_url_provider)</li> + <li>View it <a href="twirssi-0.7.html">here</a>, download version 0.7 <a href="twirssi-0.7.pl">here</a>.</li></ul></li> +<li><strong>v0.6 - 13:00 06-Dec-2008</strong><br /> + <ul> + + <li>Add tab-completions for /tweet and /dm</li> + <li>View it <a href="twirssi-0.6.html">here</a>, download version 0.6 <a href="twirssi-0.6.pl">here</a>.</li></ul></li> +<li><strong>v0.5 - Noon 05-Dec-2008</strong><br /> + <ul> + <li>Add a /dm command to simplify sending of direct messages</li> + + <li>Add /twitter_friend and /twitter_unfriend</li> + <li>View it <a href="twirssi-0.5.html">here</a>, download version 0.5 <a href="twirssi-0.5.pl">here</a>.</li></ul></li> +<li><strong>v0.4 - 11:00 04-Dec-2008 (PST)</strong><br /> + <ul> + <li>Check for updates in the background, avoid hanging irssi if twitter is slow</li> + + <li>Check that posted tweets actually post</li> + <li>Check that login information was valid</li> + <li>Change level of printed messages from MSG to PUBLIC</li> + <li>View it <a href="twirssi-0.4.html">here</a>, download version 0.4 <a href="twirssi-0.4.pl">here</a>.</li></ul></li> +<li><strong>v0.3 - 19:00 02-Dec-2008 (PST)</strong><br /> + + <ul><li>Add Twitter API ID</li> + <li>Add option (/set tweet_to_away on) to set bitlbee away message to + non-@reply tweets.</li> + <li>View it <a href="twirssi-0.3.html">here</a>, download version 0.3 <a href="twirssi-0.3.pl">here</a>.</li></ul></li> +<li><strong>v0.2 - 08:00 02-Dec-2008 (PST)</strong><br /> + <ul><li>Added colors as needed</li> + + <li>Polling adjusted to always show updates since the last poll (and not hardcoded 5 minutes)</li> + <li>View it <a href="twirssi-0.2.html">here</a>, download version 0.2 <a href="twirssi-0.2.pl">here</a>.</li></ul></li> +</li> +<li><strong>v0.1 - Midnight 02-Dec-2008 (PST)</strong><br /> + <ul><li>Initial version, polling, tweeting, accepting DMs.</li> + <li>View it <a href="twirssi-0.1.html">here</a>, download version 0.1 <a href="twirssi-0.1.pl">here</a>.</li></ul></li> + +</li> +</ul> + diff --git a/html/index.php b/html/index.php new file mode 100644 index 0000000..f1c5fb1 --- /dev/null +++ b/html/index.php @@ -0,0 +1,133 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<head> + <title>Twirssi: a twitter script for irssi</title> + <style type="text/css" media="all"> + + code { + font-size: medium; + } + + body { + font: 0.8em arial, helvetica, sans-serif; + } + + #header ul { + list-style: none; + padding: 0; + margin: 0; + } + + #header li { + float: left; + border: 1px solid white; + margin: 0; + font-weight: bold; + font-size: larger; + border-left-width: 0; + } + + #header a { + text-decoration: none; + display: block; + background: #70a0f0; + padding: 0.24em 1em; + color: white; + width: 8em; + text-align: center; + } + + #header a:visited { + color: white; + } + + #header a:hover { + background: #3c68e5; + } + + #header #selected { + } + + #header #selected a { + position: relative; + background: white; + color: black; + } + + #content { + clear: both; + padding: 0.5em 1em; + + } + + h1 { + margin: 0; + padding: 0 0 1em 0; + } + + </style> + +</head> + +<body bgcolor="#80a0ff"> + + + +<p id="title" height="150"> + <a href="index.php"><img src="twirssibird.png" alt="Twirssi logo" style="float:left;margin-right:5px" border="0"/></a> + <font size="6" color="white"><b>Twirssi</b></font> + <font size="5"><div style="text-indent:1em;color:#3c68e5">a twitter script for irssi</div></font> +</p> + +<div id="header"> + <ul> + <?php + $about = $installing = $using = $history = ""; + if (isset($_GET['installing'])) { + $installing = "id=\"selected\""; + $content = "installing.html"; + } elseif (isset($_GET['using'])) { + $using = "id=\"selected\""; + $content = "using.html"; + } elseif (isset($_GET['history'])) { + $history = "id=\"selected\""; + $content = "history.html"; + } elseif (isset($_GET['tweets'])) { + $tweets = "id=\"selected\""; + $content = "tweets.html"; + } elseif (isset($_GET['merch'])) { + $content = "merch.html"; + } else { + $about = "id=\"selected\""; + $content = "about.html"; + } + ?> + <li <?=$about?> style="border-left-width: 1px"><a href="index.php">About</a></li> + <li <?=$installing?>><a href="?installing">Installing</a></li> + <li <?=$using?>><a href="?using">Using</a></li> + <li <?=$history?>><a href="?history">Version History</a></li> + <li <?=$tweets?>><a href="?tweets">Recent Tweets</a></li> + </ul> +</div> + + +<div id="content" style="background:white"> + <p> + <?=file_get_contents($content)?> + </p> +</div> + +<script type="text/javascript"> +var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); +document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); +</script> +<script type="text/javascript"> +try { + var pageTracker = _gat._getTracker("UA-190820-2"); + pageTracker._trackPageview(); +} catch(err) {}</script> +</body> +</html> + diff --git a/html/installing.html b/html/installing.html new file mode 100644 index 0000000..c09487d --- /dev/null +++ b/html/installing.html @@ -0,0 +1,25 @@ +<h3>In a terminal:</h3> +<ul> + <li>Install a current version of <a + href="http://search.cpan.org/perldoc?Net::Twitter">Net::Twitter</a>. + Versions earlier than 1.17 are not supported. If you are running 1.17, + upgrade or apply this <a href="net-twitter.patch">patch</a>. If you + don't have root access, you can still install the modules using <a + href="http://sial.org/howto/perl/life-with-cpan/non-root">this guide</a>.<li> + <li>Create a directory for irssi scripts, if it doesn't already exist: + <code>mkdir ~/.irssi/scripts</code></li> + <li>Change to that directory: <code>cd ~/.irssi/scripts</code></li> + <li>Remove any old version of the script: <code>rm twirssi.pl</code></li> + <li>Download the latest version: <code>wget http://twirssi.com/twirssi.pl</code></li> + <li>If you want it to automatically load with irssi, create an autorun dir: + <code>mkdir autorun</code></li> + <li>And create a symlink in it: <code>ln -s ../twirssi.pl autorun</code></li> +</ul> + +<h3>In irssi:</h3> +<ul> + <li>If you don't already have a twitter window, create a new window: + <code>/win new hidden</code></li> + <li>Name the new window: <code>/win name twitter</code></li> +</ul> + diff --git a/html/tweets.html b/html/tweets.html new file mode 100644 index 0000000..80d35aa --- /dev/null +++ b/html/tweets.html @@ -0,0 +1,4 @@ +<h2>Recent Tweets from <a href="http://twitter.com/twirssi">@twirssi</a></h2> +<ul id="twitter_update_list"></ul> +<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script> +<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/twirssi.json?callback=twitterCallback2&count=20"></script> diff --git a/html/using.html b/html/using.html new file mode 100644 index 0000000..c2a2928 --- /dev/null +++ b/html/using.html @@ -0,0 +1,125 @@ +<h3>Getting Started</h3> +<ul> + <li>Load the script in irssi: <code>/script load twirssi.pl</code></li> + <li>Log in to twitter: <code>/twitter_login username password</code></li> + <li>Post updates: <code>/tweet I got twirssi working!</code></li> + <li>Every 5 minutes, new updates from twitter will be posted to the named + window. To manually poll, you can always type <code>/twitter_updates</code>, though if + you do it too often, twitter will block your access for a while</li> +</ul> + +<h3>Posting Commands</h3> +<ul> + <li><code>/tweet <status></code> - Post a status update</li> + <li><code>/tweet_as <account> <status></code> - Post a status + update as an alternate account</li> + <li><code>/dm <username> <message></code> - Send a direct message to username</li> + <li><code>/dm_as <account> <username> <message></code> - + Send a direct message to username from the specified account</li> + <li><code>/twitter_reply <username>:<num></code> - Reply to a + particular tweet. Only 100 are remembered for each user, and this can be + completely disabled by changing the twirssi_track_replies variable.</li> + <li><code>/twitter_reply_as <account> <username>:<num></code> + - Same as /twitter_reply but allowing specifying an account to reply from.</li> + <li><code>/reply <username>:<num></code> - Same as + /twitter_reply, but only if the twirssi_use_reply_aliases is set to true + (off by default).</li> + <li><code>/reply_as <account> <username>:<num></code> - + Same as /twitter_reply_as, but only if the twirssi_use_reply_aliases is + set to true (off by default).</li> + <li><code>/retweet <username>:<num> [comment]</code> - Retweet + someone else, with an optional comment.</li> + <li><code>/retweet_as <account> <username>:<num> + [comment]</code> - Retweet someone else, using an alternate account, with + an optional comment.</li> +</ul> +<h3>Other Commands</h3> +<ul> + <li><code>/twitter_follow <username></code> - Start following username</li> + <li><code>/twitter_list_subscriptions</code> - List all the existing search + subscriptions for all accounts.</li> + <li><code>/twitter_login <username> <password></code> - Log in to twitter</li> + <li><code>/twitter_logout [<username>]</code> - Log out the current account, or the named account</li> + <li><code>/twitter_switch <username></code> - Start using the named account as the default</li> + + <li><code>/twitter_unfollow <username></code> - Stop following username</li> + <li><code>/twitter_updates</code> - Poll for updates manually</li> + <li><code>/twitter_subscribe <keyword></code> - Add a search + subscription for the current account.</li> + <li><code>/twitter_unsubscribe <keyword></code> - Remove an existing search + subscription from the current account.</li> + <li><code>/twitter_device_updates <none|im|sms></code> - Set delivery + device. Note that IM delivery is currently disabled by Twitter, and there + are no timeline when it might be restored.</li> + <li><code>/twirssi_version</code> - Report the current version number</li> + + <li><code>/twirssi_upgrade</code> - Check for a new version of twirssi, and + download it if it's there</li> +</ul> + +<h3>Settings</h3> +<ul> + <li><code>bitlbee_server</code> - What is the server tag for bitlbee (used for away messages)</li> + <li><code>short_url_provider</code> - What service to use to shorten urls - pick from + <a href="http://search.cpan.org/~davecross/WWW-Shorten-2.01/lib/WWW/Shorten.pm#SYNOPSIS" + >WWW::Shorten</a></li> + <li><code>short_url_args</code> - Some of the WWW::Shorten modules require + additional arguments, such as a username or API key. Enter those here if + needed, comma separated.</li> + <li><code>twirssi_always_shorten</code> - When false (the default), URLs will + only be shortened if the tweet would be too long. When true, URLs will + always be shortened</li> + <li><code>show_own_tweets</code> - Should our own tweets be displayed? Defaults to on.</li> + <li><code>show_reply_context</code> - When set to on, and someone you follow is replying + to someone you are not, the tweet that generated the reply will be pulled and + shown. Defaults to off.</li> + <li><code>tweet_to_away</code> - Set to on to post non-@reply updates as your away message</li> + <li><code>tweet_window_input</code> - Enable tweeting directly by writing to + the twitter window. Off by default</li> + <li><code>twirssi_retweet_format</code> - The format to use when retweeting. + Default value is "RT $n: "$t" ${-- $c$}". $n is the nick that's being + retweeted; $t is the text of the original tweet; $c is the text of the + optional comment attached; ${ and $} mark the seciton that should be + omitted if no comment was provided. + + <li><code>twirssi_hilights</code> - Should messages containing your @nick be + considered IRC hilights. (default on)</li> + <li><code>twirssi_location</code> - Location of the twirssi.pl script, used + by <code>/twirssi_upgrade</code></li> + <li><code>twirssi_nick_color</code> - If set, @nicks will be shown in the + color set. (default: %B). Note that the theme variables (twirssi_tweet, + twirssi_search, twirssi_reply, twirssi_dm) should be updated as + well.</li> + <li><code>twirssi_notify_timeouts</code> - If set, twirssi will emite a + message when twitter is being so slow that it fails to retrieve + updates. (default on)</li> + <li><code>twirssi_replies_autonick</code> - On by default. If on, /reply + will make sure the reply begins with @nick. If off, you can reply to + someone, but not have their name on the reply</li> + <li><code>twirssi_replies_store</code> - Location where the /reply map is to be stored.</li> + <li><code>twirssi_topic_color</code> - If set, #topics will be shown in the + color set. (default: %r)</li> + <li><code>twirssi_track_replies</code> - Should twirssi keep track of + individual IDs of incoming twitters? If enabled (which is the default) + incoming tweets will show a :num appended to them. This is requried for + /reply and /twitter_reply functionallity.</li> + <li><code>twirssi_use_reply_aliases</code> - Enable /reply and /reply_as as + aliases to /twitter_reply and /twitter_reply_as. Requires a reload of + twirssi to take effect. (default off)</li> + <li><code>twirssi_upgrade_beta</code> - Default off. If on, /twirssi_upgrade + will try to grab the most recent version from github, instead of the latest + released version. Note that beta versions might have more bugs than the + released version.</li> + + <li><code>twitter_passwords</code> - A comma separated list of passwords to auto-login</li> + <li><code>twitter_poll_interval</code> - How often should new messages be + requested from twitter (in seconds). Default is every 5 minutes. Keep + in mind that twitter will rate limit your user (or IP) if you hit them + too often. Hardcoded minimum is one minute.</li> + <li><code>twitter_friends_poll</code> - How often should the updated friends + list be retrieved from the server. By default, only once every 10 + minutes</li> + <li><code>twitter_usernames</code> - A comma separated list of usernames to auto-login. Note that the last one will be the default account used after startup.</li> + <li><code>twitter_window</code> - Which irssi window should twitter updates be sent to</li> +</ul> + -- 2.39.5