X-cart V4.7.1 SEO on Customized URLs

If your x-cart based shoping system has thousands of products or many categories, and you need to add a customized word at the end of a detailed product or category url, for example: Your category name is: Cheap Glasses, default x-cart seo function will generate: Cheap-Glasses; your product name is: USA, defautl x-cart seo function […]

How to Let X-Cart Display latest WordPress Posts?

This mod assumes that you use the WordPress blogging software and uses the same database as your xcart software. If your wordpress and x-cart use separate database then use this code for blog_headlines.php

Bulk Change Mysql Database Table Prefix

We often need to change all our mysql database table prefix. If there are only one or three tables, that would be very easy for us to change. If there are too many, say 100 mysql tatabase tables. It will take us a lot of time, at the same time we may make mistakes. Any […]

PHP Codes Do Not Working!

Yestday I uploaded a php page to my php VPS hosting from hostgator, i uploaded the file via ‘Secure File Transfer Client’, and I log in my hosting using the username of ‘root’, and its related passwords. After I uploaded the file, and run the php page, I can not let it working. After about […]

Static Pages Link Display

How to stop part of static pages showing at homepage, help section, or both? 1. Not show at homepage only Open file bottom.tpl, which is under fold of skin/2-columns/customer/, and change the following code: {foreach from=$pages_menu item=p}     <ul>     {if $p.show_in_menu eq "Y"}     <li>         <a href="pages.php?pageid={$p.pageid}">{$p.title|amp}</a>     </li>     {/if}     […]

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: