Netspencerous

Netspencerous

Spencer Schoeben  //  15 year old living in Palo Alto, CA.

Sep 3 / 12:12pm

I was served by Jesus

Comments (1)

Aug 29 / 2:00pm

Umm... @square was invented for a reason

Comments (0)

Aug 23 / 1:27pm

Looks like @LeoLapporte fixed his twitter account. :p

Comments (0)

Aug 22 / 4:05pm

What a nice suprise... the Facebook Places Visualizer I made works on the iPad and iPhone too.

     
Click here to download:
What_a_nice_suprise..._the_Fac.zip (1042 KB)

Comments (0)

Aug 21 / 12:15am

The first version of Facebook Places visualizer thing I'm making

Comments (0)

Aug 15 / 11:53pm

YouTube Rentals?

Comments (0)

Aug 15 / 9:58am

Got a free cookie @CoupaCafe just for saying @davemcclure's name :)

Comments (0)

Aug 9 / 10:13pm

Whoa. This is an AWESOME @tumblr feature

I realize I just posted this from Posterous.... oh the irony.

Comments (0)

Aug 3 / 11:49pm

Teens in Tech on TechMeme!

Comments (1)

Aug 2 / 7:06pm

Modifying WordTwit to add "by @user"

Being able to tweet out from WordPress automatically is a pretty useful thing. Luckily, a handy little plugin called WordTwit does that for you pretty well.

However, it's missing the ability to attribute the author via their Twitter name in the tweet. So, I hacked up a little modification to make that work....

First thing: go into WordTwit settings and change the message to include [author]

Next step: download a plugin that lets users at their twitter usernames to their profile.

I used this plugin

Then: update your profile to add your twitter username

After that: the hacking beings. (don't worry, its not very hard!)

Go into the plugins directory and inside of the wordtwit folder you will find wordtwit.php.

Edit the wordtwit_get_message function

Adding 

/* MODIFICATIONS BY SPENCER SCHOEBEN */
$userdata = get_userdata($my_post->post_author);
$twitter = $userdata->twitter;
$display_name = $userdata->display_name;

if ($twitter) {
$twitter = trim($twitter);
if (strpos($twitter, "@") !== 0) {
$author = "@".$twitter;
} else {
$author = $twitter;
}
} else {
$author = $display_name;
}

$message = str_replace( '[author]', $author, $message );
/* END MODIFICATIONS */

Comments (0)