Executive Summary:

A method is outlined that allows a Wordpress blog owner easy access to per post comments. These few simple lines of php can be used in any Wordpress theme when used within the loop.

Full Text:

Delicious Bacon.  Mmmm....

Like delicious bacon, this piece of Wordpress hackery is tasty! Mmmm....

Some of my posts have a lot of comments. I wanted to be able to browse my site and, should I stumble upon a suspect spam comment, be able to easily exorcise it. The method I used to use entailed trying to search for the specific comment in the Wordpress back end. This proved tiresome if there were a lot of spamy comments, especially if there were a lot on one post.

With a little research, some basic PHP I picked up, and a beer I coded up this little ditty which saves me a lot of trouble. Essentially, it provides me with a quick link to the comments of the current post I’m reading. There I can easily check off one or more comments as spam / edit them / do whatever. Simple and easy.

 
 
 
 
< ?php
if (current_user_can('level_10')){  /*if user is an admin, then make the correct link*/ ?>
   <a href="<?php bloginfo('wpurl');?>/wp-admin/edit.php?p=< ?php the_ID(); ?>">Edit Comments</a>
< ?php } /* end of if statement */ ?>

I marked the code up a bit so that hopefully someone starting out with php can use and understand it. Also make sure that if you are trying to cut and paste this into your Wordpress theme you arrange it so the question marks are beside the angle brackets without a space separating them.

Nota bene: the edit comment link only appears up when the admin is logged in.

You can choose where you would like to place this chunk of code, for myself, I added it to the sidebar of the single.php file.

First of all, thanks to everyone who has pointed out that there is now a warning from Google about how dangerous ‘MaxPower.ca’ is. I hadn’t noticed. Apparently, if you link to malware sites than your site is also considered malware. So all that needs to happen is that you get a bit of spam that makes its way past the filters and viola, your site is malware worthy. This is what I think has happened here. » Read the rest of the entry..

When I created the Sawchuk scheme for K2, I wanted a clean minimal theme that emphasized the content that I wrote. I wasn’t concerned with bells and whistles, I just wanted people to easily be able to read this website. WebDesignFromScratch has some great tips for emphasizing readability in webdesign. Those tips combined with a little common sense and style created the current look of Sawchuk.

Sawchuk

However, the big problem with having different text styles available for use when writing posts is that you have to manually type out the class designations. For example, WordPress offers a blockquote button which theme authors can style using CSS. Sawchuk employs three different styles of blockquote each with their own background colour. In order to use these three different styles, the full class must be typed out like so: <blockquote class=”red”> Some text </blockquote>. The blockquote button alone isn’t enough to define the style (class=”red”) of the blockquote wanted.

This is where Owen’s ButtonSnap Class Library comes in. Using it, buttons can be added to the post editing screen for any class / span / element that a theme author / designer can imagine. Here is how its done: » Read the rest of the entry..

I try to keep maxpower pretty cruft free — no banners, no flashing hit the monkey games, popups or popunders. As a websurfer, I hate those types of advertising and as website owner I would never employ them. In order to keep the site afloat and pay for itself I seek out web sponsors that would be interested in employing text ads here on MaxPower.

I feel that any website I advertise or endorse on MaxPower should have some utility (aka be useful). COLOURLovers meets this utility criteria and I am pleased to be able to help promote it and I am genuinely a fan.

//// COLOURlovers™ is a project focused on providing its audience with colour (color) inspiration & information. it’s purpose is to allow creative individuals to share colours & palettes they love as well as submit news and comments for others to read. the COLOURlovers community is regularly updated with current color trends & news articles along with interviews with top creative professionals.

If you are a theme designer or web developer, or want to paint a room in your house I can think of no better place to start dreaming than at the top Colour palette’s section of the website where various colour palette’s created by users are on display and ranked. A few schemes I wouldn’t be caught dead with, but the overwhelming majority are beautiful. Its a great place to start your next CSS reboot.

Thanks COLOURLovers for providing a valuable service and for helping to keep maxpower cruft free. Here is a screen grab: » Read the rest of the entry..

Parliment Hill, idealized

Today’s Globe and Mail article on the ouster of renegade MP Garth Turner got me a little PO’d. I don’t really care about Mr Turner’s ejection from the Conservative party (the official reason for his being fired from the current Government is that his personal website “violates caucus confidentiality”) — any party can do as they please.

What did cause me to ‘get to thinking’ was the actions of the Prime Ministers Office with respect to the media. According to the Globe and Mail, the Office of the Prime Minister refuses to talk to the media on Parliament Hill (where the federal Government sits in Canada) and orders elected representatives (MP’s) to not answer questions by the media or by constituents in their riding regarding certain specific topics. From the article, Toubles grip Tories (front page of the online edition) Thusday October 19, 2006: » Read the rest of the entry..

