Archive for March 24th, 2011

How to remove “Comments Closed” to appear on your home and pages on WordPress blog / Removing “Comments Closed” message to appear in wordpress

Thursday, March 24th, 2011

I’m currently configuring one wordpress based installation to serve as a mini website for old fashined furniture.

By so far I was able to close the comments on the wordpress Pages but still face huge difficulties with making the wordpress installation to looes it’s blog a like, look and feel and look a bit like a normal website.

The major issue I faced was with removing the irritating message Comments Closed which was appearing right after my post on my Home configured wordpress page.

It took me some readings online and some experimentation until I got the solution, to make the life easier of other people who face the Comments Closed can’t remove issue here is how I scraped the message out:

1. Go to your wordpress install directory and look for the wp-content/themes directory inside it select the theme which you have selected as a default for your wordpress via the admin page.
I assume you’re using the default template and thus switch to the directory wp-content/themes/default , e.g.:

wp-host:~# cd /var/www/wordpress/wp-content/themes/default 2. Inside the theme directory look up all your files for records like:

Comments Closed

wp-host:/var/www/wordpress/wp-content/themes/default:~# grep -rli 'Comments Closed' *
archive.php
de_DE.mo
es_ES.mo
fr_FR.mo
index.php
it_IT.mo
page.php
ru_RU.mo
search.php
single.php

As you can see in the output there are few php files which seems to include the Comments Closed text inside them, therefore our files of interest which needs modifications are: archive.php, index.php, page.php, search.php and single.php

3. Open up each of the aforementioned php files and look in each one of them for:

comments_popup_link([ some code ]);

When you stumble on the comments_popup_link function one line before the function opening php code with <php starts insert the code:

<?php if('open' == $post-<comment_status) : ?>

At the end of the <?php comments_popup_link([ some code ]);?> code on the next line fill in the code:

<?php endif;?>

4. Do the step 3 for all your found php files which include the comments_popup_link function.That’s it now your “Comments Closed” message will disappear all your wordpress posts and the wordpress install would start looking more like a website.

DOOM 1, DOOM 2, DOOM 3 game wad files for download / Playing Doom on Debian Linux via FreeDoom open source doom engine

Thursday, March 24th, 2011

Doom 2 game screenshot

Every now and then as an ex-gamer I do remember the good glorious times of the DooM oldschool 3d shooter game.

As a Linux user I do have the option to play Doom 1 and Doom 2 straight using the GPLed version of the game called FreeDoom

FreeDoom comes with a custom wad file called freedoom.wad which is a considerably good remake of the doom game, but still I don't find so funny and bringing memories as the original game.

Thus in order to experience the original doom game play, levels and sound on my Linux, I need to use the original doom wad files

The DooM original wad files are already an abandonware and nowdays it's a bit hard to be found. Still the wad files for the games are available for download on some major torrent trackers like piratebay but it takes time to find them therefore I decided to publicly share the Doom 1, Doom 2 and Doom 3 wad files to be easier for me to later put and play them on Linux and BSD operating systems, on the other hand I do think this files might be useful for many other oldschool DooM fans out there.

Here are the files for download:

1. Download doom 1, doom 2 and doom 3 wad files + extra of plutonia wad and tnt wad rar archive

2. Download Doom1.wad file
3. Download Doom2.wad file
4. Download Doom3.wad file

(Note that this is not original Doom3.wad – For free, its custom doom wad for prboom engine!!!)
5. Download Doom Plutonia.wad
6. Download Doom Tnt.wad

On my Debian Linux with the freedoom package in order to play the Doom1 or Doom2 wad files it's necessary to download and place the doom1.wad or doom2.wad files into the directory /usr/share/games/doom

It's important that the WAD files names does not contain capital letters (e.g. the files need to be placed with file names doom1.wad and doom2.wad)

The FreeDoom port package in Debian Lenny and Squeeze is available to be installed easily through apt like so:

debian:~# apt-get install prboom freedoom

To start up the doom2 game, issue the command:

debian:~# prboom

prboom also allows you to select a custom .wad file you want to play, for a custom wad file you can invoke the command:

debian:~# prboom -file yourwadfilename


UPDATE: A bonus you might seriously Enjoy, if you happen to be DooM 2 game fan / addict is an Awesome MIDIS Soundtrack by Bobby Prince you can download it song by song in midi format here or if you prefer download the whole doom 2 Bobby Prince midi songs archive
Enjoy the nice oldschool game 😉