Jump to content

convict

Member
  • Posts

    1,302
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by convict

  1. Joker is absolutely right.

    Applications that support Unicode are often capable of displaying multiple languages and scripts within the same document. In a multilingual office or business setting, Unicode's importance as a universal character set cannot be overlooked. Unicode is the only practical character set option for applications that support multilingual documents.

    UTF-8 is a multibyte encoding in which each character can be encoded in as little as one byte and as many as four bytes. Most Western European languages require less than two bytes per character. For example, characters from Latin-based scripts require only 1.1 bytes on average. Greek, Arabic, Hebrew, and Russian require an average of 1.7 bytes. Finally, Japanese, Korean, and Chinese typically require three bytes per character.

    CubeCart was born in the UK - UTF-8 is useless.

    @Gaijin you are right that code page for language files is stored somewhere, but one side is translated file and the other database contents. [skus is v CC nacpat rukse znaky do databazy s CP1250]

    :D

  2. Hi, here is the flash header implementation, works correct in FF and IE (tested on 6).

    LEGEND skin

    replace

      <div id="topHeader">
    
     	 <div style="padding-top: 72px;">{SEARCH_FORM}</div>
    
     	 <div>{SESSION}</div>
    
      </div>
    
    
    with 
      <div id="topHeader">     <div>   <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="746" height="100">         <param name="movie" value="http://gaslogset.com/header.swf" />         <param name="quality" value="high" />         <embed src="http://gaslogset.com/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="746" height="100"></embed></object>     </div>     <div style="position:relative; float:left; padding-left:5px">{SEARCH_FORM}</div>     <div style="position:relative; float:right; padding-right:5px">{SESSION}</div>   </div>
    red value of width have to be #pageSurround width - 2px red value of height is your choice layout.css #topHeader remove> padding-right, background-image add> background-color (could be dark collor) modify> height - hieght of your flash logo + 21px style.css .searchBtn replace height: 20px with _height: 16px - dont forget that "_" must be here! (non-standard style property but not for IE ;) ) .searchBox add> height: 14px; form, ol, ul add> , .searchBox, .searchBtn (could be - form, ol, ul, .searchBox, .searchBtn { ) searchForm.tpl Just delete line break between hidden input and button, because of IE. (WHITE SPACE issue)

    Final result using scubadus flash logo :unsure: :

    legend.jpg

    <input type="hidden" name="act" value="viewCat" /><input name="Submit" type="submit" class="searchBtn" value="{LANG_GO}" />
  3. I have never sugested to change ANY setting for entire server :(.

    TVBanks98 solution cant be used generally, but in situations like this may be helps.

    Php ini_set() sets the value of the given configuration option. The configuration option will keep this new value during the script's execution, and will be restored at the script's ending.

    Keep in mind ;)

  4. Is there a way of adding {SEARCH_FORM} to my main page?

    Just look at content of search box template how form variables are named and write your own search form code like this

    <form action="<CC3 folder here>index.php" method="get">
    
    <input name="searchStr" type="text" value="">
    
    <input type="hidden" name="act" value="viewCat">
    
    <input name="Submit" type="submit" value="Search">
    
    </form>

    just incorporate into main page, apply your own styles and label

  5. The only thing I'm not sure about is what priceFormat() would return if $salePrice was FALSE.
    return FALSE {blank character on screen}

    Code optimization is required as you are writting like this

    $salePrice = salePrice($randProd[0]['price'], $randProd[0]['sale_price']);
    
    
    
    if($salePrice==FALSE){
    
    
    
     $random_prod->assign("TXT_PRICE",priceFormat($randProd[0]['price']));
    
    
    
    } else {
    
    
    
     $random_prod->assign("TXT_PRICE","<span class='txtOldPrice'>".priceFormat($randProd[0]['price'])."</span>");
    
    
    
    }
    
    
    
    $random_prod->assign("TXT_SALE_PRICE", priceFormat($salePrice));

    last line - blank is much better as unassigned ;)

  6. piece of code is below

    <?php 
    
    /*
    
    +--------------------------------------------------------------------------
    
    |   CubeCart v3.0.5
    
    |   ========================================
    
    |   by Alistair Brookbanks
    
    |	CubeCart is a Trade Mark of Devellion Limited
    
    |   (c) 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: Thursday, 13 October 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
    
    +--------------------------------------------------------------------------
    
    |	session.php
    
    |   ========================================
    
    |	Core Session Management	
    
    +--------------------------------------------------------------------------
    
    */
    
    
    
    if(!isset($config)){
    
    	echo "<html>\r\n<head>\r\n<title>Forbidden 403</title>\r\n</head>\r\n<body><h3>Forbidden 403</h3>\r\nThe document you are requesting is forbidden.\r\n</body>\r\n</html>";
    
    	exit;
    
    }
    
    
    
    $sessionDomain = substr($GLOBALS['rootRel'],0, strlen($GLOBALS['rootRel'])-1);
    
    @ini_set("session.cookie_path",$sessionDomain);
    
    session_start();
    
    
    
    if( ($config['offLine']==1 && isset($_SESSION['ccAdmin']) && $config['offLineAllowAdmin']==0) || ($config['offLine']==1 && !isset($_SESSION['ccAdmin']))) {
    
    	header("Location: offLine.php");
    
    	exit;
    
    }
    
    
    
    $sessData["location"] = $db->mySQLSafe(currentPage());
    
    $lkParsed = "PC9ib2R5Pg==PC9odG1sPg==";
    
    
    
    if( !isset($_SESSION['ccUser']) && (isset($_COOKIE['ccUser']) || isset($_GET['ccUser'])) ){
    
    	
    
    	if(isset($_COOKIE['ccUser'])){
    
    	
    
      $sessId = base64_decode($_COOKIE['ccUser']);
    
    	
    
    	} elseif(isset($_GET['ccUser'])){
    
    	
    
      $sessId = $_GET['ccUser'];
    
    	
    
    	}

    Code that i have mentioned is here :unsure: CC3 v3.0.5

×
×
  • Create New...