Hon Dev

Hon Dev

I had an issue with Feedwordpress and WPMU. The feeds were not appearing and neither were they syndicating posts. Also when I added and deleted blog links they were still appearing.

I tried removing everything including plugins and upgrading to the latest MU Wordpress but Feedwordpress 0.992 only started working properly after I removed the object cache in wp-config.php.

Remove the following line from wp-config.php:

define('ENABLE_CACHE', true);

Delete the folder /wp-content/cache/.

Nginx rewrites are simple but there’s not as much documentation as there is with Apache2. Here’s how I set up my rewrites on Nginx install of MU Wordpress and BBPress.

Read the rest of this entry »

I had a suck time trying to get Screencasting on Ubuntu Feisty working but I managed to get it working without any code hacks once I got on the the right software and instructions. This tutorial ranks really high but has out of date information for my purposes.

This article was critical for getting my sound recording working easy on GTK Record My Desktop. My correct audio setting was hw:1,0 and not hw:0,0 - yours may be different so have a read because it explains things.

Read the rest of this entry »

This is how I do it.

1. Just take your standard page template (page.php) and save it as a new file coop search results. (coopsearchresults.php)

2. Then add this in the very first line before

<?php

/*

Template Name: Google Coop Search Results

*/

?>

3. Right below the end of the first loop you need to add the google coop results code.

eg

<?php endwhile; ?>
<?php endif; ?>
**** Add Google Coop Code Here ****

Make sure you change the width of the results frame so it will work in your template. I think it defaults to 700 wide or something like that. You might have to change it to 500 if your content area is say 550px.

Upload this template to your themes folder.

4. Now create a new page in your wordpress admin and call it ‘Search Results’ on the right hand side where it says page templates select your new template ‘googlecoopresults.php’ then click save.

5. Now in Google Coop there is an option where you can select show results in your own site which is the second option in the Code area. Select that option and where it says search results page add this line:

http://yourdomainname.com/search-results/

6. Select the search form code and copy and paste it into your searchform.php template.

7. If you haven’t already done so copy and paste your Google Coop Search Results code as outlined in step 3 into your new coopsearchresults.php template.

When you load up a profile pic using the geekgrl profile picture plugin which is also basically the same plugin used by suleiman for wpmu the gd graphics library php code in these plugins squash or stretches the thumbnails.

You can see what I mean below.

Here’s an orginal picture:

original photo

Here’s the photo thumbnail with the original plugin code - squashed:

squashed photo

Here’s the photo resized and cropped from the center with my code:

cropped

Here’s the code that you need to replace:

For a 64 thumbnail cropped from center replace the following:

$new_image = imagecreatetruecolor(64,64);
imagecopyresampled($new_image, $image, 0, 0, 0, 0, 64, 0, $dimensions[0], $dimensions[1]);
imagejpeg($new_image, “$medium_file_path”);
imagedestroy($new_image);

With this new code:


list($ow, $oh) = getimagesize($_FILES[’picture’][’tmp_name’]);
$big = imagecreatefromjpeg($_FILES[’picture’][’tmp_name’]);
$new_image = imagecreatetruecolor(64,64);

if ($ow > $oh) {
$off_w = ($ow-$oh)/2;
$off_h = 0;
$ow = $oh;
} elseif ($oh > $ow) {
$off_w = 0;
$off_h = ($oh-$ow)/2;

$oh = $ow;
} else {
$off_w = 0;
$off_h = 0;
}
imagecopyresampled($new_image, $big, 0, 0, $off_w, $off_h, 64, 64, $ow, $oh);
imagejpeg($new_image, “$medium_file_path”);
imagedestroy($new_image);

Trying to get RMagick Gem installed can be a pain in the butt on any system including Ubuntu Feisty. Thankfully Sur figured out how to do it 3 easy steps.

Read the rest of this entry »

In /wp-includes/category-template.php change every line with >> href=”‘

Read the rest of this entry »

Here’s the latest subversion repository for wordpress

svn co http://svn.automattic.com/wordpress/trunk/

Latest Posts

BBPress Wordress MU Integration Nginx Pretty URL’s Rewrites

  • How to do your Nginx rewrites on a Multi User Wordpress Integrated with BBPress
  • Easy Ubuntu Screencasting Feisty Gutsy Gibbon USB Headset ffmpeg flv mp3

  • And the winner is GTK Record My Desktop Tricks and Tweaks - Record Sound Even gtk-recordMyDesktop - then export to flv mp3
  • Google Coop Search Results Wordpress Template Theme

  • How to add Google Coop Search Results so they fit nice in your Wordpress Template Theme.
  • Profile Picture Plugin WPMU Crop Thumbnails

  • I made a few changes so that the Profile Picture Plugin would crop thumbnails from center
  • Install RMagick Gem on Ubuntu Feisty 3 Steps

  • How to install RMagick Gem on Ubuntu Linux Feisty in 3 Steps
  • wp_list_categories site wide categories tags

  • How to change the URL structure in wp_list_categories for site wide categories tags
  • Wordpress SVN Trunk

  • SVN Checkout the latest Wordpress Trunk
  • Recent Comments
    Links

      Meta

      Network Stats Syndication