Search the Site

My Social
Meta
Powered by Squarespace

Entries in Website (39)

Thursday
Apr052007

Blog Spam (part deux)

The last couple of weeks my blog was under some sort of spam attack. I got about 50 to 80 spam comments a day. Thankfully, Askimet intercepted 99% of those messages. But Askimet shouldn't be getting these messages, because my captcha plugin should keep them out... well, it didn't. Yesterday, I found Wordpress Hashcash. A plugin which uses crypto to keep automated spammers away. So far it's working. UPDATE: ever since I installed WP-Hashcash it has been awfully quiet on the spamming front :-) Never mind... Thankfully Askimet is catching them all (50 per day at this moment)

Click to read more ...

Saturday
Mar312007

Blog Spam

I've got this blog running for a couple of months now. Even though not many comments are left behind (I don't care), the spammers definitely found my blog. I receive over 30 spam comments a day now. Thanks to the Askimet Anti-spam plugin for Wordpress, the spam entries are quarantined.

Blog Spam

Every spam entry looks the same, and all the links the f*ckers try to leave behind won't work (I must admin that I try some of the links they are leaving behind). So I ask you; What's the point in spamming useless links? If a link won't work, you won't even try a (spammed) link in the future, because it's a waist of time. Same goes for e-mail spam. I receive lots of spam in my inbox, but what is the use in advertising viagra, if the shop is offline.I guess that there are just too many people with too much spare time on there hands. But not enough to create, or host a decent online drugstore :-)

Click to read more ...

Thursday
Mar222007

Wordpress 2.1.2 Update

I upgraded my version of Wordpress to version 2.1.2. This went the usual 'problems'. First of all I 'forgot' to make a recent backup. Second, I used Transmit (an OSX FTP Client) to upload the new pages. Transmit has the possibility to overwrite files. No worries (I thought), I just renamed the files I editted, do I could rename them back when I had uploaded the new files. It seems that I didn't read the warning very well. When I overwrote the directories, Transmit removed them first and uploaded the new files afterwards. This meant that all my uploads, and customized files were gone..... aaaaargh. Fortunatelly, I had a backup from two weeks ago, so I could get the old files. This reminds me to make a decent backup before doing anything about my Wordpress installation in the future....

Click to read more ...

Tuesday
Jan302007

WP Movie Review Ratings

I added a new plugin to Wordpress v2.1. It's called WP Movie Review Ratings. It enables you to place movie reviews on you Wordpress blog. At this time it's fairly empty, but I'll try to migrate my older existing movie database to this one, so it'll be filled soon (I hope). B.t.w. many thanks to the developer Paul Goscicki in assisting me in getting it to work. Seemed that I had a small misconfiguration in my PHP config.

Click to read more ...

Tuesday
Jan232007

Upgraded to Wordpress v2.1

The highly anticipated version Wordpress v2.1 has been released today. This meant upgrading my older version (v2.05). The upgrading itself was quite easy (if you follow the upgrade instructions to the letter). I also upgraded my hacked TinyMCE Wordpress Editor with an 'official' upgrade.... Let the posting begin Update: 'unhacked' it again because of erratic behaviour of the editor, and manipulated the original included TinyMCE editor (see the end of my earlier post regarding this).

Click to read more ...

Sunday
Nov122006

Pixelpost stress

Pixelpost is a PHP based image gallery for showing photos. It includes displaying EXIF info, and (according to the website) is VERY EASY to install. Since I'm not a PHP guru (yet), and needed to have a (customizable, and not too overpowered) photo gallery for my photos. Downloaded the 'install kit' from the website, and followed the instructions. When I installed Wordpress on my Windows server, I ran into some problems with permissions on directories. Especially on directories which were used to upload stuff to. Armed with that piece of knowledge, it shouldn't be too difficult to get it up and running (I thought). The installation itself was a piece of cake. The Pixelpost admin tool has an overview (General Info) which said that all settings were made correctly, and therefor should work. All directories were in place and were writable. The MySQL database was also set up correctly, because the initial tables were created by the PixelPost install script, and the config table was filled with the correct settings. Time to upload my first test image.... Nothing happend. No matter what I tried, no images were uploaded to the server. Still the General Info page of the Pixelpost admin tool said that everything was OK:

Configured Imagepath: ../images/ Image Directory: OK - Can we write to the directory? YES. CHMOD: 0777 Thumbnails Directory: OK - Can we write to the directory? YES. CHMOD: 0777 Language Directory: OK Addons Directory: OK Includes Directory: OK Templates Directory: OK
Even after setting the security for the entire PixelPost directory structure to allow the Internet User Account (IUSR_MACHINENAME) full control over the structure, nothing happend. Well, that was another 3 hours well spent..... Off to find another PHP gallery.

Click to read more ...

Tuesday
Oct032006

Expanding TinyMCE for WordPress

The default TinyMCE rich editor for WordPress lacks a lot of functionality (IMO). I wanted to use other fonts, and be able to change font sizes in posts. At first I started to look for an alternative rich text editor for WordPress, but I didn't find any usefull alternatives. Most of them are suitable for older WordPress versions, and are not compatible with the latest WordPress releases. While I was developing my former blog in Coldfusion, I used FCKEditor. This editor had the possibility to add extra functionality by editting the source files. So I started digging through the sources of the WordPress files, and found the file where the TinyMCE configuration was stored. Although the changes are not that hard, it would be nice to have a more user friendly interface for changing the capabilities of the rich text editor. The following paragraphs explain the changes I made to add fonts and font sizes to the editor. The file for displaying the editor is called "tiny_mce_gzip.php" (located in wp-includes/js/tinymce/). Open this file in a texteditor (BBEdit/Notepad/UltraEdit), or a HTML editor (I used Macromedia Dreamweaver). Find the string "mce_buttons" (without the quotes). It's located near the end of the file. The line that holds the string also defines the buttons / options for the TinyMCE editor. The default line is:

$mce_buttons = apply_filters('mce_buttons', array('bold', 'italic', 'strikethrough', 'separator', 'bullist', 'numlist', 'outdent', 'indent', 'separator', 'justifyleft', 'justifycenter', 'justifyright' ,'separator', 'link', 'unlink', 'image', 'wordpress', 'separator', 'undo', 'redo', 'code', 'wphelp'));
This line can be editted, to add extra functionality. The problem is that the file doesn't mention all possible options, so I had to do some reseach on the TinyMCE editor itself. On the website are some examples showing the capabilities of the editor. The TinyMCE website has an overview of the available buttons / options which can be used with the editor. Note that not all options may work with WordPress. I added "fontselect", "fontsizeselect", and "forecolor" to the editor;
$mce_buttons = apply_filters('mce_buttons', array('bold', 'italic', 'strikethrough', 'fontselect', 'fontsizeselect', 'forecolor', 'separator', 'bullist', 'numlist', 'outdent', 'indent', 'separator', 'justifyleft', 'justifycenter', 'justifyright' ,'separator', 'link', 'unlink', 'image', 'wordpress', 'separator', 'undo', 'redo', 'code', 'wphelp'));
After editting the file, save it and launch the WordPress admin page and start creating posts with the newly added functionality. UPDATE: it seems that the added functionality removes the TinyMCE functions if you use Safari as a browser :( (this is probably a "feature"). No problemo if you use FireFox UPDATE 2: This won't work with Wordpress 2.1 :(. You have to do the following if you want extra functionality in Wordpress 2.1:
  • Open the tiny_mce_config.php (located in wp-includes/js/tinymce/).
  • Find the line that starts with $mce_buttons_2 = apply_filters (around line 34)
  • Add extra functions on that line Example: $mce_buttons_2 = apply_filters('mce_buttons_2', array('formatselect', 'fontselect', 'fontsizeselect', 'styleselect', 'separator', 'forecolor', 'backcolor'));
This adds the ability to change fonts and use colors in your blogs. There is also a third line you can use to add other stuff, but you got to figure that one out for yourself.

Click to read more ...

Monday
Sep042006

WordPress Plugins / Hacks

I've been experimenting a bit with some of the plugins available on "the market" for Wordpress. It's nice to see that so many people participate in the enhancements of this great product. There is a BUT. Several plugins I tried were specially made for a none Windows platform. It would be nice if this was mentioned BEFORE I even downloaded them. It would save me a lot of trouble trying to get them to work. Anyway, I added some anti-comment-spam stuff (don't know yet if they work). Next 'project' will be to find a plugin (or hacks as they are sometimes called), which enables me to submit images by mail (or phone) to this blob. If I try to submit an image by mail, it just adds a bunch of gibberish (aka BASE64 encoded stuff) to the frontpage. The ones I found so far are non Windows-based :cry:. The quest goes on.

Click to read more ...

Sunday
Sep032006

Installing WordPress v2.x on IIS6.0

This entry describes the challenges I faced when I tried to install WordPress on a Windows 2003 webserver. The WordPress website has a page about installing WordPress in 5 minutes. Well, I know now that this is impossible. Especially, if you're trying to install it on a machine without PHP already installed and configured with MySQL. I started out with a webserver which had MySQL v5.x running. This server was configured correctly, since I used MySQL for ages. This post doesn't describe the MySQL installation. If you download the latest Windows installer, it shouldn't be that hard to install (Setup.exe -> Next -> Next -> etc. -> Finish). I started out with "installing" PHP v5.1.6 for Windows. Somehow I was hoping to get a nice installer, but all I got were some files in a zip container :(. Anyway, I extracted those files to "c:\PHP" on my webserver. All I needed to do now is to configure PHP by editting "PHP.ini" (I hate those long ini files :x). As a starting reference I used the recommended INI file in the PHP directory. Scrolling through the file (which is thouroughly documented inline) I changed the things that I needed. Since it was the recommended ini file I didn't bother much on all the possible features. I just wanted to get Wordpress to work. The following text is the result of a couple of hours trying, searching the Internet, and cursing that the (online)manuals failed in every single way. Step 1: Extract the PHP files to "c:\PHP". Editting the PHP.ini file is not necessary for PHP to work initially under IIS. This will be discussed later on. Step 2: Get PHP enable under IIS. I created a (standard) website under IIS which I called "Wordpress". After that I needed to enable PHP for that website. I used the ISAPI filter for PHP instead of the CGI processor. Open the properties of the "Wordpress" website, and open the ISAPI filter tab

Installing Wordpress

Press the "Add" button

Installing Wordpress

Call the filter name "PHP", and locaten the PHP ISAPI-filter (in my case "c:\PHP\php5isapi.dll"). When finished press "OK", and press "OK" again in the earlier screen. Now I needed to tell IIS what to do when it encounters .php files. This is done under the "Home Directory" tab.

Installing Wordpress

Set the execution permissions to "Scripts only", after that, press the "Configuration" button.

Installing Wordpress

Here I added the PHP extension by clicking the "Add" button.

Installing Wordpress

The executable is (again) the ISAPI filter, which I configured as an ISAPI filter earlier on. Just click "browse" and locate the php5isapi.dll file in the "c:\PHP" directory. From this point on all open IIS windows can be closed by pressing "OK". The only thing left is to restart the Webserver.

Resetting IIS can be done by the commandline by entering "iisreset.exe" in a dos-box.

Step 3: Testing PHP Create a file called "phpinfo.php" in the root of the Wordpress website. The content of this file should be:

< ?php // Show all information, defaults to INFO_ALL phpinfo(); // Show just the module information. // phpinfo(8) yields identical results. phpinfo(INFO_MODULES); ?>

After saving this file, go with your browser to your website and open the phpinfo.php file. I received a nice page displaying various settings etc. from PHP. Note that the first table displays the location of the PHP.ini file used for the PHP engine. It points by default to the Windows directory. More on this in Step 4.

Now I needed to enable MySQL support for PHP

Step 4: Edit the PHP ini file

IMPORTANT: move the PHP.ini file to the Windows directory, and than start editting it. Somehow, the PHP engine expects the file over there. When I didn't get it to work initially (you get an error "Your PHP installation appears to be missing the MySQL which is required for WordPress." when you try to install/configure Wordpress. Wordpress relies heavy on the MySQL database, so I needed to tell PHP to use the MySQL extensions. Extensions were disabled by default, so I needed to remove the semicolon infront of the extensions line, and point to the location of the "ext" directory within the PHP tree:

extension_dir = "c:/php/ext/"

Note that, eventhough I'm installing on a Windows server, I used forwarded slashes "/", instead of the regular backslash "\". If you use the backslash in the PHP.ini file it won't work!!!!

Now I needed to enable the MySQL extension itself. Around line 630 in the ini file are the supplied Windows extensions. Remove the semicolon from the following lines:

extension=php_mysql.dll extension=php_mysqli.dll After this reset the webserver (again) with "iisreset.exe" command from the commandline. Step 5: Verifying MySQL support Open the phpinfo.php page again in the browser to verifiy that MySQL is enabled. Some where on the page should be a table called "Mysql". If it's not there, than there's no MySQL integration, and the installation of Wordpress won't work.

wp-install-07.png

From this point on, you can use the famous 5-minutes-installation guide on the Wordpress website. Step 6: Enable the upload of files though Wordpress When I tried to upload the images used in this post I gort an error stating that WordPress wasn't able to create the folders and files. It seemed that I needed to add the anonymous account to create/write files. Since I didn't want this on all my directories I added the IUSR_ account with write and modification right only to the wp-content folder of the WordPress installation.

wp-install-06.png

This might impose some security risks. I will try to find out if there is an other (more secure) way of dealing with this.

Click to read more ...

Page 1 ... 1 2 3 4