Livezilla butonunu taşımak istiyorum

naz_eg

OpenCart-TR
Katılım
7 May 2010
Mesajlar
29
Tepkime puanı
0
Puanları
0
Merhaba arkadaşlar. Livezilla butonunu menülerin altında bulunan Tab'ın en sağına (Advanced search yazan kısmın en sağına) yapıştırmak istiyorum fakat bir türlü beceremedim. Livezilla kodunu yerleştirdiğim modülün içinde bu var ama bir türlü oraya gitmiyor. Yardımcı olursanız sevinirim.

site adresim: www.cdkeyshere.com

Header.tpl dosyam:

Kod:
<?php if (!strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" xml:lang="<?php echo $lang; ?>">
<head>
<title><?php echo $title; ?></title>
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<base href="<?php echo $base; ?>" />
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php } ?>
<?php foreach ($links as $link) { ?>
<link href="<?php echo str_replace('&', '&', $link['href']); ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/cc_carbon_tab/stylesheet/stylesheet.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/cc_carbon_tab/stylesheet/ie6.css" />
<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js"></script>
<script>
DD_belatedPNG.fix('img, #header .div3 a, #content .left, #content .right, .box .top');
</script>
<![endif]-->
<?php foreach ($styles as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/thickbox/thickbox-compressed.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/thickbox/thickbox.css" />
<script type="text/javascript" src="catalog/view/javascript/jquery/tab.js"></script>
<?php foreach ($scripts as $script) { ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php } ?>
<script type="text/javascript"><!--
function bookmark(url, title) {
	if (window.sidebar) { // firefox
    window.sidebar.addPanel(title, url, "");
	} else if(window.opera && window.print) { // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} else if(document.all) {// ie
   		window.external.AddFavorite(url, title);
	}
}
//--></script>
</head>
<body>
<div id="container">
<div id="header">
  <div class="div1">
    <div class="div2">
      <?php if ($logo) { ?>
      <a href="<?php echo str_replace('&', '&', $home); ?>"><img src="<?php echo $logo; ?>" title="<?php echo $store; ?>" alt="<?php echo $store; ?>" /></a>
      <?php } ?>
    </div>
    <div class="div3"><a href="<?php echo str_replace('&', '&', $special); ?>" style="background-image: url('catalog/view/theme/cc_carbon_tab/image/special.png');"><?php echo $text_special; ?></a><a onclick="bookmark(document.location, '<?php echo addslashes($title); ?>');" style="background-image: url('catalog/view/theme/cc_carbon_tab/image/bookmark.png');"><?php echo $text_bookmark; ?></a><a href="<?php echo str_replace('&', '&', $contact); ?>" style="background-image: url('catalog/view/theme/cc_carbon_tab/image/contact.png');"><?php echo $text_contact; ?></a></div>
    <div class="div4"><a href="<?php echo str_replace('&', '&', $home); ?>" id="tab_home"><?php echo $text_home; ?></a>
      <?php if (!$logged) { ?>
      <a href="<?php echo str_replace('&', '&', $login); ?>" id="tab_login"><?php echo $text_login; ?></a>
      <?php } else { ?>
      <a href="<?php echo str_replace('&', '&', $logout); ?>" id="tab_logout"><?php echo $text_logout; ?></a>
      <?php } ?>
      <a href="<?php echo str_replace('&', '&', $account); ?>" id="tab_account"><?php echo $text_account; ?></a><a href="<?php echo str_replace('&', '&', $cart); ?>" id="tab_cart"><?php echo $text_cart; ?></a><a href="<?php echo str_replace('&', '&', $checkout); ?>" id="tab_checkout"><?php echo $text_checkout; ?></a></div>
    <div class="div5">
      <div class="left"></div>
      <div class="right"></div>
      <div class="center">
        <div id="search">
          <div class="div8"><?php echo $entry_search; ?>&nbsp;</div>
          <div class="div9">
            <?php if ($keyword) { ?>
            <input type="text" value="<?php echo $keyword; ?>" id="filter_keyword" />
            <?php } else { ?>
            <input type="text" value="<?php echo $text_keyword; ?>" id="filter_keyword" onclick="this.value = '';" onkeydown="this.style.color = '#000000'" style="color: #999;" />
            <?php } ?>
            <select id="filter_category_id">
              <option value="0"><?php echo $text_category; ?></option>
              <?php foreach ($categories as $category) { ?>
              <?php if ($category['category_id'] == $category_id) { ?>
              <option value="<?php echo $category['category_id']; ?>" selected="selected"><?php echo $category['name']; ?></option>
              <?php } else { ?>
              <option value="<?php echo $category['category_id']; ?>"><?php echo $category['name']; ?></option>
              <?php } ?>
              <?php } ?>
            </select>
          </div>
          <div class="div10">&nbsp;&nbsp;<a onclick="moduleSearch();" class="button"><span><?php echo $button_go; ?></span></a> <a href="<?php echo str_replace('&', '&', $advanced); ?>"><?php echo $text_advanced; ?></a></div>
        </div>
      </div>
    </div>
  </div>
  <div class="div6">
    <div class="left"></div>
    <div class="right"></div>
    <div class="center">
      <div id="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
        <?php echo $breadcrumb['separator']; ?><a href="<?php echo str_replace('&', '&', $breadcrumb['href']); ?>"><?php echo $breadcrumb['text']; ?></a>
        <?php } ?>
      </div>
      <div class="div7">
        <?php if ($currencies) { ?>
        <form action="<?php echo str_replace('&', '&', $action); ?>" method="post" enctype="multipart/form-data" id="currency_form">
          <div class="switcher">
            <?php foreach ($currencies as $currency) { ?>
            <?php if ($currency['code'] == $currency_code) { ?>
            <div class="selected"><a><?php echo $currency['title']; ?></a></div>
            <?php } ?>
            <?php } ?>
            <div class="option">
              <?php foreach ($currencies as $currency) { ?>
              <a onclick="$('input[name=\'currency_code\']').attr('value', '<?php echo $currency['code']; ?>'); $('#currency_form').submit();"><?php echo $currency['title']; ?></a>
              <?php } ?>
            </div>
          </div>
          <div style="display: inline;">
            <input type="hidden" name="currency_code" value="" />
            <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
          </div>
        </form>
        <?php } ?>
        <?php if ($languages) { ?>
        <form action="<?php echo str_replace('&', '&', $action); ?>" method="post" enctype="multipart/form-data" id="language_form">
          <div class="switcher">
            <?php foreach ($languages as $language) { ?>
            <?php if ($language['code'] == $language_code) { ?>
            <div class="selected"><a><img src="image/flags/<?php echo $language['image']; ?>" alt="<?php echo $language['name']; ?>" />&nbsp;&nbsp;<?php echo $language['name']; ?></a></div>
            <?php } ?>
            <?php } ?>
            <div class="option">
              <?php foreach ($languages as $language) { ?>
              <a onclick="$('input[name=\'language_code\']').attr('value', '<?php echo $language['code']; ?>'); $('#language_form').submit();"><img src="image/flags/<?php echo $language['image']; ?>" alt="<?php echo $language['name']; ?>" />&nbsp;&nbsp;<?php echo $language['name']; ?></a>
              <?php } ?>
            </div>
          </div>
          <div>
            <input type="hidden" name="language_code" value="" />
            <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
          </div>
        </form>
        <?php } ?>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript"><!-- 
function getURLVar(urlVarName) {
	var urlHalves = String(document.location).toLowerCase().split('?');
	var urlVarValue = '';
	
	if (urlHalves[1]) {
		var urlVars = urlHalves[1].split('&');

		for (var i = 0; i <= (urlVars.length); i++) {
			if (urlVars[i]) {
				var urlVarPair = urlVars[i].split('=');
				
				if (urlVarPair[0] && urlVarPair[0] == urlVarName.toLowerCase()) {
					urlVarValue = urlVarPair[1];
				}
			}
		}
	}
	
	return urlVarValue;
} 

$(document).ready(function() {
	route = getURLVar('route');
	
	if (!route) {
		$('#tab_home').addClass('selected');
	} else {
		part = route.split('/');
		
		if (route == 'common/home') {
			$('#tab_home').addClass('selected');
		} else if (route == 'account/login') {
			$('#tab_login').addClass('selected');	
		} else if (part[0] == 'account') {
			$('#tab_account').addClass('selected');
		} else if (route == 'checkout/cart') {
			$('#tab_cart').addClass('selected');
		} else if (part[0] == 'checkout') {
			$('#tab_checkout').addClass('selected');
		} else {
			$('#tab_home').addClass('selected');
		}
	}
});
//--></script>
<script type="text/javascript"><!--
$('#search input').keydown(function(e) {
	if (e.keyCode == 13) {
		moduleSearch();
	}
});

function moduleSearch() {
	url = 'index.php?route=product/search';
	
	var filter_keyword = $('#filter_keyword').attr('value')
	
	if (filter_keyword) {
		url += '&keyword=' + encodeURIComponent(filter_keyword);
	}
	
	var filter_category_id = $('#filter_category_id').attr('value');
	
	if (filter_category_id) {
		url += '&category_id=' + filter_category_id;
	}
	
	location = url;
}
//--></script>
<script type="text/javascript"><!--
$('.switcher').bind('click', function() {
	$(this).find('.option').slideToggle('fast');
});
$('.switcher').bind('mouseleave', function() {
	$(this).find('.option').slideUp('fast');
}); 
//--></script>


Livezilla kodum:

Kod:
<!-- http://www.LiveZilla.net Chat Button Link Code --><a href="javascript:void(window.open('http://cdkeyshere.com/livezilla/livezilla.php','','width=590,height=550,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes'))"><img src="http://cdkeyshere.com/livezilla/image.php?id=04" width="128" height="42" border="0" alt="LiveZilla Live Help"></a><noscript><div><a href="http://cdkeyshere.com/livezilla/livezilla.php" target="_blank">Start Live Help Chat</a></div></noscript><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- http://www.LiveZilla.net Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script type="text/javascript">var script = document.createElement("script");script.type="text/javascript";var src = "http://cdkeyshere.com/livezilla/server.php?request=track&output=jcrpt&nse="+Math.random();setTimeout("script.src=src;document.getElementById('livezilla_tracking').appendChild(script)",1);</script><!-- http://www.LiveZilla.net Tracking Code -->

Bununla beraber bir problemim daha var. Background u bir türlü değiştiremiyorum. Color denedim olmadı image denedim olmadı. Ne yaptıysam o gri tondaki rengi kaldıramıyorum, sanki yaptıklarım bu gri tonun altında kalıyor.
 

Xonar

OpenCart-TR
Katılım
6 May 2010
Mesajlar
14
Tepkime puanı
0
Puanları
0
Kod:
          <div class="div10">&nbsp;&nbsp;<a onclick="moduleSearch();" class="button"><span><?php echo $button_go; ?></span></a> <a href="<?php echo str_replace('&', '&', $advanced); ?>"><?php echo $text_advanced; ?></a></div>
        </div>

Search kodu bu, </div> etiketinden hemen önceye yapıştırırsanız eğer arama modülünün hemen ardına yerleştirmesi lazım.

Yapmadan önce dosyanın orjinalini yedeklemeyi unutmayın.
 

naz_eg

OpenCart-TR
Katılım
7 May 2010
Mesajlar
29
Tepkime puanı
0
Puanları
0
Dediğiniz yere ekledim fakat hem advanced search ün hemen dibinde çıktı, hem de button biraz aşağıya kaydı. Bunu en sağa ve ortalanmış şekilde yapmanın bir yolu yok mu acaba?
 

mirac

OpenCart-TR
Katılım
7 Şub 2010
Mesajlar
1,383
Tepkime puanı
0
Puanları
36
Yaş
42
Konum
Beykoz____
Web sitesi
www.notebook-cantasi.com
catalog\view\theme\default\template\common\header.tpl Aç..

Bul..
Kod:
<div class="div10">&nbsp;&nbsp;<a onclick="moduleSearch();" class="button"><span><?php echo $button_go; ?></span></a> <a href="<?php echo str_replace('&', '&', $advanced); ?>"><?php echo $text_advanced; ?></a></div>

Yanına Ekle..
Kod:
 <div class="zilla"><a href="javascript:void(window.open('http://cdkeyshere.com/livezilla/livezilla.php','','width=590,height=550,left=0,top=0,resizable=yes,menubar=no,location=no, status=yes,scrollbars=yes'))" style="background-image: url('catalog/view/theme/default/image/zilla.png');"></a></div>

catalog\view\theme\default\stylesheet\stylesheet.css Aç..

En alta ekle..
Kod:
#header .zilla a {
	margin-left: 10px;
	padding: 13px 125px 25px 5px;
	background-repeat: no-repeat;
	background-position: left center;
}
#header .zilla {
	float: right;
	padding-bottom: 0px;
}

