Jump to content

roban

Member
  • Posts

    3,238
  • Joined

  • Last visited

Posts posted by roban

  1. OK here is what you do: Upload your music file to your shop directory let's say the file is named God Bless America.wav and your store name is http://www.music.com

    <EMBED src="http://www.music.com/God Bless America.wav">

    Now, the above code will simply start the music with no way for the user to control it. If you want to add a few more controls do this:

    <EMBED src="http://www.music.com/God Bless America.wav" AUTOSTART="true" HIDDEN="false" LOOP="true" Width="145" Height="30">.

    this tells the music to play immediately (AUTOSTART)and continuously (LOOP) and will give the user a control.

    I have added this to my site http://www.teeshirtmart.com so you can see it work and here's what I did: I added the code to my \skins\Killer\styleTemplates\global\index/tpl file and uploaded it and I also uploaded the mp3 to my site directory. Here is my index.tpl:

    <!-- BEGIN: body -->

    <!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={VAL_ISO}" />

    <title>TeeShirtMart, The T Shirt Store</title>

    <meta name="description" content="Teeshirtmart-Only the finest quality T-Shirts in the World! 100% Satisfaction Guaranteed.Immediate shipping." />

    <meta name="keywords" content="tshirts, t-shirts, tee shirts, tees, t-shirt, tshirt, shirts, custom t-shirts, customized t-shirts, sweatshirts, children's t-shirts, shirt, shirts, customized teeshirts, custom t-shirts, custom merchandise, custom clothing" />

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

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

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

    </head>

    <body>

    <div id="pageSurround">

    <div id="topHeader">

    </div>

    </div>

    </div>

    <div id="subSurround">

    {CATEGORIES}

    <table border="0" cellspacing="0" width="100%" cellpadding="0">

    <tr valign="top">

    <td width="175">

    {SHOPPING_CART}

    <div id="searchbox">

    {SEARCH_FORM}

    </div>

    {LANGUAGE}

    </td>

    <td style="padding: 0px 5px 0px 5px;">{PAGE_CONTENT}</td>

    <td width="175">

    <div id="sessionBox">

    <div style="padding: 0px 5px 0px 5px; margin: 0px;">

    {SESSION}

    {RANDOM_PROD}

    {POPULAR_PRODUCTS}

    {SALE_ITEMS}

    <EMBED src="http://www.teeshirtmart.com/Track05.mp3" AUTOSTART="false" HIDDEN="false" LOOP="true" Width="145" Height="30">

    </td>

    </tr>

    </table>

    </div>

    {SITE_DOCS}

    </div>

    <font size="-1"><div align="center">Web Master<a href="http://www.roban.net"> Computer Services of East Hampton</a></font></div>

    </body>

    <!-- CQ Counter code start -->

    <script type="text/javascript" language="javascript"><!--

    _d=document; _n=navigator; _t=new Date(); function t() { _d.write(

    "<img src=\"http://us.2.cqcounter.com/cgi-bin/c?_id=teemart&_z=0&_r="+

    _r+"&_c="+_c+"&_j="+_j+"&_t="+(_t.getTimezoneOffset())+"&_k="+_k+

    "&_l="+escape(_d.referrer)+"\" width=70 height=15 "+

    "border=0>");} _c="0"; _r="0"; _j="U"; _k="U"; _d.cookie="_c=y";

    _d.cookie.length>0?_k="Y":_k="N";//--></script>

    <script type="text/javascript" language="javascript1.2"><!--

    _n.javaEnabled()?_j="Y":_j="N";_b=screen; _r=_b.width;

    _n.appName!="Netscape"?_c=_b.colorDepth : _c=_b.pixelDepth;//--></script>

    <a title="Free Counter" href="http://cqcounter.com/?_id=teemart&_lo=us2"

    target="_top"><script type="text/javascript" language="javascript"><!--

    t(); //--></script></a><noscript><img width="70" height="15" border="0"

    alt="Counter" src="http://us.2.cqcounter.com/cgi-bin/c?_id=teemart&_z=0"><br>

    <a title="Web Counter" href="http://cqcounter.com/">Hit Counter</a></noscript>

    <!-- CQ Counter code end -->

    </html>

    <!-- END: body -->

  2. I wanted to add a hover feature to the category tabs and also when you click on tabs they would seem to magnify. I used a hover text in red but you can change to any color you like. Add this to the bottom of style.css:

    }

    .txtCat:hover {

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

    font-size: 12px;

    font-weight: normal;

    color: #FF0000;

    text-decoration: none;

    }

    You can see it work http://www.teeshirtmart.com

  3. You can do this easily from PHPMyAdmin. Go into your CC database and open cubecart inventory. Next, check all boxes and then click on 'Browse' Next, click on the 'name' value and it will automatically sort.

  4. Anyone know anything about using a data feed in CC? I have a feed from a supplier that is an Excel file with 8000 products and I can use any or all of it. The file contains the links so according to the wholesaler it just needs to be uploaded.

  5. This is a new gd.inc that booker came up with and replaces the original that had a problem. Depending on when you downloaded your CC 3, it might work for you.

    Replace the original classes/gd.inc with this:

    <?php

    /*

    +--------------------------------------------------------------------------

    | CubeCart v3.0.2

    | ========================================

    | by Alistair Brookbanks

    | CubeCart is a Trade Mark of Devellion Limited

    | © 2005 Devellion Limited

    | Devellion Limited,

    | Westfield Lodge,

    | Westland Green,

    | Little Hadham,

    | Nr Ware, HERTS.

    | SG11 2AL

    | UNITED KINGDOM

    | http://www.devellion.com

    | UK Private Limited Company No. 5323904

    | ========================================

    | Web: http://www.cubecart.com

    | Date: Friday, 12 August 2005

    | Email: info (at) cubecart (dot) com

    | License Type: CubeCart is NOT Open Source Software and Limitations Apply

    | Licence Info: http://www.cubecart.com/site/faq/license.php

    +--------------------------------------------------------------------------

    | gd.inc.php

    | ========================================

    | GD Class

    +--------------------------------------------------------------------------

    */

    class thumbnail

    {

    var $img;

    function thumbnail($imgfile)

    {

    global $config;

    //detect image format

    $this->img["format"]=ereg_replace(".*\.(.*)$","\\1",$imgfile);

    $this->img["format"]=strtoupper($this->img["format"]);

    if($config['gdversion']>0){

    if ($this->img["format"]=="JPG" || $this->img["format"]=="JPEG") {

    //JPEG

    $this->img["format"]="JPEG";

    $this->img["src"] = ImageCreateFromJPEG ($imgfile);

    } elseif ($this->img["format"]=="PNG") {

    //PNG

    $this->img["format"]="PNG";

    $this->img["src"] = ImageCreateFromPNG ($imgfile);

    } elseif ($this->img["format"]=="GIF") {

    //GIF

    $this->img["format"]="GIF";

    $this->img["src"] = ImageCreateFromGIF ($imgfile);

    } else {

    //DEFAULT

    echo "Not Supported File! Thumbnails can only be made from .jpg and .jpeg file types!";

    exit();

    }

    @$this->img["width"] = imagesx($this->img["src"]);

    @$this->img["height"] = imagesy($this->img["src"]);

    //default quality jpeg

    $this->img["quality"]=80;

    } else {

    return FALSE;

    }

    }

    function size_width($size=100)

    {

    //width

    $this->img["width_thumb"]=$size;

    @$this->img["height_thumb"] = ($this->img["width_thumb"]/$this->img["width"])*$this->img["height"];

    }

    function size_auto($size=100)

    {

    //size

    if ($this->img["width"]>=$this->img["height"]) {

    $this->img["width_thumb"]=$size;

    @$this->img["height_thumb"] = ($this->img["width_thumb"]/$this->img["width"])*$this->img["height"];

    } else {

    $this->img["height_thumb"]=$size;

    @$this->img["width_thumb"] = ($this->img["height_thumb"]/$this->img["height"])*$this->img["width"];

    }

    }

    function jpeg_quality($quality=80)

    {

    //jpeg quality

    $this->img["quality"]=$quality;

    }

    function show()

    {

    global $config;

    @Header("Content-Type: image/".$this->img["format"]);

    if ($config['gdversion']==2) {

    $this->img["des"] = imagecreatetruecolor($this->img["width_thumb"],$this->img["height_thumb"]);

    @imagecopyresampled ($this->img["des"], $this->img["src"], 0, 0, 0, 0, $this->img["width_thumb"],$this->img["height_thumb"], $this->img["width"], $this->img["height"]);

    } elseif ($config['gdversion']==1) {

    $this->img["des"] = imagecreate($this->img["width_thumb"],$this->img["height_thumb"]);

    @imagecopyresized ($this->img["des"], $this->img["src"], 0, 0, 0, 0, $this->img["width_thumb"],$this->img["height_thumb"], $this->img["width"], $this->img["height"]);

    }

    if ($config['gdversion']>0) {

    if ($this->img["format"]=="JPG" || $this->img["format"]=="JPEG") {

    //JPEG

    imageJPEG($this->img["des"],"",$this->img["quality"]);

    } elseif ($this->img["format"]=="PNG") {

    //PNG

    imagePNG($this->img["des"]);

    } elseif ($this->img["format"]=="GIF") {

    //GIF

    imageGIF($this->img["des"]);

    }

    imagedestroy($this->img["des"]);

    }

    }

    function save($save="")

    {

    global $config;

    if ($config['gdversion']==2) {

    $this->img["des"] = imagecreatetruecolor($this->img["width_thumb"],$this->img["height_thumb"]);

    @imagecopyresampled ($this->img["des"], $this->img["src"], 0, 0, 0, 0, $this->img["width_thumb"], $this->img["height_thumb"], $this->img["width"], $this->img["height"]);

    } elseif ($config['gdversion']==1) {

    $this->img["des"] = imagecreate($this->img["width_thumb"],$this->img["height_thumb"]);

    @imagecopyresized ($this->img["des"], $this->img["src"], 0, 0, 0, 0, $this->img["width_thumb"], $this->img["height_thumb"], $this->img["width"], $this->img["height"]);

    }

    if ($config['gdversion']>0) {

    if ($this->img["format"]=="JPG" || $this->img["format"]=="JPEG") {

    //JPEG

    imageJPEG($this->img["des"],$save,$this->img["quality"]);

    } elseif ($this->img["format"]=="PNG") {

    //PNG

    imagePNG($this->img["des"],$save);

    } elseif ($this->img["format"]=="GIF") {

    //GIF

    imageGIF($this->img["des"],$save);

    }

    imagedestroy($this->img["des"]);

    @chmod($this->img["des"], 0644);

    }

    }

    }

    ?>

  6. Hello nickbme06 and welcome to CC. It's always nice to say hello so people know who they are helping.

    Did you check your Admin\upload image\browse server to see if the file exists. New install notwithstanding this wouldn't be the first time this has happened.

    Also try the board search function before posting. You never know what you'll find as alot of folks have had similar problems.

    Cheers.

  7. \skins\yourskin\styleSheets\style.css

    change:

    a.txtSession {

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

    font-size: 70%;

    color: #3366CC;

    text-decoration: none;

    to:

    a.txtSession {

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

    font-size: 70%;

    color: #FFFFFF;

    text-decoration: none;

  8. Whoops!

    ERROR 404

    The URL that you requested, could not be found. Perhaps you either mistyped the URL or we have a broken link.

    We have logged this error and will correct the problem if it is a broken link, and notify you after the webmaster has been flogged.

    This site does not allow directory listings. Be sure you have typed in the appropriate *.htm file name.

    example: http://thissite.com/directory/index.htm

    Please Click Here to Return to our Hom

×
×
  • Create New...