Archive for the 'Programming' Category

The error ‘Unable to determine the page link’ in OSCommerce MS 2

Challenge: Recently I tried to move an older OSC website from one host to another host. After I made changes in the configure.php files and uploaded them to the new host, the first page could not be loaded such error messages as “unable to determine the page link…”. And everything would be fine if I commented out any codes with basename($PHP_SELF) function.

Continue reading ‘The error ‘Unable to determine the page link’ in OSCommerce MS 2′

Related posts

How to set up your own customized template overrides?

Like I copied a post from zen-cart on last weekend, I set up a blank new customized template for zen-cart. But it does not do any good if I do not create any my own overrides to display my own style/texts. The following is a how-to from zen-cart support website covering this topic, and I am pasting here for my own reference.

Basically in the /includes/templates/CUSTOM you can start with copying any templates files/sub-folders from /includes/templates/template_default or /includes/templates/classic, and then whatever your style changes there. But some language related changes should be changed in /includes/languages/LANGUAGE folder.

Continue reading ‘How to set up your own customized template overrides?’

Related posts

How to customized your own template for Zen-cart shopping cart Open Source application

This article is copied from the official zen-cart support web site.

Since Version 1.3.+ Zen Cart™ has moved away from its old table based layout to a CSS based layout.

CAPITALIZED words refer to a folder or language that you choose. We use CUSTOM for your template and ENGLISH for your language by default. Change these if needed.

Continue reading ‘How to customized your own template for Zen-cart shopping cart Open Source application’

Related posts

How to display random header images in K2 theme of WordPress

Maybe you already knew, but I just found out from my own experience. This afternoon, I tried to update the header image for this blog. I went into the back-end Dashboard, then click Presentation –>Custom Image Header. There I uploaded a new image, and got the confirmation message. But when I came to my live site, I still saw the old header image. No matter how many time I refreshed the screen, and I also purged the browser cache too. When I thought it was the bug of my K2 plugin/theme, I uploaded another new image but amazingly I saw the second image appeared when I refreshed the screen (I was supposed to see the third one)!

Continue reading ‘How to display random header images in K2 theme of WordPress’

Related posts

About the installation of YetAnotherForum

YetAnotherForumSome steps to install the free ASP.NET open source forum:

1. First of all, of course you should download this application from http://www.yetanotherforum.net/.
2. Prepare the Microsoft SQL Express database. If you have not installed any on your servers yet, you can download it from Microsoft website for free. When you are on Microsoft Download center, remember you not only need  SQL Server 2005  Express database service, but you also need SQL Server Management Studio Express to create a initial forum admin user.
3. Create a login for your new SQL database, and then a new database Instance. With such information, including Database Name and Logon Account/Password, you can modify the yanet.config first before you start to install the forum.
4. Finally, you can run the installation from the URL of http://yourdomainname/YaNet/install/default.aspx.

Continue reading ‘About the installation of YetAnotherForum’

Related posts

Recommend a free ASP.NET C# open source forum

YetAnotherForumCurrently it is very difficult to find a good ASP.NET discussion board program. Since one of my clients is using Windows hosting plan, it is not good to recommend vBulletin or PHPbb to him when he asked my suggestion on setting up a community forum.

To started, I did a little bit of researches on the following 3 asp.net forums.

  1. Jitbit 的 ASPNetForum 4.5.x (free, $85 and $169 versions)
  2. Austrian Active Data Online - Discussion Board 6.x ($200)
  3. England Instant Forum 4.x ($119 or $199)

Only AspNETForum offers the downloads, for the others you will have to go to their web sites for the demonstrations. To be summarized, all of the three above are not too bad, and not too expensive. Especially the AspNetForum can be free if you keep its logo on your forum. And AspNetForum is very clean and simple on the layout too. But “simple” is not always good for the administrators. In AspNetForum, you can not set up different type of boards, and you could not control the configuration from the back-end control panel either. For example, you will have to edit the web.config file to set up bad words filter.

Continue reading ‘Recommend a free ASP.NET C# open source forum’

Related posts

10 common Web design mistakes to watch out for

This article is from TechRepublic and the information is based on the article "10 ways to improve the design of your commercial Web site," by Chad Perrin.

