Archive for the ‘WordPress’ Category

Recent phpBB Topics on Wordpress Plugin

UPDATE: This Plugin has been updated, the latest version is available on wordpress.org please comment on the new post, thanks.

Written primarily for my wife to use in the future, but I’ve developed a pluging that allows you to post a list of recent phpBB threads/topics within wordpress.

If found this plugin by Brandon Alexander but it wasn’t right for my needs, firstly he looks up usernames from phpBB, now my phpBB & wordpress installs don’t share databases and I thought it was a bit of a security risk giving wordpress access to my users password hashes… and secondly that plugin gives a list of recent posts, not what I wanted, and wanted threads (topics).

Root Cookie WordPress - Plugin updated !

UPDATE: This Plugin has been updated, see please the new post, thanks.

Unless there’s a security risk, I’m always slow to upgrade my blog to the latest & greatest WP, the reason is plugins, when there’s a major revision update, plugins cause problems, so it’s usually best to wait for the maintainers to fix them before upgrading.

Anyway, I started to test the upgrade, and realised that I had a plugin that didn’t work, and yes you guessed it, it was the one I wrote ! - DOH !

Avatar « bbPress plugin browser

I’ve been playing with bbpress, by default there are no Avatars, I’ve made a little adjustment to the plugin by Joshua Hutchins

Here is my Forum Post: Avatar « bbPress plugin browser

I wrote an extra function for your plugin so that the avatar can be displayed on the profile page…

function profile_avatar() {
global $user;
if ( get_avatar_loc ( $user->ID ) ) {
echo '<img src="' . get_avatar_loc( $user->ID ) . '" alt="' . $user->user_login . 's Avatar"' . ' />';
}
}

Styles & img sizes could be added into the tag as desired…. then in profile.php template, add…

k2 for bbPress

UPDATE: This theme has been updated, please see the new post, thanks.

K2 style for bbpress

I’m thinking about hosting a forum for some friends to use, so I thought I’d take a look at bbpress; I look after phpbb for my better half, and find the patching & modding a bit of a pain, the stuff photomatt does never lets me down, so I thought I’d take a look at his attempt at a forum.

For “regular” forum users I think they may find the interface a bit of a shock, but that doesn’t bother me, there are some features missing, but the community have been putting plugins together to plug the gap (poor, poor pun, sorry !).

Cookie Path Plugin For WordPress 2.0 (root Cookie)

UPDATE: This Plugin has been updated, the below links to the new file, but please comment on the new post, thanks.

I’ve been busy this AM, my site is a little bit integrated with WordPress, basically I call the header and footer from WP so that my custom code changes themes when WordPress does :)

I want to take it further and use the authentication cookie, so that my code recognizes me when I log in (in the same way WordPress does). In order for linickx.com to see the cookie set by linickx.com/blog, I need to change the COOKIEPATH. The change is actually quite simple, in fact the “set cookie” function is a pluggable one :D

h4×0r (Hacker) / The Matrix Theme for WordPress

My h4x0r Theme

I thought I’d try something different ;)

I’ve been playing with wordpress for nearly a year now, and thought it’d be cool to make a publicly available theme, I wasn’t sure on what to do so I thought I’d start with a simple pallet. My theme is a black on green code looking theme, you know the hacker site style; to make it more interesting I added some matrix references, and silly bits of php code.

The theme has been tested on wp 1.5 & 2.01 (including a blank one as requested on the codex) , there is a screenshot and I’ve also installed a theme switcher so you can demo it :D

Multiple Loops in Wordpress

I wanted to run the wordpress loop on my php page more than once, & I don’t know if I’m the only person, but I found the offical multiple look example hard to swallow.

Google found is nima’s how to which was useful, but I wanted to take it further; the problem was I wanted a function.

This is what I came up with:

<?php
require(’path_to_wordpress/wp-blog-header.php’);
?>

<?php
function show_posts_from_cat($MYCAT){

?>

<ul>
<?php if (have_posts()) : ?>

<?php $my_query = new WP_Query(”category_name=$MYCAT”); ?>

<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<li>