Jump to content

roban

Member
  • Posts

    3,238
  • Joined

  • Last visited

Posts posted by roban

  1. Try this:

    tested with the Classic or Classic based skin.

    1: Open your skins folder and go to skinname/styleTemplates/boxes/searchForm.tpl and back this file up

    2: Replace all the code with this code:

    <!-- BEGIN: search_form -->

    <div class="boxTitleLeft">Search</div>

    <div class="boxContentLeft">

    <form action="index.php" method="get">

    <span class="txtSession"><strong>{LANG_SEARCH_FOR}</strong></span> <input name="searchStr" type="text" class="searchBox" id="searchStr" value="{SEARCHSTR}" size="20" />

    <input type="hidden" name="act" value="viewCat" />

    <input name="Submit" type="submit" class="searchBtn" value="{LANG_GO}" />

    </form>

    </div>

    <!-- END: search_form -->

    3: Move the {SEARCH_FORM} tag from the skinname/styleTemplates/global/index.tpl & cart.tpl to either the left or right columns.

  2. All I can come up with is a mod to show all products but you might be able to alter it:

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////

    // Step 1 : Open includes/content/viewCat.inc.php

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////

    Find :

    } elseif($_GET['catId']=="saleItems" && $config['saleMode']>0) {

    $productListQuery = "SELECT ".$glob['dbprefix']."CubeCart_cats_idx.cat_id, ".$glob['dbprefix']."CubeCart_cats_idx.productId, productCode, quantity, description, image, price, name, popularity, sale_price, stock_level, useStockLevel FROM ".$glob['dbprefix']."CubeCart_cats_idx INNER JOIN ".$glob['dbprefix']."CubeCart_inventory ON ".$glob['dbprefix']."CubeCart_cats_idx.productId = ".$glob['dbprefix']."CubeCart_inventory.productId WHERE sale_price > 0 GROUP BY ".$glob['dbprefix']."CubeCart_inventory.productId";

    After Add:

    } elseif($_GET['catId']=="catalogue") {

    $productListQuery = "SELECT * FROM ".$glob['dbprefix']."CubeCart_inventory";

    $view_cat->assign("LANG_IMAGE",$lang['front']['viewCat']['']);

    /********************************************************************************

    ***********/

    /* If You Want the pics to show go to step 2 */

    /********************************************************************************

    ***********/

    Find :

    if(file_exists($GLOBALS['rootDir']."/images/uploads/thumbs/thumb_".$productResults[$i]['image'])){

    $view_cat->assign("SRC_PROD_THUMB",$GLOBALS['rootRel']."images/uploads/thumbs/thumb_".$productResults[$i]['image']);

    } else {

    $view_cat->assign("SRC_PROD_THUMB",$GLOBALS['rootRel']."skins/".$config['skinDir']."/styleImages/thumb_nophoto.gif");

    }

    Replace with :

    if(!$_GET['catId']=="catalogue"){

    if(file_exists($GLOBALS['rootDir']."/images/uploads/thumbs/thumb_".$productResults[$i]['image'])){

    $view_cat->assign("SRC_PROD_THUMB",$GLOBALS['rootRel']."images/uploads/thumbs/thumb_".$productResults[$i]['image']);

    } else {

    $view_cat->assign("SRC_PROD_THUMB",$GLOBALS['rootRel']."skins/".$config['skinDir']."/styleImages/thumb_nophoto.gif");

    }

    }

    Find :

    $view_cat->assign("LANG_IMAGE",$lang['front']['viewCat']['image']);

    Replace with :

    if(!$_GET['catId']=="catalogue"){

    $view_cat->assign("LANG_IMAGE",$lang['front']['viewCat']['image']);

    }

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////

    // Step 2 : Open skins/YOURSKIN/styleTemplates/boxes/categories.tpl

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////

    Find : <li class="bullet"><a href="index.php" class="txtDefault">{LANG_HOME}</a></li>

    After Add : <li class="bullet"><a href="index.php?act=viewCat&catId=catalogue" class="txtDefault">Catalogue</a></li>

  3. There's no reason your site cannot be spidered unless you have a robots.txt preventing it. if you do, delete the file. Your site has other problems. The load time is high and this affect visitors on a 56k modem and , yes there are still plenty of them.

    Here's a spider-eye view of your site:

    URL:

    Title: Datalogging solutions - Temperature, Humidity, Voltage, Current, Pressure, Shock

    Description: Suppliers of Temperature, humidity, voltage, current, shock, Ethernet, GSM, USB and RS232 dataloggers.Exceptional value for money and delivering, functionality and performance, without sacrificing the most important factors of quality and reliability

    Keywords: dataloggers, datalogger, data logger, data loggers, ethernet, USB, lcd display, temperature, humidity, shock, vibration, voltage, current, recorder, RS232, pharmaceutical, food, wireless, transportation, cold chain, fridge, freezer, storage, 21CFR PART 11, Water Level, pressure, parameters, WiFi, calibration

    Size: 15428

    Text: Datalogging solutions Temperature, Humidity, Voltage, Current, Pressure, Shock Subscribe to our Newsletter Email Search for an item Welcome Guest Select Currency Browse by parameter Browse by interface Accessories Tuesday June Loggershop Recommends Loggershop supplies dataloggers from pioneers in datalogging technologies offering exceptional value for money, delivering advanced functionality and performance, without sacrificing the most important factors of quality and reliability. Loggershop offers an ever expanding range of over dataloggers, to collect a vast array of enviromental parameters including temperature, humidity, voltage, current, pressure, shock, for configuration and analysis by advanced user friendly software, via Wireless Radio, WiFi, USB, RS , Ethernet and even mobile phones Copyright

    Number of words: 107

    Number of distinct words: 83

    Links:

    HTML:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

    <title>Datalogging solutions - Temperature, Humidity, Voltage, Current, Pressure, Shock</title>

    <meta name="description" content="Suppliers of Temperature, humidity, voltage, current, shock, Ethernet, GSM, USB and RS232 dataloggers.Exceptional value for money and delivering, functionality and performance, without sacrificing the most important factors of quality and reliability" />

    <meta name="keywords" content="loggershop, dataloggers, datalogger, data logger, data loggers, ethernet, USB, lcd display, temperature, humidity, shock, vibration, voltage, current, recorder, RS232, pharmaceutical, food, wireless, transportation, cold chain, fridge, freezer, storage, 21CFR PART 11, Water Level, pressure, parameters, WiFi, calibration" />

    <meta name="author" content="Takeshi Designs" />

    <meta name="copyright" content="Takeshi Designs" />

    <meta name="publisher" content="Takeshi Designs" />

    <meta name="robots" content="index,follow" />

    <link href="/skins/Killer/styleSheets/layout.css" rel="stylesheet" type="text/css" />

    <link href="/skins/Killer/styleSheets/style.css" rel="stylesheet" type="text/css" />

    <link rel="shortcut icon" href="/favicon.ico" />

    <link rel="icon" href="/animated_favicon1.gif" type="image/gif" />

    <script language="javascript" src="/js/jslibrary.js" type="text/javascript"></script>

    <script language="javascript" src="/js/gen_validatorv2.js" type="text/javascript"></script>

    Post edited at the request of the site owner.

  4. If your problem is in Latest Products, here's a fix:

    In the includes/content/index.inc.php find this line:

    for($i=0;$i<count($latestProducts);$i++){

    Replace with this code

    $across=4;

    $index->assign("TW",100/$across);

    for($i=0;$i<count($latestProducts);$i++){

    if (!(($i+1) % $across)) {

    $index->assign("TXT_TR","</tr><tr>");

    } else {

    $index->assign("TXT_TR","");

    }

    in skins/{insert skin name}/styleTemplates/content/index.tpl replace all code

    between

    <!-- BEGIN: repeat_prods -->

    and

    CODE

    <!-- END: repeat_prods -->

    including those two lines above with this code

    CODE

    <table width="100%" border="0"><tr>

    <!-- BEGIN: repeat_prods -->

    <td width="{TW}%">

    <div style="float: center; text-align: center;">

    <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}"><img src="{VAL_IMG_SRC}" alt="{VAL_PRODUCT_NAME}" border="0" /></a>

    <br />

    <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}" class="txtDefault">{VAL_PRODUCT_NAME}</a>

    <br />

    {TXT_PRICE} <span class="txtSale">{TXT_SALE_PRICE}</span>

    </div>

    </td>

    {TXT_TR}

    <!-- END: repeat_prods -->

    </tr></table>

    The $across variable is used to specify number products across.

×
×
  • Create New...