3,040 views

A Blog Into a Social Network For Free Using Wordpress Part 1

Posted on 19 November 2007 by crkian

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

They are all the rage at the minute and can be useful for traffic as well as networking, I have previously picked out just 50 of them before. I also have a couple myself Blogsrecord is a social blog directory, Stemble is a stumble and review exchange site and gottoread is a site I just set up that will be used for creating traffic to your blog through interaction and becoming popular. I used joomla and dolphin to create my sites but did you know you can do it for free using just your blog with a few plugins and tweaks.

Over the next few days I will show you how you can change wordpress into a social network for free, using a bit of tweaking and a few plugins. Its going to be a quick series as once I started to write this post I realised it was going to be a long one so I have split it up.

Why a Social Network

They are widely used and if yours takes of it will just draw the traffic in, blogsrecord has nearly 350 members and over 400 blogs listed, but there are downsides to having one.

Before we get started on turning your blog into one you must know some reasons why you wouldn’t want one.

* Long Hours - Promoting, bug finding, answering emails
* Promotion lasts for ever - You can t let up on promotion even with hundreds of members, until you get into the thousands its promotion everyday and can get repetitive.
* Can Make You Depressed - Blogsrecord was succesful to start with and still is but when you go from 30 signups a week to just 1 or 2 it can make you depressed and make you want to quit.
* It gets tiresome answering the same questions over and over
* It may not be a success - Be prepared to do a lot of work for no reward
* Its not a money maker to start with
* You will have members who spam all the time
* Be prepared to spend all your time on the site
* You most likely won’t be an overnight success
* Numerous other reasons but there can be some rewards

Benefits

* See some fantastic blogs
* Meet lots of fantastic people
* Learning how to use new software
* Learning how to track bugs and eradicate them
* Your online social life takes of
* Can earn you money (be warned Im about 400 pounds down with blogsrecord)

Why Not Use Software Already Available

You could start afresh with a new domain name, new setup, fresh software, paid for plugins, new template. But why go through it all if you have a blog drawing in traffic, has a template ready, a domain name, software already there besides the plugins that you will need to add.

You may want to add some interactive features to your blog something to make you stand out, a forum could do that or a contact form is an example of a little interactive feature for your blog.

Getting Started

If you have got this far you either not fallen asleep or you want to spruce up your blog with some interactive features. The main stay of a social network to me seems to be user images, why?, for a start they show more than just a text name like you get in a normal blog, for example the picture of someone who writes a post is a lot better than simply ‘admin wrote’ there are numerous plugins out there for adding images to commentators like gravatars and sexy comments but for a social blog you want members to add an image to their profile. Anyone can have a profile on wordpress by signing upto your blog, readers automatically get a basic profile page, but you need to alter what the reader can do with your site and the basic setup of wordpress doesn’t allow for a lot of changing from the basic ‘author,subscriber e.t.c’ format. We will cover user roles a bit more later on.

Adding Images

To have the member add an image from within their profile we need to add a plugin that will allow members to upload an image to their profile rather than using 3rd party tools to intergrate avatars from other places. Not everyone is a member of gravatars or mybloglog, so we need a way for a member to have a choice of what avatar they want to use, what better way than to allow them to uplad their own and use that.

For this we will use Dans Avatar Thingy

As normal use the following to upload and activate the plugin, regualar users will have seen this before but for those who are new here I will add it so you can see how to add a plugin if you have never done this before. Later in the post you can just come back to this part so you can use it again if you forget what to do.

Simply download the plugin and unzip it to a folder on your desktop. Ive created a folder called ‘MattNutts’ everything I will use for this site will be kept in that folder so its easy to get to and I know where everything is.

For this you will need an ftp transfer programme so you can upload the unzipped files to your webserver I use CuteFTP but there is plenty of others out there.

Simple steps to add the plugin and get it working.

1 Click on the link to download the file then extract the files to the folder you have created for the files.To create a folder right click the desktop and select new and then folder.

2 Start up your ftp software and enter the details for your server, these will most likely be Username, Host, Password and Site Name.

3 You need to upload the files to /wp-content/plugins if you have installed wordpress into a subfolder other than the Site Root (the first area your ftp will find) you will need to browse to it, it could be something like - wordpress/wp-content/plugins. The easiest way to tell if you are using a subfolder is to browse to your wordpress homepage for mine I just type in http://mattnutts.com yours could be the same but your site name or it could have extras after it like .com/wordpress or .com/myblog

4 When you see the folder open it so you are inside your plugins folder on your server then select the simple-forum folder and drag it over to the plugin folder, the upload should start and everything will transfer over.

You can then activate the plguin from the admin area on wordpress, to do this goto Plugins then choose Activate next to ‘Dan’s Avatar Thingy’

To get the avatar to display you have to edit your template file, not the easiest thing to do but if you follow what I put here you should have no problems, most templates have the same sort of layout and it should be easy to find the part you want to change.

