Jump to content

roban

Member
  • Posts

    3,238
  • Joined

  • Last visited

Posts posted by roban

  1. Search engines read the text in your pages, not your meta tags. They look in the <body> for keywords they are spidering. If your page has the words 'vitamins' and 'nutrients' then the search engine will pick on those individual words and there's nothing you can do about it nor would you want to assuming you're optimizing for those words. Most search engines will ignore your meta tags since they are abused and copied by unscrupulous webmasters.

    The keywords meta tag does very little, if anything, for you with most search engines these days. However the keywords meta tag can't do any harm so it can be useful as 'homework' to remind you what a particular page is being optimized for. The only down side is that a competitor might check your keywords meta tag and learn something about how you see your products.

    For example, let's take a vitamin site that is optimized for a key phrase 'coral calcium'.

    The place where the keywords count is in the body of the text and certainly there it is possible that search engines might get confused about a keyword like coral calcium. I don't think it's a big problem though since by now a search engine like Google is analyzing the whole set of meanings on the web page (semantic analysis). I would assume that if you have a web page on calcium nutrients and coral calcium, then even with the normal repetition of these terms within the web page, the search engine will never confuse that web page with web pages about the calcium enhancing effects of coral in an aquarium.

    I would even go so far as to say that you can remove your meta tags if you want without suffering any penalties from the search engines.

  2. Open /includes/contents/viewCat.inc.php

    Find somewhere @ line 158

    $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 ".$glob['dbprefix']."CubeCart_cats_idx.cat_id = ".$db->mySQLSafe($_GET['catId']);

    Replace it with

    $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 ".$glob['dbprefix']."CubeCart_cats_idx.cat_id = ".$db->mySQLSafe($_GET['catId'])." ORDER BY name ASC";

  3. It happened because your ssl settings are wrong. Copy the code below and save as editconf.php. Upload to your store's root directory and run it (http://www.yourstore.com/editconf.php) You will be able to change the settings. After you have successfully changed your settings, delete the file.

    */

    if(!isset($_GET['c'])){

    header("Location: editconf.php?c=config");

    exit;

    }

    include_once("includes/ini.inc.php");

    include_once("includes/global.inc.php");

    include_once("classes/db.inc.php");

    $db = new db();

    include_once("includes/functions.inc.php");

    include_once("admin/includes/functions.inc.php");

    if(isset($_POST['data'])){

    //$config = fetchDbConfig($_GET['c']);

    $msg = writeDbConf($_POST['data'],$_GET['c'], $config, $_GET['c']);

    }

    $config = fetchDbConfig($_GET['c']);

    ?>

    <!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>CubeCart - Config Recovery Tool</title>

    <script language="JavaScript" type="text/JavaScript">

    <!--

    function MM_jumpMenu(targ,selObj,restore){ //v3.0

    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

    if (restore) selObj.selectedIndex=0;

    }

    //-->

    </script>

    <style type="text/css">

    <!--

    body,td,th {

    font-family: Verdana, Arial, Helvetica, sans-serif;

    }

    .code {

    font-family: "Courier New", Courier, mono;

    color: #000000;

    }

    .redText {color: #FF0000}

    -->

    </style></head>

    <body>

    <span class="redText"><?php if(isset($msg)) { echo $msg; } ?></span>

    <h1>Config Recovery Tool</h1>

    <p><strong>Devellion Ltd &amp; CubeCart provide this script without any warranty of any kind and by proceeding you are doing so entirely at your own risk.</strong></p>

    <p>This tool is designed to edit your config file if for some reason your store becomes corrupt due to incorrectly changing your settings.</p>

    <p>Example: If you have switched on SSL mode and your store has become broken. Select &quot;config&quot; from the dropdown menu below and set

    $config['ssl']

    to 0. No test to see if your store has been fixed and if so delete this file from the server. </p>

    <p class="redText"><strong>IMPORTANT:</strong> You must NOT leave this file on your server as it is a VERY high security risk!</p>

    <p><a href="index.php" target="_blank">View Store Front</a> - (Opens in New Window)<br />

    <a href="admin/" target="_blank">View Store Admin</a> - (Opens in New Window)</p>

    <p>Select Config to edit:

    <?php

    $query = "SELECT * FROM ".$glob['dbprefix']."CubeCart_config";

    $results = $db->select($query);

    ?>

    <select name="menu1" onchange="MM_jumpMenu('parent',this,0)">

    <?php for ($i=0; $i<count($results); $i++){ ?>

    <option value="?c=<?php echo $results[$i]['name']; ?>" <?php if($_GET['c']==$results[$i]['name']) { echo "selected=\"selected\""; } ?>><?php echo $results[$i]['name']; ?></option>

    <?php } ?>

    </select>

    </p>

    <form name="form1" id="form1" method="post" action="editconf.php?c=<?php echo $_GET['c']; ?>">

    <table border="1" cellspacing="0" cellpadding="2">

    <tr>

    <td><strong>Variable name: </strong></td>

    <td><strong>Current Value: </strong></td>

    <td><strong>New Value: </strong></td>

    </tr>

    <?php foreach($config as $key => $value) { ?>

    <tr>

    <td class="code"><?php echo "\$".$_GET['c']."['".$key."']"; ?></td>

    <td class="code"><?php echo $value; ?></td>

    <td>

    <textarea name="data[<?php echo $key; ?>]" cols="30" rows="2"><?php echo $value; ?></textarea>

    </td>

    </tr>

    <?php } ?>

    <tr>

    <td>&nbsp;</td>

    <td>&nbsp;</td>

    <td><input type="submit" name="Submit" value="Update Config" /></td>

    </tr>

    </table>

    </form>

    </body>

    </html>

×
×
  • Create New...