It is nice to set up some photo gallery on the web and share with friends and family. Some online services are good and convenient. But if you want to host it on your own domain and control them by yourself, there are also many scripts available. Usually, we want the script simple to use
Read more
Category: Web
Effective Anti-Spam in WordPress with Plugins
Posted onWordPress has a very rich set of plugins and a combination of them can make anti-spam in WordPress quite easy. Here is a list of plugins that can help prevent spammers from registering spam account (if the site allows registration of new users) and posting spam comments. Anti spam comments Use the Akismet WordPress plugin.
Read more
How to Change MediaWiki’s Main Page Title and URL
Posted onMediaWiki set’s the default page (the homepage) to the “Main Page” by default. The name “Main Page” is too general and does not give more meanings. Usually for a specific site, we may change it to some meaningful name and URL. This is a configurable in MediaWiki. This tutorial introduces how to change MediaWiki’s Main
Read more
How to Change MediaWiki’s Sidebar
Posted onMediaWiki’s Sidebar can be configured as a special page. This page’s title is “MediaWiki:Sidebar”. For example, if a MediaWiki site www.example.com is configured to use [[search-engine-friendly-url-for-mediawiki]], the URL for edit the Sidebar is: http://www.example.com/w/MediaWiki:Sidebar It may look like this: * navigation ** mainpage|mainpage-description ** recentchanges-url|recentchanges ** randompage-url|randompage ** currentevents-url|currentevents ** portal-url|portal ** helppage|help * SEARCH
Read more
How To Set Mobile Skin for MediaWiki
Posted onMore and more users are browsing the Internet using a mobile device. It is preferred to provide good experience for these users. One method to service a mobile version of the page to a user with a mobile device. This tutorial introduces how to add mobile skin support for MediaWiki. Skin for mobile devices I
Read more
Search Engine Friendly URL for MediaWiki
Posted onMediaWiki is the wiki-engine that runs Wikipedia. In this tutorial, we introduce how to configure search engine friendly URLs in MediaWiki. ==Search Engine Friendly URLs== Default MediaWiki URLs look like www.example.com/w/index.php?title=TITLE which is a little ugly. To make it more search engine friendly, we will change it to SEO-friendly URLs like www.example.com/w/TITLE. ==Enabling Search Engine
Read more
Web2 Icons: Icons of Social Networking in iPhone Style
Posted onWhen I tried to find a group of icons for my site, I got to the Web 2 Icons and decided to use it. Web2 icons is a set of icons of social networking in iPhone style. I used the RSS feed, twitter and facebook icons. But it has more icons in the package. It
Read more
BBCode Support in WordPress
Posted onBBCode is another markup language to format posts widely by forums, which is easier and clearer than HTML. WordPress provides a visual editor and some easy-to-use tools, but no built-in BBCode support. Let’s see how to add BBCode support in WordPress. We can add BBCode support to WordPress with the BBCode plugin by bOingball that
Read more
HTML Document Character Set and Encoding
Posted onHTML authors need to look up HTML character encodings frequently as some characters can not (or hard to) be typed out directly from the keyboard. If you would like not do the math and search, you may find the HTML symbols you want to use and its HTML code in Reference: Special HTML Characters. Calculating
Read more
How to Disable WordPress Visual Editor
Posted onThe visual editor provides a visual editor to write and format posts. However, it tries to format the HTML tags written in the HTML editor when turning to the visual editor, and may delete some HTML tags and screw up HTML tags. Even when we set the editor to HTML editor, WordPress may automatically turn
Read more
CloudFlare with DreamHost
Posted onCloudFlare is a very nice service that provides CDN / optimizer / security protection and more. Good news is that DreamHost turns to be a partner with CloudFlare. The free account on CloudFlare is enough for sites such as Fclose.com. I enabled CloudFlare yesterday and it works smoothly and boosts the site’s performance. Overall, I
Read more
Controlling Display of WordPress Widget with PHP Code
Posted onI am always wondering how to display different Widgets in WordPress depending on the page/post/category etc. I ever tried some plugins that is for specific purpose. However, they are not flexible enough for all my needs. For example, I want a widget that contains AdSense ad not display on certain posts that I selected and
Read more
An Online JPG to EPS Converter
Posted onConverting the JPG images to EPS is frequently need especially when write documents in LaTeX. I introduced how to Convert JPG Images to EPS on Linux. However, not everyone have a Linux box available at any time. We set up an Online JPG to EPS Converter to help people convert JPG to EPS. Convert JPG
Read more
Google PageRank Update 2011
Posted onUpdate 3: Fclose.com sees minor PageRank updates on November 8, 2011. For example, some tooles and some posts get PageRank of 3 from 0. Update: Confirmed that Google updates the PageRank in toolbar on November 8 2011. Update 2: Google updates the PageRank in toolbar on August 05 2011. Update 1: Google updates the PageRank
Read more
RGBlite WordPress Theme
Posted onAbout RGBlite Theme RGBlite Theme is a simple and light-weight theme for WordPress. RGBlite Theme provides a green-red-blue mixed style, bright view and fast rendering experience to the users. RGBlite Theme passes W3C XHTML 1.0 and W3C CSS level 3 validation. This theme works well on WordPress 2.9.x and WordPress 3.0. RGBlite theme is among
Read more
Changing the Font Size of WordPress’s Visual Editor
Posted onThe font size of WordPress’s visual editor is too small for me on my screen display. The default font size is 13px which is hard for my eye on my screen. There are two ways to change the default font size in the visual editor. One is changing WordPress’s css file for the editor while
Read more
Speeding Up the Site With Apache GZIP Compression
Posted onWe can speed up the site with compression while save bandwidth at the same time. As most of the modern browsers support gzip encoding, we can set it up to let the users enjoy faster speed. The Apache mod_deflate is easy to set up and standard. It compress the content on the fly. We can
Read more
Get the Number of All Posts in WordPress
Posted onUse the wp_count_posts() function to get the posts count. The code: <?php $count_posts = wp_count_posts(); $count_pages = wp_count_posts(‘page’); echo “<li><a href=” . get_option(‘home’) . “>”; echo $count_posts->publish . ” Posts, ” . $count_pages->publish . ” Pages”; echo “</a></li>” ?>
How to Read File into String in PHP
Posted onRead content of a file to string (in this example, we echo it): // Get text from file function get_text($text_filename) { if ($text_filename != “”) { $text = “”; $text_file = fopen($text_filename, “r”); while (!feof($text_file)) { $text = $text . fgets($text_file, 4096); } fclose($text_file); if ( $text != “” ) { echo $text; } }
Read more
Speeding Up the Site by Using PHP GZIP Compression
Posted onCompression is a simple way to speed up the site. PHP’s gzip compression is excellent. And using it is very convenient: Simply put these codes before any HTML content at the beginning of the PHP script: <?php if (substr_count($_SERVER[‘HTTP_ACCEPT_ENCODING’], ‘gzip’)) ob_start(“ob_gzhandler”); else ob_start(); ?> In WordPress, the suitable position for these codes is the beginning
Read more