You can alter what template files you want (index.php and comments.php in your template folder)…
To display the avatar add the command cmd_show_avatar() anywhere within the post or comment loops…
<?php if(function_exists(’cmd_show_avatar’)){ cmd_show_avatar(); } ?>
On this site, for example, the command is in the same <div> as the Post title or comment author information.

For example to alter the main index page you would do the following goto ‘Presentation’ ‘Theme Editor’ and then choose Main Index Template (index.php:

Main Index Template (index.php)

<?php
get_header();
?><?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<h3 class=”storytitle”><a href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?></a><?php if(function_exists(’cmd_show_avatar’)){ cmd_show_avatar(); } ?></h3>
<div class=”meta”><?php _e(”Filed under:”); ?> <?php the_category(’,’) ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__(’Edit This’)); ?></div>

You can alter this for example to have the avatar displayed over the top of the post it goes after <?php while (have_posts()) : the_post(); ?> but you can have a try at doing it in different places to suit your needs.

You can do this for your comments, single post e.t.c as well, the ‘if (function_exists(’ part will only display an avatar if there is one available.

To add an avatar all a member has to do is go to their profile and choose the ‘Your Avatar’ tab to upload or change their avatar. By default the avatar sizes are altered to 40×40 pixels which I find to be about right but if you need a different size you need to alter the cmdavatar.php file you uploaded and change the values:

$def_width = 40; // Default avatar width
$def_height = 40; // Default avatar height

change them then re upload the file as you did before, max upload size is set as 50kb to change this alter the following in the same file

$max_upload_size = 51200; // Max file size in bytes

Change 51200 to the anything you want in bytes (1024 bytes = 1 kbyte and 1024 kbytes = 1 Mbyte)

You can alter the position using cms by adding a cmd-avatar class to your style sheet like the following

.cmd-avatar
{
clear: none;
border-right: #687F92 1px solid;
border-top: #687F92 1px solid;
display: inline;
float: right;
margin: 5px;
border-left: #687F92 1px solid;
border-bottom: #687F92 1px solid;
}

I have added this to my stylesheet through ‘Presentation’ ‘Theme Editor’ in the admin area on my wordpress. It shows the avatar to the right of the title as you can see in this post.

Thats it your members now have their own avatar of their own choosing that can be used throughout your blog and in multiple ways which we will cover in later parts.

So come back soon, most likely in a couple of hours for further information on turning your wordpress blog into a social network.

The good thing is you can chop and choose what parts you want from this series, you may just want the avatars, or to have a private messaging. You don’t have to do everything, you can just use the parts you want to add an extra feel to your blog.

Subjects to follow in this series over the next few days include;

* Adding Private Messaging
* Hiding the normal login page
* An Extra Sidebar for Members
* Members Being Able To Add Friends
* Having better user roles
* Members publishing posts from the front end without the need for entering the admin area
* Plus lots, lots more

To get try the avatar uploading just register to this blog and follow the instructions I gave before to add your own. Soon you will see the avatar in any comments you make or even in any posts you want to offer in the future.

[?]
Share This

Popularity: 7% [?]

If you enjoyed this post, make sure you subscribe to my RSS feed!

3 Comments For This Post

  1. smith Says:

    The social networking application marketplace was comparatively small in 2006, coming in at $46.8 million. By 2009, however, this market will grow to $428.3 million creating a new application segment and establishing social networking as a new communications instrument used for many purposes other than consumer socializing.

    Source: http://www.ceoworld.biz/?p=363

  2. frank vitetta Says:

    Hi Matt, I hope I am not spamming your site.
    I just wanted to let you know about a new super kick ass plug in we have developed for WP.

    As you know Wordpress 2.3 ( the latest version of the popular blogging platform ) now includes tagging support by default, without any plug in.

    WordFinder plug in has been build on this new functionality, it automatically generate keywords and tags for the page and for the meta data. Optionally on the “write and edit post” page, when bloggers click on tags, they get added to the category list.

    Not happy with Wordsfinder suggestions? You can add, remove, manipulate any keyword or tag. On the option page, bloggers would be able to limit the amount of tags retrieved by wordsfinder. Leaving them 100% in control.

    Download and test the freeware http://www.wordsfinder.com/wordpress.php yourself.

  3. claudius Says:

    Cool, nice post, this blog is great.keep the god job!
    Free Image Share !

2 Trackbacks For This Post

  1. A Blog Into a Social Network For Free Using Wordpress Part 2 » Matts Nutts SEO and Blogging Says:

    […] have your members adding their avatars now as we covered in the first part But what do we need now, every social network has some sort of communication between members […]

  2. Open Ideas Sharing » Blog Archive » Turn blog into social network Says:

    […] http://mattnutts.com/2007/11/19/a-blog-into-a-social-network-for-free-using-wordpress-part-1/ […]

Leave a Reply

$1 Per Day Advertising