How to not Show WordPress Posts under Certain Category at Homepage?

Sometimes we do not like to show wordpress posts under certain category or categories at homepage? Here are some methods. For example, you do not need to show post under category 29. First method, placing this code in index.php file will cause the home page to display posts from all categories except category ID 29.

How to Import WordPress eXtended RSS (WXR ) Big Files?

We often to import post to wordpress via the tool of Import WordPress, if we import big files, we always meet errors. How to resove this issure then? Let me share a skill with you. Use 7-zip to GZIP your exported file, usually a 30 MB file down to just about 3 MB. Then try […]

Useful Skills for WordPress

First, let me share 3 useful wordpress plugin, WP htaccess Control, WP No Category Base, WP No Tags Base. We can use WP No Category Base,WP No Tags Base at the same time. If you do not need wordress parent category name, just active WP No Category Base; same, if you do not like parent […]

How to change forum.php to forum root of vbulletin?

If you like to change forum.php to forum root  when you use vbulletin v4, you have to take care 2 steps: 1. Redirect forum.php to  index.php. You would remove the current index.php file, rename the forum.php to index.php, then in the AdminCP->Settings->vBulletin Options->Forum Home Page Options, set the first option to index.

How to display wordpress post titles from a single category?

There 2 siturations, first one, we only need to show certain category post, say category id 3. If the category id is 3, then the blog will show some posts under the category. We can use the following code: <?php if ( is_category(‘3’) ) : ?> <li> <h2>News</h2> <ul> <?php $posts = get_posts(‘numberposts=10&category=3&orderby=post_title&order=ASC’); foreach($posts as […]

How to Remove Drupal’s Logo?

If you do not need a logo for your drupal based site, you can remove it very easily. For Drupal 7, go to Administration » Appearance, click your enabled theme’s Settings. Next click Global settings, and do not choose Logo, save and done! We also can modify code to remove “Powered by Drupal”. Go to […]

How to Show Drupal Block on Specific Page

Sometimes we need to show drupal 7 blocks at certain page, say home, then go to: Administration » Structure. Click configure of the block you like to show content, and you will leaded to: Administration » Structure » Blocks.

How to Reset the vBSEO Control Panel Password

Because we seldom log in vbseo control panel after we have set our vbbuletin forums, we are easily to forget the vBSEO Control Panel Password. Sometimes we want to modify the password, we can not find any places to modify. How to then? First you must open your vbseo/resources/xml/config.xml file using dreamweaver, or other text […]

Mysql Update PHPLD URL

Sometimes when we add & within a category, the static url will show “___”, it is not so good, if there are too many we will cost a lot of time to modify them. We can update “___” to “_and_” from PHPmyadmin. Following the next 2 steps: First step: UPDATE pld_category SET TITLE_URL = REPLACE(TITLE_URL, […]

How to get visiters real IP via PHP code?

<? function getIP() { static $realip; if (isset($_SERVER)){ if (isset($_SERVER[“HTTP_X_FORWARDED_FOR”])){ $realip = $_SERVER[“HTTP_X_FORWARDED_FOR”]; } else if (isset($_SERVER[“HTTP_CLIENT_IP”])) { $realip = $_SERVER[“HTTP_CLIENT_IP”]; } else { $realip = $_SERVER[“REMOTE_ADDR”]; } } else { if (getenv(“HTTP_X_FORWARDED_FOR”)){ $realip = getenv(“HTTP_X_FORWARDED_FOR”); } else if (getenv(“HTTP_CLIENT_IP”)) { $realip = getenv(“HTTP_CLIENT_IP”); } else { $realip = getenv(“REMOTE_ADDR”); } } return $realip; } […]