Author Archive

I’ve installed the plugin Facebook Connect and it works great. One thing I wanted, though, was a smaller connect button to put on the sidebar. So here are the hacks I made.

In the /wp-content/plugins/wp-facebookconnect directory edit fbconnect.php. Locate the function “fbc_display_login_button”. Copy the entire function and paste it beneath the original one, renaming it “fbc_display_login_button2″. Change the line…

$button = render_fbconnect_button();

…to…

$button = render_fbconnect_button2();

…and change…

echo <<<EOF <div $visibility id="fbc_login">
 <span><small>Connect with your Facebook Account</small></span>
 <br/> $button </div>
EOF;

…to… 

  echo <<<EOF <li id="fbc_login">$button</li> EOF;

…and save it.

Next edit common.php and locate the function render_fbconnect_button. Copy it and make a duplicate just beneath it named render_fbconnect_button2. Now make the following changes to the new function.

Change…

  return <<<EOF
 <div>
   <fb:login-button size="large" background="white" length="short" $onlogin_str>
   </fb:login-button>
 </div> EOF;

…to…

return <<<EOF
   <fb:login-button size="small" background="white" length="short"
 $onlogin_str v="2">Login/register with Facebook
   </fb:login-button> EOF;

…and save the file.

We’re still not finished.

If you don’t use widgets, then you simply have to add…

<?php fbc_display_login_button2(); ?>

…in the sidebar.php of your theme beneath the login (the login will look like…

<?php wp_loginout(); ?>

However if you use widgets, then it’ll be more difficult. What I did was edit wp-includes/default-widgets.php and located the class WP_Widget_Meta. I then added the…

<?php fbc_display_login_button2(); ?>

…just below the…

<?php wp_loginout(); ?>

Make sure you backup all the files your editing, both the original and the updated versions, because A. if you mess up you’ll need the original and B. once an update of WP or the plugin occurs, you’ll need to make the changes all over again.

I got the domain name http://BiographyJournal.comseveral years ago and set up a multi-use blog. I’d toyed with that setup using various scripts and settled on WPMU. I left it running a while and had a journal for a new dog we got so the previous owners could see how he was doing. But after about a year there were no active users other than spammers, who packed the thing full of annoying links. I shut it down and focused on other things.

But the idea remained intriguing.

Most blogs are simply people giving their opinions about current events. I saw the blogging platform as a way to journal ones life. The last week I cam across a blog written by an amazing American girl who’s adopted 14 kids in Uganda and lives there raising them. I tried to read her blog from the beginnign to try to get the full scope of the story, but she uses BlogSpot which does not lend itself to reading blogs in that way. It was pretty difficult to keep up with where I was.

That’s when I decided to re-open http://BiographyJournal.com. It may sit empty again, but I want to at least make the effort to offer a platform geared more to journaling than just blogging. I’ve already added dozens of themes and lots of plugins, many that I’ve tweaked (and unfortunately lost some of the work when upgrading a plugin)

Check it out and see what you think and offer suggestion that may make the focus (journaling) work better.

6. Template Shelf. Allows quick access to blog templates

7. Xomment. A snazzy Ajax commenting plugin.

8. HMPassphrase. Nice, simple spam prevention.

9. Access Count. Tally up the accessed count. Additionally, you can sort entries by their accessed count.

10. OnThisDay.  Display the info about the entries which were posted on this day in previous years.

1. Pagination. Paginates your home page like WordPress.

2. Simply Threaded. Allow threaded comments.

3. YUI Editor for Movable Type. Very useful, flexible and stabel rich text editor.

4. User Profiles. Allow registered members to create profiles. Inch your blog toward social networking.

5. MT Forum. Turn your comments into a full message board.

To continue…

6. WP-CodeBox. This is one I wish I’d found earlier. It allows a nice display of code for blogs that offer programming tips (like this one). I added an updated a few entries to use the code, and it’s really nice.

7.  BuddyPress. This one is not for everyone, but it has a lot of features. In essence it turns your blog into a solcial networking site. The basic look is kinda ugly, so a redesign would be needed, but if you wanted to offer some of the social networking features of Facebook or MySpace to your blog, this will allow you.

8. Google XML Sitemaps. Very important for search engine optimization.  It should reduce the bandwidth required by search engines to spider your site, which is always a plus.

9. Automatic Upgrade. Something that will be really handy. The documentation claims that it…

  1. Backs up the files and makes available a link to download it.
  2. Backs up the database and makes available a link to download it.
  3. Downloads the latest files from http://wordpress.org/latest.zip and unzips it.
  4. Puts the site in maintenance mode.
  5. De-activates all active plugins and remembers it.
  6. Upgrades wordpress files.
  7. Gives you a link that will open in a new window to upgrade installation.
  8. Re-activates the plugins.

10. GD-Star Ratings. Not only will this help you know which posts people like, it just looks snazzy.

About me

I've been developing web sites for over 12 years. I started with HTML, moved on to Perl and now do mostly PHP with a lot of MySQL and Javascript as well.

The purpose of this blog is to write about many of the simpler scripting solutions bloggers are either unaware of or unable to implement. Hopefully I'll have something you can use

Danny Carlton

Advertising
Advertising

Switch to our mobile site