Jetpack exceeds memory limit

ffs, jetpack always exhausts my memory limit! (thats a mind controlled jetpack for the uninitiated)

pft, and people doubt my minds abilities.

Well doubt me no more!

Incidentally what I was trying to say was that every time I install the jetpack plugin for wordpress it runs out of memory.

However, it turns out that this was mostly my servers fault. Dear old Moore* seems to have limited my WP install to 32mb of memory. However a little bit of WP config magic and thats all gone away!

 

define('WP_MEMORY_LIMIT', '64M');

 

*thats the servers name btw, personally I’d have gone with Kittens, but thats a story for another day!

New site theme

I have finally made a new theme for femgeek.co.uk.

20110522-103034.jpg

It’s a mishmash of lots of different sites and things that have inspired me recently.

I hope to put up some wordpress themes for download along with various tutorials. Who knows maybe I could even write about drupal!

I also plan to put up some free and premium photoshop resources/tutorials.

But first on my list is a decent wordpress content slider. They are all rubbish!!

List of Top Commenters in wordpress

If you’d like your own list of top commenters for 2010 here is the SQL.

SELECT comment_author, comment_author_url, comment_date, comment_approved, count(comment_author_url) as n FROM wp_comments WHERE comment_date > '2010-01-01 00:00:00' AND comment_approved = 1 GROUP BY comment_author_url ORDER BY n DESC

The sections marked in red may need changing – if you changed your DB prefix when you set up wordpress it may not be wp_comments.

The date might change if your reading this next year.

Run the query in phpmyadmin and export it as a php array then you can use this code to generate your list and copy and paste it to your blog.

echo '<ul>';
foreach($wp_comments as $x) {
echo '<li><a href="'.$x['comment_author_url'].'">'.$x['comment_author'].'</a></li>'; }
echo '<ul>';

Probably the most long winded way ever but at least my query is saved until next year :)

Changing the default wordpress smilies

Note: this is an old post, as shown by the version numbers!

There are two ways to change the WordPress Smilies, the first way is to just replace the images of the default ones, but what if you want more interesting smilies, or more smilies than are available?

WP 2.0 – Navigate to your wordpress install folder and go to wp-includes and open vars.php.
WP 2.1+ – Navigate to your wordpress install folder and go to wp-includes and open functions.php.

Find the following code.

‘:mrgreen:’ => ‘icon_mrgreen.gif’,
‘:neutral:’ => ‘icon_neutral.gif’,
‘:twisted:’ => ‘icon_twisted.gif’,
‘:arrow:’ => ‘icon_arrow.gif’,
‘:shock:’ => ‘icon_eek.gif’,
‘:smile:’ => ‘icon_smile.gif’,
‘:???:’ => ‘icon_confused.gif’,
‘:cool:’ => ‘icon_cool.gif’,
‘:evil:’ => ‘icon_evil.gif’,
‘:grin:’ => ‘icon_biggrin.gif’,
‘:idea:’ => ‘icon_idea.gif’,
‘:oops:’ => ‘icon_redface.gif’,
‘:razz:’ => ‘icon_razz.gif’,
‘:roll:’ => ‘icon_rolleyes.gif’,
‘:wink:’ => ‘icon_wink.gif’,
‘:cry:’ => ‘icon_cry.gif’,
‘:eek:’ => ‘icon_surprised.gif’,
‘:lol:’ => ‘icon_lol.gif’,
‘:mad:’ => ‘icon_mad.gif’,
‘:sad:’ => ‘icon_sad.gif’,
’8-)’ => ‘icon_cool.gif’,
’8-O’ => ‘icon_eek.gif’,
‘:-(‘ => ‘icon_sad.gif’,
‘:-)’ => ‘icon_smile.gif’,
‘:-?’ => ‘icon_confused.gif’,
‘:-D’ => ‘icon_biggrin.gif’,
‘:-P’ => ‘icon_razz.gif’,
‘:-o’ => ‘icon_surprised.gif’,
‘:-x’ => ‘icon_mad.gif’,
‘:-|’ => ‘icon_neutral.gif’,
‘;-)’ => ‘icon_wink.gif’,
’8)’ => ‘icon_cool.gif’,
’8O’ => ‘icon_eek.gif’,
‘:(‘ => ‘icon_sad.gif’,
‘:)’ => ‘icon_smile.gif’,
‘:?’ => ‘icon_confused.gif’,
‘:D’ => ‘icon_biggrin.gif’,
‘:P’ => ‘icon_razz.gif’,
‘:o’ => ‘icon_surprised.gif’,
‘:x’ => ‘icon_mad.gif’,
‘:|’ => ‘icon_neutral.gif’,
‘;)’ => ‘icon_wink.gif’,
‘:!:’ => ‘icon_exclaim.gif’,
‘:?:’ => ‘icon_question.gif’,

Replace the icons in the single quotes with the symbols you want to represent your new smilie and in the next set of single quotes add the smilies filename and extension. You can add or delete to your hearts content.

Once you’ve done this go to wp-includes>images>smilies and upload your new smilies!!

I do love smilies. :love: