Compdigitec Labs

HTTP (Internet)

Disable WordPress conversion of double-dashes in posts

Friday, July 24th, 2009

Update (2014-08-09): Still works for WordPress 3.9.2. Update (2013-11-16): Still works for WordPress 3.7.1. Update (2012-07-26): Updated for WordPress 3.4.1. Update (2012-02-03): Updated for WordPress 3.3.1. Update (2011-08-21): Updated for WordPress 3.2.1. Update (2009-08-16): Updated for WordPress 2.8.3. If you use WordPress (like this blog and many hundreds and thousands of blogs) for your blogging […]

Solving “XAMPP: Couldn’t start MySQL!”

Saturday, May 30th, 2009

XAMPP for Linux is a convenient package for installing the AMPP stack (Apache, MySQL, PHP, Perl) of web server software, but it also has its own share of problems. One such error is the generic and uninformative error of “XAMPP: Couldn’t start MySQL!“. This is confusing because it does not say anything about the error. […]

Removing WordPress post revisions feature

Friday, March 13th, 2009

WordPress 2.6 and above’s new feature of post revisions only slows WordPress down and makes it less usable. So here is how to disable post revisions: Open wp-config.php in your wordpress installation directory with a text editor. Add the line “define(‘WP_POST_REVISIONS’, false);” anywhere in the file in a new line after the <?php header. Save […]

Allowing shorter passwords in AutoIndex

Thursday, October 30th, 2008

If you’ve ever found AutoIndex PHP Script‘s password valiator’s resrictions on a long password annoying, you’re not alone. Fortunately, we have found a workaround for it. Steps Download the AutoIndex script. Extract the archive and open classes/Admin.php Find the line that says “private static function validate_new_password($pass1, $pass2)“. Move further down to the line that says […]

Setting up a Wikipedia clone (part 2)

Sunday, September 28th, 2008

This is the second part to creating your own Wikipedia clone. If you haven’t already read done part 1, then you must do part 1 before continuing. This part deals with making your MediaWiki more Wikipedia-ish. Install the Cite extension to enable <ref> and <references />. Create a template with text that states that the […]

Creating a Wikipedia clone (part 1)

Thursday, September 25th, 2008

If you ever wanted to set up your own topic-specific or subject-specific Wikipedia®, then you’re in luck! We’re here to give you simple and easy to follow instruction on creating your own mini-Wikipedia®. Before you start: You need to have a web server with at least PHP5 and MySQL 4. You need to understand the […]

Enabling and in MediaWiki

Sunday, September 14th, 2008

If you have a MediaWiki installation and decide to make it Wikipedia-like, you will find that the <ref> tags and the <references /> tags don’t work like they do in Wikipedia. Below is a screenshot of the citation tags not working: To fix this problem, you need to install the Cite extenstion for MediaWiki. Below […]

WordPress author email blacklist patch

Friday, August 29th, 2008

If you’ve ever needed to block a single comment spammer using multiple IPs, referrers and urls, but the same email, here’s a patch for WordPress 2.5. This patch is released under the GNU General Public License. Add the following code to wp-comments-post.php after the line “$comment_content      = trim($_POST['comment']);” (line 30 on v2.5): // ****** Start of comment email patch by Compdigitec ****** $name = […]

Latest comment spammers on Compdigitec Labs

Monday, August 25th, 2008

A list of recent comment spammers for you to check IPs against. Note that the actual comment or the link spammed is not provided because it either may be copyright violation or the sites may be harmful or is an bad exploit website. IP 142.32.208.234 using email d62s_test469@hotmail.com. Spammed on 2008-08-17 21:16:21 GMT. Spam consisted […]

Changing the user agent of PHP

Wednesday, August 20th, 2008

If you ever need to adjust or change the default user agent that PHP accesses pages with (http and ftp wrappers) because either the default PHP user agent was blocked (“PHP”) or you wrote a bot with PHP and wish to customize it, you can do so easily with a php directive called “user_agent”. Note […]

« Previous Entries Next Entries »