X-cart v4.4.0 shows Customer Feedback at header

How to show Customer Feedback at header of detailed product page?
1. Go to skin/common_files/modules/Customer_Reviews/, creat a filed called vote_reviews_header.tpl, and open it.
2. Add the following code in vote_reviews_header.tpl: Continue reading “X-cart v4.4.0 shows Customer Feedback at header”

Posted in X-Cart. Comments Off

How to add sub domains at another web hosting?

I want www.glassespeople.com to  run at a vps from hostgator, and http://forums.glassespeople.com to run at aother shared web hosting from hostgator also, and do not use redirect to achieve this. We all know if we deal redirect not well, it  is very bad for our sub domain seo.

2 steps, first we set forum.glassespeople.com to an ip of the new shared hosting from vps:

Access WHM:

Home » DNS Functions » Edit DNS Zone

and add:

forum 14400 in a 174.120.20.157, here 174.120.20.157 is your new shared hosting ip.

second step, go to your new shared hosting cpanel, first an addon domain: glassespeople.com,  then add sub domain name:

forums.glassespeople.com

done!

Posted in Web Hosting. Comments Off

WordPress Twenty Twelve change Continue reading to post title

The default template of Twenty Twelve shows “Continue reading” at homepage, or category page. How to change “Continue reading” to post title?

Edit content.php, this file is just under the template of “Twenty Twelve”, find the following code:

<?php the_content( __( 'Continue reading <span>&rarr;</span>', 'twentytwelve' ) ); ?>

and change it to:

  <?php the_content( __( 'Continue reading [' . get_the_title($post->ID) . '] <span>?</span>', 'twentytwelve' ) ); ?>

Posted in WordPress. Comments Off

Remove Any Unnecessary Files of WordPress

How can we remove the /wp-includes/js/comment-reply.js?ver=20090102 script tag?
2 steps:

first edit wp-includes/functions.php, add the follow code at the end of functions.php:
function clean_header(){
wp_deregister_script( 'comment-reply' );
}

second, edit wp-includes/default-filters.php, add the next line at proper place:
add_action('init','clean_header');

Posted in WordPress. Comments Off

WordPress 3.5 Plugin Update Errors

I have a blog installed under xampp, and I am using windows 7 system. Today I updated my wordpress based blog to wordpress 3.5. There are some errors, all about wordpress plug-in.

I met the following errors:

Updating Plugin Akismet

Downloading update from http://downloads.wordpress.org/plugin/akismet.2.5.7.zip…

An error occurred while updating Akismet: Download failed. Could not open handle for fopen() to http://downloads.wordpress.org/plugin/akismet.2.5.7.zip.
—————————————————————
Updating Plugin WP htaccess Control
Downloading update from http://downloads.wordpress.org/plugin/wp-htaccess-control.3.3.zip…

An error occurred while updating WP htaccess Control: Download failed. Could not open handle for fopen() to http://downloads.wordpress.org/plugin/wp-htaccess-control.3.3.zip.
————————————————————
Updating Plugin WP No Category Base

Downloading update from http://downloads.wordpress.org/plugin/wp-no-category-base.zip…

An error occurred while updating WP No Category Base: Download failed. Could not open handle for fopen() to http://downloads.wordpress.org/plugin/wp-no-category-base.zip.

Very simple to deal with this issue, just added the follow code to the wp-config.php file:

define( 'WP_TEMP_DIR', ABSPATH . 'wp-content/' );

done.
Easy or not!!!

Posted in WordPress. Comments Off

How to Get Customers Full Name from Magento?

We can use mysql to get customers’ full name, you can add customer’s email also by using mysql clause, for example, we need to search 10,000 customers from Canada, and save the result a to a new table, say aaa_ca_custoemr, here the code: Continue reading “How to Get Customers Full Name from Magento?”

Posted in Magento. Comments Off

3useful skills of Vbulletin Version 4

Here let me share my 3 useful skills about Vbulletin Version 4.
1. members that have visited the forum today for unregistered users also;
2. Similar Threads not show up
3. Reset “Most Users Ever Online”

For first question, do as follows: Continue reading “3useful skills of Vbulletin Version 4”

Posted in Vbulletin. Comments Off

2 SEO Skills on WordPress

Here let me share 2 skills on wordpress seo. The default method of a post read more is usally shows as “read more…”, or “Continue reading”. This is very bad for our seo purpose. We all know that we’d bette use our keywords as text link or at least the text link should contain our main keywords.  How to do then? We can use each post title instead “read more…” as default text link. Continue reading “2 SEO Skills on WordPress”

Posted in WordPress. Comments Off

How to use mysql to remove the hyperlink and remain with the text?

If you have a lot of articles, and there some hyperlinks here and there, it will be very difficult for us to remove them one by one. For example, you have about 10,000 articles, if you check each articles, I am sure you will have to cost several days to remove the hyperlinks and keek the text.

There are 2 method to do this, one is using php code, we can read the article from mysql database, and using php to replace; another method, we can control mysql directly. For example, as we know, there are many people using dede cms to build sites, and all the articles is stored under body of dede_addonarticle.

Here, let share the second method with you, log in your mysql database via phpmyadmin, and choose your database, run the following sql:

update dede_addonarticle set body = replace(body,substring(body,locate(“<a “, body),locate(“>”, body,locate(“<a “, body))+1-locate(“<a “, body)),”");

Posted in MySQL. Comments Off

How to remove the title attribute using dreamweaver?

Here are some html code:

<A title=”mens glasses” href=”http://www.cheapglasses123.com/men-glasses”>Men’s Glasses</A>
<A title=”womens glasses” href=”http://www.cheapglasses123.com/women-glasses”>Women’s Glasses</A>
<A title=”kids glasses” href=”http://www.cheapglasses123.com/kids-glasses”>Kids Glasses</A>

If we do not need title attribute in these href code, and let them be: Continue reading “How to remove the title attribute using dreamweaver?”

Posted in Php Skills. Comments Off
King Php Science Designed by:KingPhp.com Welcome, you are from: 54.226.5.29