\catalog\view\theme\default\image klasörüne zilla.png adında resmini ekle..


Arkaplan için css dosyasındaki alttaki kodu bul.. Kaç tane var bilmiyorum ama bir tane varsa arkaplan rengindir.. İster sil ister değiştir..

Bul..
Kod:
background: #EFEFEF;


Konu dışı: Bu nicki çok aradınızmı..
 

naz_eg

OpenCart-TR
Katılım
7 May 2010
Mesajlar
29
Tepkime puanı
0
Puanları
0
Teşekkürler hocam hemen deniycem.

aslında nick ucundanazicik tı ama kısa olsun diye böyle yazdım. :) Bu arada nick imizi değiştirme imkanımız varsa değiştirmek isterim.
 

naz_eg

OpenCart-TR
Katılım
7 May 2010
Mesajlar
29
Tepkime puanı
0
Puanları
0
Miraç hocam birşey sorayım bu arada. Dediklerinizi yaptım fakat zilla.png dosyasını anlayamadım. Şimdi oraya hangi resmi koymam gerekiyor, yani sadece online resmini koysam offline olduğumda resim nasıl değişecek, yardımcı olursanız sevinirim. Teşekkürler.
 

mirac

OpenCart-TR
Katılım
7 Şub 2010
Mesajlar
1,383
Tepkime puanı
0
Puanları
36
Yaş
42
Konum
Beykoz____
Web sitesi
www.notebook-cantasi.com
Link olarak verdiğim için değişmez..

Yanına Ekleyeceğin kodu bununla değiştir..
Kod:
<div class="zilla"><!-- http://www.LiveZilla.net Chat Button Link Code --><a href="javascript:void(window.open('http://cdkeyshere.com/livezilla/livezilla.php','','width=590,height=550,left=0,top=0,resizable=yes,menubar=no,location=no, ​status=yes,scrollbars=yes'))"><img src="http://cdkeyshere.com/livezilla/image.php?id=04" width="128" height="42" border="0" alt="LiveZilla Live Help"></a><noscript><div><a href="http://cdkeyshere.com/livezilla/livezilla.php" target="_blank">Start Live Help Chat</a></div></noscript><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- http://www.LiveZilla.net Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script type="text/javascript">var script = document.createElement("script");script.type="text/javascript";var src = "http://cdkeyshere.com/livezilla/server.php?request=track&output=jcrpt&nse="+Math.random();setTimeout("script.src=src;document.getElementById('livezilla_tracking').appendChild(script)",1);</script><!-- http://www.LiveZilla.net Tracking Code --></div>


css dosyasına eklediğin kodlardaki padding: 13px 125px 25px 5px; rakamlarla konumunu belirleyebilirsin..

Bu kodu eklersen image klasörüne resim atmana gerek yok.. Modulden çekmesi lazım..
 

