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 to import this gzipped file, many web hosting can import and unzip such files.
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 tag name or tag base, just active WP No Tags Base. read more…
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. read more…
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 $post) :
?>
<li>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</li>
<?php endforeach; ?>
</ul>
</li>
<?php endif ; ?>
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!
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. read more…
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 editor, such as editplus. Open the file and search for something similar to this:
VBSEO_ADMIN_PASSWORD
e7ea6f5be6c2d2d64538c7a6qwe87weas
Replace the above text as:
VBSEO_ADMIN_PASSWORD
Upload the file to the web server. read more…
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, “___”, “_and_”) UPDATE pld_category SET CACHE_URL = REPLACE(CACHE_URL, “___”, “_and_”) The above 2 mysql senstences will update “___” to “_and_”; Second step: UPDATE pld_category SET TITLE_URL = REPLACE(TITLE_URL, “__”, “_”) UPDATE pld_category SET CACHE_URL = REPLACE(CACHE_URL, “__”, “_”) read more…
<?
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;
}
?>
<?
function iptype1 () {
if (getenv(“HTTP_CLIENT_IP”)) {
return getenv(“HTTP_CLIENT_IP”);
}
else {
return “none”;
}
}
function iptype2 () {
if (getenv(“HTTP_X_FORWARDED_FOR”)) {
return getenv(“HTTP_X_FORWARDED_FOR”);
}
else {
return “none”;
}
}
function iptype3 () {
if (getenv(“REMOTE_ADDR”)) {
return getenv(“REMOTE_ADDR”);
}
else {
return “none”;
}
}
function ip() {
$ip1 = iptype1();
$ip2 = iptype2();
$ip3 = iptype3();
if (isset($ip1) && $ip1 != “none” && $ip1 != “unknown”) {
return $ip1;
}
elseif (isset($ip2) && $ip2 != “none” && $ip2 != “unknown”) {
return $ip2;
}
elseif (isset($ip3) && $ip3 != “none” && $ip3 != “unknown”) {
return $ip3;
}
else {
return “none”;
}
}
Echo ip();
?>
We can using an RSS feed to display our vbulletin latest threads on an external page. Let me explain how to to achieve this.
For example, we want to show forums.glassesadvisor.com latest posts at your page.
1. Add the following code to the .php page you plan to show your latest vbulletin posts. read more…
