fGallery exploit fixed

fGallery exploit described here is fixed in version 2.4.2 available for download at the plugin page.

Fix includes proper escaping of the url and checking if the “album” is numeric. If “album” is not numeric the script dies and therefore the exploit can not be executed.

Thanks to all of you who made me aware of this exploit and I apologize for any problem it may have caused.

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”

happy-new-year-wallpaperIn 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.

Next Page »