tenthings_110x85 When you start designing a Web site, your options are wide open. Yet all that potential can lead to problems that may cause your Web site to fall short of your goals. The following list of design mistakes addresses the needs of commercial Web sites, but it can easily be applied to personal and hobby sites and to professional nonprofit sites as well.

1, Failing to provide information that describes your Web site

Continue reading ‘10 common Web design mistakes to watch out for’

Related posts

How to install wp-catch plugin in WordPress MU mu-plugins folder

I downloaded the wp-catch plugin from WordPress Extend page and need to install on my WordPress MU blog sites. I can put it in the wp-content/plugins folder but I just did not want to active it in all of my blog sites.

Continue reading ‘How to install wp-catch plugin in WordPress MU mu-plugins folder’

Related posts

Download Simplified Chinese Language Pack for WordPress MU 1.3

WordPress MuHere you can only download Chinese Language Pack for the multiple-user version of WordPress 1.3, if you would like to get the latest language pack for single user of WordPress MU, please Click here

Chinese Localization files for WordPress MU 1.3

(1783 Strings, last updated on 2007-11-03 11:00 am)

zh_CN.mo
zh_CN.po

Continue reading ‘Download Simplified Chinese Language Pack for WordPress MU 1.3′

Related posts

WordPress MU 1.3 finally here

WordPress MuFrom one blog of my blogroll links, I was happy to hear that there was a newer version of WordPress MU available now. Finally MU has been upgraded nearly a month after the WordPress was upgraded to 2.3 then 2.3.1.

I downloaded the zip file from the official website of WordPress MU and compared it with WordPress MU 1.25a within WinMerge. And I found that there were a lot of files changed, including the include/kses.php. Since I did something changes on kses.php, I had to merge my changes to the newer file then go ahead to upload the new version to my blog sites.

Continue reading ‘WordPress MU 1.3 finally here’

Related posts

How to enable or use Javascript and Flash embed in WordPress MU

WordPress Mu
Whenever I enter Javascript tags like <script>...</script> in the WordPress MU posts, they will disappear. The same thing is with the <object>..</object> and other HTML tags. I understand they got stripped by some filter codes due to the consideration of web security. But I need such tags badly since I have a lot of YouTube videos need to be embedded which come with <object> tags, and some Javascript tags too (like the countdown image from Ubuntu in my previous post).

What are the solutions? I could not find any official solutions from the support forum of WordPress MU website. Someone recommends to put the Javascript text in sidebar, or download some plugins to do so. Since I need to show videos in my posts, the widget sidebar one can not be good to me. I decide to change filter code file which was not my best choice though. Continue reading ‘How to enable or use Javascript and Flash embed in WordPress MU’

Related posts

How to conditionally display image in Gridview based on data fields in ASP.NET 2.0

Challenge: Asp.NETHow to display an image in a column of ASP.NET Gridview based on the data from a database table. For example, I have a GridView to display some speakers’ profile with name, address etc. Within it, I need to display a clip icon in the column of “Speech” to indicate that this speaker has a speech document attached. Continue reading ‘How to conditionally display image in Gridview based on data fields in ASP.NET 2.0′

Related posts

Share the experience of setting up WordPress MU

WordPressAs my previous post indicated, I installed WordPress MU 1.2.5 to replace my 3 individual weblogs powered by WordPress 2.2.1. Although the wordpress-mu is based all core features from wordpress, I still had some technical difficulties to get all things right as I wanted from the beginning. Finally I figured some issues out and am sharing here to hope they will be helpful for you too.

Upper Cases user name caused problems for WP-MU 1.2.5.

After the default blog installed, I registered another user name like “WebGuru” since I used it for all my old blogs. But when I tried to log into the blog with this username above and the password I received after the activation, I got an Incorrect User Name or Password error message. Continue reading ‘Share the experience of setting up WordPress MU’

Related posts

How to fix issues of sending email in ASP.net 2.0 with localhost Microsoft SMTP service

Asp.NETWith the upgrading to ASP.net 2.0, I decided to change all my sending email codes too. Basically I am going to use system.net.mail instead of system.web.mail or traditional CDONT. I thought it would be an easy task, but I still encountered some issues.

Continue reading ‘How to fix issues of sending email in ASP.net 2.0 with localhost Microsoft SMTP service’

Related posts