View RSS Feed

Recent Blogs Posts

  1. How to get around the '"BC Math support" not found' error

    This is an error which crops up from time to time and unless you own the server or have a very nice service provided theres not much you can do to enable BCMath as it involves turning off the server re-compiling PHP with BCMath enabled.

    But there is an easy work around you can just add the following function to the bottom of functions_global.php
    PHP Code:
    function bcadd($Num1,$Num2,$Scale=null) { 
      
    // check if they're valid positive numbers, extract the whole numbers and decimals 
    ...
    Tags: bcmath, php Add / Edit Tags
    Categories
    Uncategorized
  2. Optimisation of URLS

    Hello there!

    Just thought I would let you know of some updates that I carried out to optimise the browse and item pages so that the urls will appear to include the product / category names in the search engines.

    The first thing I did was to add the following function to the includes/functions_global.php file:

    Code:
    function _urlEncode($val) {
    	$val = str_replace("&", "and", $val);
    	$val = preg_replace("/[^a-zA-Z0-9\s]/",
    ...

    Updated 23-06-2011 at 12:33 AM by renlok

    Tags: seo, urls Add / Edit Tags
    Categories
    WeBid , Programming
  3. WeBid Modification

    Wasup guys,

    I was fascinated by WeBid and trying to publish a bidding site. The main problem I faced is , the intended customers don't have a credit card processing or pay pal or any other online transaction processing facility.

    Can you still think of making use of WeBid , with no creditcard or paypal? with only local currency.

    The country don't use credit card but they have a debit card which you put money and withdraw when you need.

    Thank ...
  4. Adding a field to the registration page

    Adding a field to the registration page

    remember to replace every instance of YOUR_NEW_FIELD with whatever its called in the database

    run the code:
    Code:
    ALTER TABLE `webid_users` ADD `YOUR_NEW_FIELD` varchar(50) default '';
    ok heres how to add it to the registration page
    in register.php find (~line 299)
    PHP Code:
    birthdatesuspendedlanguagegroupsbalancetimecorrectionpaypal_emailworldpay_idmoneybookers_emailtoocheckout_idauthnet_id
    ...
  5. Fly-out Category and Sub-Category menu

    So the next step for me was to get a working category menu that had a flyout of each top level categories' child(sub) categories.

    I have to say...this was a pain in the proverbial for me...I spent a few hours trying to get this to work right I can assure you. Even though I got it working, I imagine my code is probably quite inefficient so I'd really appreciate any feedback from some experienced coders.

    Anyway, here's the code to go in the home.tpl file, which is basically ...

    Updated 28-01-2011 at 11:06 PM by h20boynz

    Categories
    Uncategorized
Page 1 of 4 1 2 3 ... LastLast