Show Latest Testimonals at Zen-Cart Homepage

Sometimes we like to show several latest customers testimonals at zen-cart based shopping cart homepage. How to do then? Here are my method, let me share the code with you.

Go go to includes/modules, and open left_column.php, add the following code: <code><? $sql = “select  * from pres_testimonials where status = 1 order by id DESC limit 3″; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) { echo “<strong>”.$row[name].”</strong>”; echo $row[detail]; Continue reading “Show Latest Testimonals at Zen-Cart Homepage”

How to Add Extra Text at X-cart Product Name?

There are several places need to modify to add extra text at X-cart Product Name.

1. For Products at X-cart Homepage and Detailed Category Page:
Go to /2-columns/customer/main/products_t.tpl, and change
{$current_category.category} {$product.product|amp}
to:
{if $main eq "catalog" && $current_category.category eq ""}
Cheap Eyeglasses {$product.product|amp}
{elseif $main eq "catalog" && $current_category.category ne ""}
{$current_category.category} {$product.product|amp}
{/if}

Continue reading “How to Add Extra Text at X-cart Product Name?”

How to Remove the Website Field of WordPress From the Comment Form?

We found so many spammers try to leave their url in the field of Website, and use Name as their keywords. How to prevent the spammers doing so then? For example, how to prevent them to leave thir url? Let me share my tips with you. Continue reading “How to Remove the Website Field of WordPress From the Comment Form?”

Enable ajax to Deal with Time Out Issues

If you have thousands categories and you do not enable ajax, you will often meet time out issues, such as:
Fatal error: Maximum execution time of 30 seconds exceeded in ****include/functions.php on line XXX

How to deal with this then? Here let me share my tip with you. Continue reading “Enable ajax to Deal with Time Out Issues”

How to change x-cart v4.4.4 Admin Title?

When we visit our X-Cart shopping cart admin panel, the defaul words between is X-CART. Powerful PHP shopping cart software. How can we change these words to meet our needs then?

There are 2 methods: Continue reading “How to change x-cart v4.4.4 Admin Title?”

Chang X-cart Detailed Product Page Product Thumbnail Place

As we know, at x-cart 2 colomns template, product thumbnail of detailed product page is at the left.

How can we change the Product Thumbnai to center, and at the same time, remove the default left space?

Remove the Detailed Product Page Product Thumbnail Place:
1. open skin/common_files/customer/main/product.tpl, delete the following code: Continue reading “Chang X-cart Detailed Product Page Product Thumbnail Place”

How to move x-cart homepage welcome text?

The default place of x-cart welcome test is at the top of homepage. If you like to remove the welcome text to other place, say just under featured products. How to do then?

Very simple! Login your x-cart admin panel, click “Edit templates Files”, and go to “/customer/main/welcome.tpl”. Continue reading “How to move x-cart homepage welcome text?”

Vbulletin Version 4.1.2 Installation Errors

When I install Version 4.1.2, the following errors come out:

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/cpgtxos/public_html/forums.glassesadvisor.com/includes/class_core.php on line 414

Warning: Cannot modify header information – headers already sent by (output started at /home/cpgtxos/public_html/forums.glassesadvisor.com/includes/class_core.php:414) in /home/cpgtxos/public_html/forums.glassesadvisor.com/install/includes/class_upgrade_ajax.php on line 731 Continue reading “Vbulletin Version 4.1.2 Installation Errors”

Drupal 6.22 installation stuck at database configuration

When we install a new drupal 6.22, after the first 2 steps:

  1. Choose language
  2. Verify requirements

The third step “Set up database” may prevent you from installing successfully. There are not any error messages to show what the problem is either. How to do then?

During the installation you may have renamed the file /sites/default/default.settings.php to /sites/default/settings.php.

However, Drupal expects you to make a copy if this file, not rename it! So you will know what to do now. Just copy default.settings and save it to /sites/default/.

Done.

How to using PHP to delete wordpress coments?

Sometimes there are thousands wordpresss comments there, it is too difficult to delete them. Any method to delete them one time without login phpmyadmin?

The answer is yes, the follow code can help you.

include(‘wp-config.php’);
mysql_query(“truncate table wp_comments;”);

Copy the code to file delete_wp_comment.php, and put the file under your blog. Run it, all comments will be deleted!

If you only want to delete spam or trash comments, please visit http://kingphp.com/160.html , and just change some code. Very simple!