naz_eg

OpenCart-TR
Katılım
7 May 2010
Mesajlar
29
Tepkime puanı
0
Puanları
0
Hocam o paddinglerle de oynadım ama sonuç aynı. Bir türlü yukarıya çekemiyorum. www.cdkeyshere.com dan bakabilirsiniz.
 

mirac

OpenCart-TR
Katılım
7 Şub 2010
Mesajlar
1,383
Tepkime puanı
0
Puanları
36
Yaş
42
Konum
Beykoz____
Web sitesi
www.notebook-cantasi.com
\catalog\view\theme\default\stylesheet\stylesheet.css Aç..

Bul..
Kod:
#search {
	padding-top: 7px;
	padding-left: 5px;
	color: #FFF;
	font-weight: bold;
}


Değiştir..
Kod:
#search {
	padding-left: 5px;
	color: #FFF;
	font-weight: bold;
}




Bul..
Kod:
#header .div8 {
	float: left; margin-top: 6px;
}
#header .div9 {
	float: left;
}
#header .div10 {
	float: left; 
	margin-top: 2px;	
}

Değiştir..
Kod:
#header .div8 {
	float: left; margin-top: 11px;
}
#header .div9 {
	float: left;margin-top: 8px;
}
#header .div10 {
	float: left; 
	margin-top: 7px;	
}

Sonra ayarla istediğin gibi..
 

naz_eg

OpenCart-TR
Katılım
7 May 2010
Mesajlar
29
Tepkime puanı
0
Puanları
0
Hay elinize sağlık hocam, bu sefer oldu, teşekkürler.

Hocam son bir sorum olacak. Şimdi bu koyduğum livezilla butonu görebileceğiniz üzere biraz büyük geldi. Header ı biraz genişletmek mümkün mü acaba?
 

admin

Administrator
Yönetici
Katılım
13 Ağu 2009
Mesajlar
3,200
Tepkime puanı
1
Puanları
38
Yaş
38
Konum
Bursa
Web sitesi
www.opencart-tr.com
css dosyasında #header .div5 .center { bu ve height: 40px; değeri ile buradaki resim dosyasının boyutlarını kendine göre değiştir. Bununla beraber #header .div5 .right { ve #header .div5 .left { değerlerini de değiştirmelisin.
 

kasir99

OpenCart-TR
Katılım
6 May 2019
Mesajlar
1
Tepkime puanı
0
Puanları
0
Miraç hocam birşey sorayım bu arada. Dediklerinizi yaptım fakat zilla.png dosyasını anlayamadım. Şimdi oraya hangi resmi koymam gerekiyor, yani sadece online resmini koysam offline olduğumda resim nasıl değişecek, yardımcı olursanız sevinirim. Teşekkürler. ~~> http://www.kasirqq.net/register.php
 
Üst