Embed Ads Into Your Twitter Tweets With Adjix

Uh, oh.

Those were the words that came out of my mouth this morning when I checked my email on my iPhone. For those registered to Adjix you may have received an email from the company announcing their new advertising format in which Twitter users will be able to embed an ad at the end of their Twitter Tweets in order to monetize off of their number of followers.

Adjix’s current ad program is based on link shrinking and including a text link on the top portion of the site as long as you are logged into your account on Adjix when shortening your link.

What’s actually useful about Adjix is that they offer several features such as the ability to track the number of clicks your unique shortened link receives. Not only are stats recorded for links with ads but there is an option to shrink a link without an ad, and yes you will still be able to track clicks for that URL.

Do people actually use the service for click tracking and not to serve ads?
Yes. More importantly one of the Twitter elite, @guykawasaki uses the Adjix service very frequently(to shrink and record stats) and if you visit his Twitter stream you will see that most, if not all of his links begin with http://adjix.com.

Adjix has a video demo of their new feature as well as details on their blog outlining Advertiser Info, Twitter User Info and how to install their bookmarklet in order to start embedding ads into your Tweets.

Luckily for me the only person I follow that uses Adjix is @guykawasaki, but the thought of monetizing on Tweets to a large list of followers may cause several to sign up and start using Adjix’s new ad embed. If so, we very well may see more Tweets as the mock put out by Adjix.

Running PHP 5 for WordPress with 1&1 Hosting

If you are on a shared hosting plan with 1&1 it’s relatively easy to create a new MySQL Database for your WordPress installation.

Creating Your New Database
Just sign into your account and navigate to Web Space & Access and then to MySQL Administration. Click on “New Database” and you will be prompted to name your new database along with the option of choosing between MySQL 4.0 and MySQL 5.0 for your new database. WordPress Requirements state that WordPress need PHP 4.3 or higher to function properly although a few plugins require that you use PHP 5 to function. Choose PHP 5 and your database will begin setup.

Since we created a new database and chose the option of MySQL your database is using PHP 5 right? Unfortunately that’s not the case.

Checking Your PHP Version by Creating a phpinfo.php File
1&1 will have your new database running PHP 4.4.9. Easiest way to check what version of PHP you are running is to create a phpinfo.php file and insert the following.

<?php
phpinfo();
?>

Upload this file to your directory and open phpinfo.php in your web browser.

The information at the top of this window will display the version of PHP that you are running.

Forcing 1&1 to Use PHP 5
It only takes 2 lines added to your .htaccess to force 1&1 to use a version of PHP 5. Add the following to the first 2 lines in your .htaccess file.

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

Once you make the edits to your .htaccess upload it to your directory and once again open phpinfo.php in your web browser. You should now be able to see that your database is using PHP 5

Error 500 When Updating to WordPress 2.7

I held off on updating several WordPress installs to due to the fear of a few plugins not being compatible.  I updated one installation today only to have my stomach hit the floor when I received an “Error 500 Internal Server Error” message once the update was complete.

Luckily the site was still functional but I could not access the admin section.  A quick search and I was able to find an article by Ajit Gaddam surprisingly enough called Solution to Error 500 after upgrading to WordPress 2.7.


Ajit’s fix:

This seems to be a problem for WordPress blogs which are hosted by 1&1
The solution to the Error 500 – Internal Server error
1. Create a file called “php.ini” in the /wp-admin/ directory of your blog
2. In the file add the text “memory = 20MB” without the quotes

What is odd is that I have installed a fresh install of WordPress 2.7 on a 1&1 server with no issues, but experienced this error only when upgrading to WordPress 2.7.

Displaying Author Pic and Bio in Your Wordpress Post the Non-Gravatar Way

Also see Enabling Author Pic and Bio for WordPress Single Posts for displaying an author bio box on a post by post basis.

A lot of sites/blogs out there have guest posts and/or multiple authors who contribute content on a regular basis. Now, there is nothing new with displaying the author name of a post, that snippet of code is just

<?php the_author(); ?>

and will simply display the authors name. We want to get a little more stylish and display a bio with an image, usually you can find a small bio of the article author before or after the post you are reading. 2 quick random examples can be seen below:

