Been quite busy
I’m sorry for the lack of updates on this site, I have been very busy lately on various projects and with my daytime job. I’m trying to find time to update wp-forum to version 2.3 and I expect to do so in a very near future. Please have faith.
Soon to be “Happy new year”
In case i forget. I wish you all a very happy new year and may all your beers be free this year.
If you have new year’s promises this year please let me know. Mine is to exercise more and to loose some weight.
WP-Forum 2.2 released
Bugs fixed:
- latest_activity() tag is now working as intended.
- Logout in fixed.
- Minor ui fixes applied.
- No more post count below or beside the avatar.
Get it at the plugin page.
WordPress tabbed sidebar panel part 1
You have probably seen the tabbed sidebar panels on various websites.These are great if your sidebar are getting too populated and you need to clean it up a bit.
This tutorial will show you how to implement one using WordPress, jQuery and a jQuery plugin called jQuery.tabs.
What to display in the tabs
The first we need to determine what we want to display in the tabs, for this tutorial I will use three tabs displaying: latest posts, latest comments and Tags. You can display anything you want but for this tutorial these will do.
Functions
I have in my functions.php file for my template made these two simple functions for displaying the latest posts and comments. Go ahead and paste them into yours to make this turorial working.
What they do is simply get the latest posts and comments and displays them in an unordered list.
Making a container
We need a div container for our panel, we give this div the ID “container”. In your sidebar.php where you want the panel to be dislayed add the following code:
The tabs displayed at the very top of the panel in a simple unordered list which we attach some javascript events to via jQuery. For our purpose we add a list with our three tabs.
<div id="container"> <ul> <li><a href="#latest_posts">Latest Posts</a></li> <li><a href="#latest_comments">Latest Comments</a></li> <li><a href="#tags">Tags</a></li> </ul> </div>
The links will be used to determine what to display when we click on one tab. Now we have the initial menu, we will now be adding the content to display. We will add them all just under the menu list. We will be adding divs to hold the content with the id of the links in the menu list.
<div id="container"> <ul> <li><a href="#latest_posts">Latest Posts</a></li> <li><a href="#latest_comments">Latest Comments</a></li> <li><a href="#tags">Tags</a></li> </ul> </div>
I the next part we will take a look at the Javascript to make it happen.
Hang in there.
WP-Forum 2.1 released
Bugs fixed
- Avatars – user defines/default/settings
- BBCode – Url parsing/images
- Moderators – not showing etc
- Fixed show posts since last visit showing only “Guest” as starter
Additional features
- Adding support for the template tag
forum_activity($num = 5);
- A new skin
Theme demo working
The theme browser has been down for a while due to some maintenance. Today I activated it again so you can browse all my free WordPress themes.
WP-Forum 2.0 released
After much work and debugging i feel that WP-Forum 2.0 is ready for release. The install instructions on the plugin page is updated.
(more…)
Custom WordPress loop
One problem I have come a cross lots of times is that I need to customize the WordPress loop, in other words I’d like to display posts from certain categories on the front page instead of the default one who shows the most recent posts in a descending order.
This is most convenient when you have a category where you post short links or snippets that you want to show in the sidebar or on the top of the page. Much like what the asides plugin do. But I like to do things my own way so I’m gonna show you how to do this in a very easy way. (more…)
WordPress Tricks
I get lots of email questions about how to do things in WordPress, like adding latest posts to the sidebar or how to display posts only from one category. All these emails I try to answer in private. To share all these answers to you my dear readers I have started a new category called “WordPress Tricks” and I will post tips n’ tricks, code snippets and ideas.
So if you want any particular questions answered just send me an email and I’ll try to make a short post about it. So start asking questions.