The first Thanksgiving Day in Canada after Confederation was observed on April 5, 1872 to celebrate the recovery of the Prince of Wales (later King Edward VII) from a serious illness. Before then, thanksgiving days were observed beginning in 1799 but did not occur every year. Starting in 1879 Thanksgiving Day was observed every year but the date was proclaimed annually and changed year to year. The theme of the Thanksgiving holiday also changed year to year to reflect an important event to be thankful for. In the early years it was for an abundant harvest and occasionally for a special anniversary. After the First World War it was for Armistice Day, while more recently and including today it has been a day of general thanksgiving. [source]

Today Canadians celebrate the harvest with thanksgiving on the second Monday in October. Happy Thanksgiving all.

Digital FingerPrint Fancy Graphic
Version 0.02 has been released addressing much of the feedback received over the past week. New in this version is the ability to automatically insert your fingerprint at the start or end of a post, or at the end of the first paragraph of every post. Of course, you can still use the Fingerprint button in the Write Post dialogue. However, the option to automatically insert your fingerprint takes precedence over any placement defined in the editor on a per post basis. Also added was the ability to search BlogLines for any reference of your fingerprint, and some general code cleanup. Be sure to read install, setup, and usage details on the main post.

Download WP-FingerPrint-Beta2

Thanks to Lorelle, BLaM, and Plagiarism Today for providing valuable feedback to make this tool better. Keep the ideas coming!

Most people don’t celebrate a first birthday at the two and three quarters year mark, but I thought that since we’ve already missed two real birthdays, any excuse to eat cake is a good one. I would hope that we could celebrate this tremendous achievement of keeping a website alive and healthy for nearly three years. Come and introduce yourself, say hi, share a story, a joke, birthday wishes, whatever. The beer is cold and the tunes are good.

How It Started

MaxPower started from the idea that MaxPower was a great name, and that there were only so many great names out there. MaxPower was borne partly out of the idea of having such a great name, and partly out of learning about the web. You may be familiar with an episode of the Simpsons which featured Max Power, an alter ego of Homer Simpson.

Max Power was dynamic, decisive, uncompromising, and most importantly, stupid. See youtube.

Max Power: Kids, there’s three ways to do things. The right way, the wrong way, and the Max Power way!
Bart: Isn’t that the wrong way?
Max Power: Yeah, but faster!

MaxPower the website was started with the same spirit of dynamic, decisive, and stupidity. One of the very first things published on MaxPower was pictures of the Worlds Biggest Special K, which I owned. It sure wasn’t dynamic, but it was a bold decisive claim about something stupid. I found it in my cereal one morning, it was about five square inches big. I kept it in its own special Pelican case but it broke when I moved across the continent. Sadly any pictures I had of it have disapeared into the web ether. And I learned a valuable lesson, backup your photos of over-sized breakfast particles.

Next up, MaxPower hosted the definitive list of the Top 10 Dirtiest ACDC Songs. Clearly, if ACDC doesn’t embody the ideals of dynamic, decisive, uncompromising, and stupid than nothing does. MaxPower continued to publish the absurdly stupid and inane. Consider the approach we have taken on the deep and complex issue of sphincter bleaching. To this day MaxPower ranks very highly for the term sphincter bleaching and sphincter bleaching pictures. I always take pleasure in seeing creeps arrive at MaxPower looking for pictures of bleached white bums. Fools.Max Power does things the wrong way.

Maturity: Like Fine Wine and Century Eggs

Perhaps with maturity comes a relinquishment of childish and stupid thoughts and posts. Sad really, but writing strange sendups about people who get their bums bleached (and the people who look for information on it) or simply posting the humorous nature of ACDC lyrics has been left behind as MaxPower turned 2.

Since then, MaxPower has published a series of WordPress Plugins that are more popular than ever could be hoped for. These plugins have been downloaded over 5000 times. Not bad for a guy with ZERO programming education.

MaxPower has also recently started to explore issues of SEO, Adsense, and splogging. As well, my post on Free Icons was such a success that it now covers all the costs associated with running a website — that is all I could have ever hoped for.

The Future

People like yourself keep me blogging on a regular basis. I wholeheartedly enjoy reaching out and making challenging someone to laugh, think, or helping them solve a problem. Perhaps this is why MaxPower has recently seen a big surge in the numbers of RSS subscribers, welcome RSSers!

I will always provide full feeds without ads. However, while having subscribers and visitors is nice, I would really like to see more interaction with people on a regular basis. I would encourage you to, every once and awhile, minimize your RSS aggregator and leave a comment, idea, suggestion or criticism. MaxPower does not believe in nofollow, so your comments at MaxPower actually do count for something.

Come and introduce yourself, say hi, share a story, a joke, birthday wishes, whatever. This is a birthday celebration, and all my birthdays have music. This is what I’ll be listening to. Thanks for a great 2.75 years, and here is to 2.75 more. Damn few like us, and they’re all dead.

Subscribe to MaxPower: don’t miss the updates!