Steven Snell(Vandelay Design and DesignM.ag) is a contributer to the popular site PSDTuts, they do an author pic/bio before the article.

From Steven’s 20 Photoshop Painted Inspiration and Brush Resources

Author Bio - PSDTuts

Adelle Charles runs FuelYourCreativity.com in which she displays an author pic/bio after the article.

From Adelle’s Micromanaging a Creative

Author Bio - PSDTuts

Both of these examples display a little information about the author along with a link to the author’s site. Who doesn’t love some link love?!

Both are also are calling in the author’s Gravatar (Globally Recognized Avatar) that is linked to the author’s email*.

*For those who don’t know you can import an author’s image using the gravatar code:

<?php echo get_avatar( get_the_author_email(), '80' ); ?>

In which the author’s email will be checked with Gravatar, if the person has an account the image linked to their email will be displayed, exact same concept of pulling in avatars in the comments section of your favorite site.

But what happens if the author doesn’t have a Gravatar account?

Hmm…interesting.

Ok first thing first, make sure your author is listed as a “User” for your site. If they are not listed, create the account:

Go to your WordPress dashboard>>Users>>Authors>>Profile

Make sure the section for the Bio Info is filled out and while your at it make sure the First Name, Last Name and Nickname are filled out as well…they will come in handy later on.

Now open your Single Post php file, usually single.php. This page generates the layout of your article and is the file you need to edit in order to display some author info. For my example I added the author bio after the article, right before the share options and comments.

1
2
3
<div class="authbio">
<?php the_author_description(); ?>
</div>

Yikes, ugly but it works!

Let’s add some quick CSS to make it look somewhat respectable, you can always style away later!

1
2
3
4
5
6
7
8
9
10
.authbio{
color: #666;
font-weight: normal;
background: #fff;
border: 1px solid #ccc;
width: 420px;
height:60px;
padding: 8px;
margin-bottom:5px;
}

Okay, so now we are pulling in the author’s bio…what about the image?

Remember all the author fields you were suppose to fill out? First Name, Last Name, Nickname…if you didn’t do it, go do it now!

Let’s add these lines before your the_author_description in your single.php file.

1
<img src="<?php bloginfo('template_url'); ?>/images/<?php the_author_firstname(); ?>.jpg" alt="" class="alignleft"/>

Your author image and bio should now look like this:

1
2
3
4
<div class="authbio">
<img src="<?php bloginfo('template_url'); ?>/images/<?php the_author_firstname(); ?>.jpg" alt="" class="alignleft"/>
<?php the_author_description(); ?>
</div>

What the above means:

The above img src is looking for a file in your “Your Theme Stylesheet Directory/images” folder aka www.yoursite.com/wp-content/themes/ThemeName/images/.

php the_author_firstname is the first name used in the author fields under dashboard>>users>>profile

Please note that this is just returning what was entered into the First Name field and not the complete author name. Finally the extension “.jpg” is appended to the name.

Now you just need to upload a photo to your: www.yoursite.com/wp-content/themes/ThemeName/images/ and name the file exactly the same name you placed in the First Name Field in the author profile.

Throw in a little CSS to clear up the spacing

1
2
3
4
5
6
7
8
img.alignleft {
    float:left;
    background-color: #fff;
    border:1px solid #ccc;
    padding: 4px;
    margin: 0 7px 2px 0;
    display: inline;
}

And we are looking pretty much done!

Things to remember:

You can put links in your bio, no need to forget to link back to your site.

The above technique is looking for an image labeled the same as the “First Name” of the author. Also try the_author_lastname(); or the_author_nickname();

The technique above will provide a static solution for an author who does not have a Gravatar account. What is great about Gravatar is that the image will follow you wherever go as it’s linked to your email address. If you change your Gravatar image I believe it will be reflected everywhere you have left a comment, written a guest post etc. Using a Gravatar helps your personal branding to be consistent throughout the web.

Hope this is helpful, as I used it as a solution for an guest author who has an offline presence.

Page 3 of 6« First...2345...Last »

Contact

Questions, inquiries or just feel like getting in touch, feel free to do so: