Making Your Own URL Shortening Service - Presentation Transcript
It’s a Small URL
After All
Bob Hazlett - @OneHalfAmazing
Daniel Pritchett - @DPritchett
A World of...
Laughter (funny how easy this is)
Tears (avoiding pitfalls)
Hopes (that this turns out awesome)
Fear (that you’ll mess something up)
Something to share (bragging to your buddies)
Why do something like
this anyway?
Branding
Stability & Control
More customization
Built-in Stats
Plugins
Darn Cool
Supplies Needed
Domain
Host
Access to your files (FTP)
Text Editor
Download Yourls package
Picking a domain
Get your host on
Hosted
PHP 4.3 and MySQL 4.1 with “mod_rewrite” enabled
Mainstream packages from 1and1, DreamHost or GoDaddy will do
DIY Server
LAMP on Linux
WAMP on Windows
MAMP on Mac
Download Yourls
Yourls 1. available at yourls.org
4
Private or Public
Customize your links
Bookmarklet
Integrated Stats
Wordpress Plugin
Open Source
Set up your database
Configure one file
Yourls.zip > Includes > Config-sample.php
Fill in a little info
> database name setup earlier
> http://mysql.domain.com
Just a bit more
> http://domain.com
> set up users
Save file as config.php
FTP files to server
Yourls unzipped and configured
package > FTP client > host
FTP clients
CyberDuck or Transmit (Mac)
FireFTP (firefox add-on)
WinSCP (Windows)
Warning! Danger!
.htaccess file
If installing on same domain
as WordPress
Must be in different directory
Finally Installed
Start making babies
Expand your world
I got stats
WordPress Plugin to
Twitter
Generate short URLs for each new post
or page
Auto t weet on your behalf as you
publish new content
http://bhaze.com/5
Setting up on Tweetie 2
http://DOMAIN.com/yourls-api.php?
username=MyUSERNAME&password=MYPASSWORD&action=shorturl
&format=simple&url=%@
Hey, Cool Guy
Other Tools
Browser Bookmarklet
Generates short URL from page you’re
currently viewing
Simple or Advanced, just drag to
browser toolbar
WordPress Sidebar Widget
Offer shortening ser vice to your users
Questions
Daniel Pritchett
SharingAtWork.com
Bob Hazlett
OneHalfAmazing.com
Other Resources
Yourls.org
Screener.com/nTs
Domai.nr and MakeWords.com
Lifehacker article - bhaze.com/3
It's a Small URL After All takes you through the pr more
It's a Small URL After All takes you through the process of using Yourls to create your own personalized URL shortening service similar to tinyurl.com and bit.ly. This deck was presented at BarCamp Memphis by Bob Hazlett of www.onehalfamazing.com and Daniel Pritchett of www.sharingatwork.com. less
0 comments
Post a comment