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.

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.
[code lang=”html”]
<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>[/code]
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.
[code lang=”html”]
<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>[/code]
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