Duplicate content on categories pages with multiple pages of x-cart

I am working on my x-cart 4.4.5 site aajj.net. One thing I am running into is that I get duplicate content warnings on my categiries pages. For example… I have 200 products in a category with 20 products per page. This breaks the category up into 10 pages. The descriptive paragraph I have for the […]

Adding custom text to bottom of all posts in particular category

If we want to add the same piece of custom text to the bottom of every post in a certain category of wordpress. How do then? For example, we want to add “Good idea if you buy eyeglasses online!” at each page of category which category id is 2. Try to add the following code […]

Bulk Generate Different Dates for Vbulletin

We sometimes use php or mysql to generate many different user names, we found all users’ joining dates are the same. How to deal this issue then? Let me share my skills with you. <? function rand_time($a,$b) { $a=strtotime($a); $b=strtotime($b); return date( “Y-m-d H:m:s”, mt_rand($a,$b)); } $date1=”2012-02-20 08:15:42″; $date2=”2013-05-7 08:15:42″; $num = 2000; $i=0; while […]

Let WordPress Different Category Shows Different Style

For example, we are designing a company site using wordpress, 2 categoris: product category, and new category. How to let these 2 categories show different styles? Creat 2 php files: product.php, news.php, and copy all contents from wp-content/themes/zeecompany/archive.php; Edit wp-content/themes/zeecompany/archive.php, delete all contents in archive.php, and copy the following code in archive.php:

Useful Drupal Skills

How to show a block only at front page or homepage? 1. Go to Administration » Structure; 2. Click ‘Add block’, and fill in “Add block”, and your code at “Add block”; 3. Under “Show block on specific pages”, Click “Pages on which this PHP code returns TRUE (experts only)”, and copy the folling code […]

Change mangeto domain name

4 steps: first, upload all files to your new web hosting; second, restore your mysql database to your new one; third, edit /app/etc/local.xml, and update to your new mysql database information, take care the following code:

How to remove magento parent category path from sub category url

How to remove parent category path from sub category url? Instance: http://www.eye4eyeglasses.com/eyeglasses/cheap-eyeglasses I just want the category c url is http://www.eye4eyeglasses.com/cheap-eyeglasses Edit /app/code/core/Mage/Catalog/Model/Url.php Find around line 632 and change: //if (null === $parentPath) { //$parentPath = $this->getResource()->getCategoryParentPath($category); //} //elseif ($parentPath == ‘/’) { $parentPath = ”; //}

Zen-Cart Can not Run Admin

When visit zen-cart (V1.3.8a) amdin log in page, it shows: Fatal error: Class ‘notifier’ not found in /home/myhost/public_html/myshop/includes/autoload_func.php on line 79 modify configure.php under admin/includes define(‘DIR_FS_CATALOG’, ‘/home/myhost/myshop);  to   define(‘DIR_FS_CATALOG’, ‘/home/myhost/myshop/’); Always best to run zc_install to build the configure.php files on a new site. Saves all kinds of wasted time troubleshooting needlessly.    

Hostgator Web Hosting Questions & Answers

How to let Hostgator web hosting support PHP 5.3? Shared and Reseller We currently have 5.3.5 installed on all servers. A handler for PHP 5.3 is added to our shared and reseller servers for those who wish to utilize it. In order to utilize this handler, you will need to add the following code to […]