WordPress Tip: Function is_user_logged_in
A PHP function is available in WordPress called is_user_logged_in that is very useful if you want to know if a user is logged in. Why on earth would you want to know this? Have you ever thought about adding custom content to your blog that only you can see or only logged in (registered users) can see?
If so this function is for you. I recently updated my blog’s theme and realized that it has some space that could be used for secondary navigation.
The area in red seemed to me like a great place for additional links.
This is where the function is_user_logged_in can help me out. In this case the area highlighted in red has its own div tag. It currently looks like this:
<div id=”nav-space”></div>
Inside the div tag I place the following 2 lines.
<?php if (is_user_logged_in()){ ?>
<?php } ?>
The 2 lines call the function is_user logged_in and evaluate the return value with my if statement. The second statement simply closes or ends the if. Do not worry if you do not understand. Let me just tell you what it does.
Suffice it to say that anything you put between the 2 lines will be seen by logged in users only. For this example I am going to insert a link.
<div id=”nav-space”>
<?php if (is_user_logged_in()){ ?>
<a href=”http://www.google.com”>Google</a>
<?php } ?>
</div>
In the example just above a link to Google will be placed in the red area above that can only be seen by a logged in user. In this case, me!
Now let’s put it in to practice. I have added 3 links to the red bar section. I now have access to facebook, friendfeed, and twitter right in my header section. I like this. I think I will add some additional links later.
Now remember they will only display if you are logged in. If you are like me you mainly use the same computers and stay logged in. As long as you are logged in you will see your links.

Do you hang out on your own blog alot? Would you like to use your own blog for a mini portal? Do you have free navigation space available?
This is great for me and adds functionality for my purposes but leaves the blog crisp and clean for visitors. Try this WordPress trick in your theme today.
Writing From Shower Thoughts

