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.
When we visit our X-Cart shopping cart admin panel, the defaul words between and is X-CART. Powerful PHP shopping cart software. How can we change these words to meet our needs then? There are 2 methods:
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:
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”.
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
When we install a new drupal 6.22, after the first 2 steps: Choose language 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 […]
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 […]
<?php global $wp_query; $cat_obj = $wp_query->get_queried_object(); // Get the ID of a given category $category_id = get_cat_ID( ‘Category Name’ ); // Get the URL of this category $category_link = get_category_link( $category_id ); ?> <!– Print a link to this category –> <a href=”<?php echo $category_link; ?>” title=”<?php echo $cat_obj->name; ?>”><?php echo $cat_obj->name; ?></a>
Q:I want to mass delete my trash with 2000+ Posts in it. Is there a mysql command to do so? A: Please backup before running the query, i’ll not take responsibility if something goes wrong as a result.. DELETE p FROM wp_posts p LEFT OUTER JOIN wp_postmeta pm ON (p.ID = pm.post_id) WHERE post_status = […]
Here is the perfect steps to change wordpress post author: 1) Login into wordpress admin area. 2) Click on Edit in the Posts section. 3) Select the posts for which you need to edit the author details. 4) From the top there is drop down for bulk actions -> select edit and apply. 5) Now, […]