Do you ever have an idea for a blog post but then it spirals out of control and you end up with more ideas, less ideas, or nowhere at all?
I began this morning with a “shower thought.” I will define a shower thought as; the half asleep thoughts or fuzzy brainstorming that just seems to flow just after you wake up that sometimes occur while taking a shower.
Your brain and body still half asleep combine to form what seem like good ideas. Before I knew it I had an idea for a blog post.
Later when trying to write from concept (maybe nothing more than a title) you end up with a post, 3, or nothing writable at all. Some shower thoughts end up nowhere.
This morning I had a shower thought and had a title for what I thought could be a single blog post. In this case a rough outline revealed up to 3 possible posts not just 1.
I have heard others say they keep paper and pen with them at all times night or day to record a fleeting idea. Inspiration may strike like lightening at the strangest times.
When I write based upon a “shower thought” I usually start with a rough outline or notes. Then I just start writing the post and see how far it goes. You never know where it will end up.
I do not worry about where I start. I just write and see where the post takes me. I do not know if the outcome will be great or not I just go down the path to find out.
At the end of the road if the result is not post worthy or incomplete then you can always wait for the next shower thought.
Embed FriendFeed Real-Time on Your Blog
Did you know you could embed your Real-Time FriendFeed view on your blog? I didn’t but this has been available for some time. The following is my real-time FriendFeed view.
This will become a integrated part of my FriendFeed page.
Here’s how to do it. This is done by embedding an iFrame. I am still not sure an iFrame is functionality but it is cool.
To embed your Real-Time goto http://friendfeed.com/YourUsername/friends/realtime where your username is your username. Then Click the
button. Try it out.
5 Ways to Make 2009 The Year Of The Blog
History will decide the fate of 2009. Happy New Year! A new year means a new start and new opportunities. I am looking forward to a great year both personally and professionally.
Take advantage of the new year by updating your blog. Make a new years resolution to blog more often.
I tried blogging several times but never got the hang of it. 2008 was the year for me after trying 3 or 4 times at blogging.
You can make 2009 the year for you. Blogging can be time consuming. If you failed at blogging in 2008 it’s ok because it’s 2009. After failing at it several times I have realized several things the new blogger should think about. So here are 5 pointers for the “new blogger” or the “try again blogger.”
- Personal Look and Feel. – Your blog is yours and yours alone. Choose a theme, layout, and look that suits your taste. Change it as often you like. Do not listen to anyone telling you what it should look like. Do not listen to those that preach a consistent look. That really is not important. Look and Feel is personal and should be what you want. I totally recommend WordPress as a blogging platform. A multitude of themes are available. I just updated this blog to a theme called WP-Bats that I custom modified to suit me. Its suits me today. If one day it doesn’t then I will change. WordPress is great because most themes do not require modification they just work.
- Realistic Goals. Set realistic goals for your blog. Look most of have full-time jobs, families, activities, and many other things to take our time. If you want to blog its ok to be realistic. Set a goal to post once a month. If it works out then maybe twice a month. Pace yourself. The web is not going anywhere and your blog will probably still be there. If you want an audience just know things take time. Content is important but just do your best. It is your blog.
- No pressure. – Blog because you want to. Blog for any reason. Blog because you feel like it. Blog when you want to record something or broadcast something. If you fail at a goal it is ok. It really does not matter. Do not read, listen, or hear, the naysayers about how to blog or what to do. Do not feel pressured that there is a right way to blog. You blog in your own way.
- Fun. First and foremost have fun with it. You should enjoy what you are writing or posting about. Your enjoyment means the blog will probably get more attention, more content, and most all more time in your busy schedule. Second, audiences (readers) generally like to have fun also. Blogging is about enjoyment through words, pictures, audio, or video and it is a 2 way street. So if you are having fun the audience probably is too.
- No Rules Just You. I believe this more than anything else about blogging. Forget the rules, forget the blogging formulas, forget the rhetoric pushed out out by the large blogs telling everyone what to do. You see they are laughing all the way to the bank. They are making money by telling lots of eyeballs how, when, where, why, and what they should blog about. Write what you want when you want.
2009 can be the year of the blog. If at first you don’t succeed try, try again.
Hey Joe Blogger, Diversify!
You may have heard of Joe the plumber and Joe Sixpack. I want to speak directly to Joe Blogger. This post is for the average Joe or Jane Blogger. It pays to diversify.
There are plenty of life streaming venues around. FriendFeed and other lifestreaming services allow submission of your blogs RSS feed. When I blog post the post gets pushed via RSS to FriendFeed, Twitter, Facebook, and Social Median to name a few.
It pays in page views to diversify. I am also a member of Strands, Plaxo, and MyBlogLog. Making content available via full text RSS and submitting to multiple services gets your content out into the wild.
From a personal standpoint I mainly see traffic being driven by FriendFeed. Yesterday I posted what I thought was a great post titled “Leaders In Internet Social Networks” that subsequently bombed page view wise on FriendFeed. It really is ok. I do not blog for traffic but it nice.
Anyway today out of nowhere I was on the front page of Social Median and as a result have had a very successful day (for me) page view wise. There are no blogging formulas but it pays to diversify as a new blogger.
Be an active participant in Social Media and submit your blog postings to every stream you actively participate in. It pays to not put all your eggs in one basket even if it is a great basket like FriendFeed.
Leaders In Internet Social Networks
When you gather people together in any sort of group, a social structure most always arises. Leadership is something that comes natural to some, and others have it thrust upon them.
A small group may never appoint official leadership but receive leadership in some form from one, two, or a few. Unofficially or not, leadership roles are filled.
Leadership is defined by Wikipedia as the…
“process of social influence in which one person is able to enlist the aid and support of others in the accomplishment of a common task.”
As I began to write this post, I thought about several things. First, my assumption was that leaders definitely exist in social networks. Next, I believe leaders have certain responsibilities within the social setting. I have an expectation for a leader. Is this unrealistic or just simply unfair? These are some the things I want to discuss.
Do leaders exist in social networks?
Large scale social networks are filled with many groups, cliques, and small pockets of users. The users may have affiliation with each other via real life or only online relationships.
Often groups or cliques are simply people of similar interests or some similar trait that draws them together. Even in a group of peers, someone will inevitably stand out for their leadership qualities.
In an online social network, often this is seen by their popularity. In real life popularity is certainly not a determination for leadership or intelligence. In an internet social network, often we perceive the popular as leaders of the community.
This may or may not be a good method for finding leaders. The popular may be power users, but are they leaders?
Do they portray leadership qualities? Did they gain popularity from expertise? Are they an ambassador for the service? Do they wield power over the herd of users? Do they have a large sphere of influence?
If the answer is yes, I believe you have found a leader.
Is leadership expectation unfair?
What do you expect from a leader in real life? They obey the law of the group, the law of the land, and adhere to the accepted code of conduct. It is very easy to transfer these same expectations to a leader of a social network.
Unfortunately, a leader in this situation is, number one, not formally recognized. Second, they are certainly not compensated directly for their service to the organization.
I expect a certain decorum and behavior from a leader. The leader has the ability to incite riots, lead the herd in a way of their choosing, and generally abuse users in any way they see fit. Are my expectations are simply unfair?
How can we fix leadership in an online group?
One of the things that makes a social network work is the open format. The lack of rules and organization often leads to unique collaboration and an exchange of ideas.
Limiting user freedom and independence would be method for site admins to tighten control over their network. I am not for tightening control.
I am against formulas for processes that are informal. Formula or function where, by definition or inception, there is no formula or function. Freedom of expression on the Internet is great and can lead to innovation and invention.
These processes include all methods of communication, collaboration, and speech on today’s Internet. These creative processes can largely be stymied by rules, order, and unnecessary constraints.
However, the point of this post is power. In a social group, whether informally or not, someone gains power. The power to lead. To lead for the good and bad of others. Should site admins constrain users?
When power users lead the herd abusively, what action should be taken?

![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=85dd5c30-2f78-4837-89de-bad0b2fa6a4d)
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=cab199ec-f227-4915-a77d-f040630c6934)
