Leaderboard
Popular Content
Showing content with the highest reputation on 08/14/2012 in all areas
-
Ставил месяц назад. Сейчас не вспомню точно. Ставил на 1.5.3.1. Были ошибки с регионом и какие-то поля невозможно было убрать. Как-то так...Простую регистрацию поставил, там вообще базу положил сначала. Но потом регион настроил и все норм.2 points
-
Купить этот https://opencartforum.com/files/file/324-%d0%bc%d0%be%d0%b4%d1%83%d0%bb%d1%8c-simple-%d1%83%d0%bf%d1%80%d0%be%d1%89%d0%b5%d0%bd%d0%bd%d0%b0%d1%8f-%d1%80%d0%b5%d0%b3%d0%b8%d1%81%d1%82%d1%80%d0%b0%d1%86%d0%b8%d1%8f-%d0%b8-%d0%b7%d0%b0%d0%ba%d0%b0%d0%b7/и забыть про проблему. Плюс - поставить логинзу - она бесплатна Модуль выше - мягко говоря не очень работает. Пробовал, ставил. В итоге снес.2 points
-
Я к тому, что я хочу купить. Но не хочу потом сидеть, допиливать.2 points
-
В форме конкурента такого бага нет. К.м.к. надо поправить.2 points
-
Столкнулся с проблемой плагиата, т.е. все что есть на моем сайте www.zhivayaeda.ru начали упорно копировать наши "конкуренты" :) зная что люди там не особо грамотные решил немного защитить контент от копирования. проверял в браузерах: IE, Mozilla, Opera, Chrome - во всех работает, копировать никак. защита от: выделение текста зацеплять текст или картинку правое кнопко мышки (меню) клавиши ctrl+c, ctrl+x и т.д. получилось что копировать можно только при сохранении страницы у себя на компе и открывании ее в редакторе... но это будут делать не все, а только те кому реально нужно именно ваше описание товара, а таких мало )) как это сделал я: нашел скрипты в нете, собрал все воедино, и вписал во все странички. теперь по порядку. находим файлы: ..корень сайта/catalog/controller/common ..корень сайта/catalog/controller/produkt там внес изменения в файлы типа produkt.php, category.php, header.php, footer.php, home.php и.т.д. сам код вставил перед строкой <?php : <body onkeypress="return catchControlKeys(event)"> <script type="text/javascript"> document.ondragstart = test; document.onselectstart = test; document.oncontextmenu = test; function test() { return false; } document.oncontextmenu; function catchControlKeys(event){ var code=event.keyCode ? event.keyCode : event.which ? event.which : null; if (event.ctrlKey){ // Ctrl+U if (code == 117) return false; if (code == 85) return false; // Ctrl+C if (code == 99) return false; if (code == 67) return false; // Ctrl+A if (code == 97) return false; if (code == 65) return false; } } </script> <script language=JawaScript> <!-- var message=""; ////////////////////////////// function clickIE() {if (document.all) {(message);return false;}} function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) { if (e.which==2||e.which==3) {(message);return false;}}} if (document.layers) {document.captureEvents(Event.mousedown);document.onmousedown=clickNS;} else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} document.oncontextmenu=new Function("return false") document.ondragstart=new Function("return false"); //запрет на перетаскивание document.onselectstart=new Function("return false"); //запрет на выделение элементов страницы function test(){ return false } //--> </SCRIPT> и в самом конце закрыл тегом </body> вот и все ) демка здесь: http://www.zhivayaeda.ru и здесь http://blog.zhivayaeda.ru/1 point
-
1 point
-
На оф сайте можно только paypal указать. Paypal из всех стран могут принимать только россияне. Дальше можно либо что-то покупать за paypal , либо выводить деньги. Как выводить? Юзайте гугл по слову payoneer Кстати, кто-нибудь может предложить из россиян свой paypal на взаимовыгодных условиях для продажи модулей на офсайте опенкарта?1 point
-
Обновление. Добавлена поддержка английского языка1 point
-
1 point
-
Если напрмер прописать в каком то TPL файле строку типа: <input type="button" value="<?php echo "кнопка_купить" ?>" onclick="addToCart('40');" class="button" /> то в любом месте вашего сайта, где будет нажата данная "Кнопка_купить", будет добавляться товар, с ID=40 ( iPhone)1 point
-
Да уж.Мне с моей 1.5.1.3 придётся ждать. krumax обещал сделать как освободится!1 point
-
Есть решение намного проще этого. открываем /catalog/view/theme/default/template/common/header.tpl И сразу после <head> вставляем <!-- Начнём с самого простого скрипта, ЗАЩИТА ОТ КЭШИРОВАНИЯ: --> <meta http-equiv="pragma" content="no-cache"/> <!-- Ну этот код очень полезный - Защита от перетаскивания и выделения текста. --> <script language=javaScript>document.onselectstart=new Function("return false"); document.ondragstart=new Function("return false");</script> <!-- Следующий скрипт - ЗАЩИТА ОТ КОПИРОВАНИИ ИНФОРМАЦИИ --> <script language=JavaScript> function notcopy(){ alert("Извините, но с этой страницы нельзя ничего копировать!") return false } /* НУ И ПОСЛЕДНИЙ СКРИПТ - ЗАЩИТА ОТ ПЕЧАТИ */ function atlpdp1() { for (wi=0; wi<document.all.length; wi++) { if (document.all[wi].style.visibility != 'hidden') { document.all[wi].style.visibility = 'hidden'; document.all[wi].id = 'atlpdpst' } } } function atlpdp2() { for (wi=0; wi<document.all.length; wi++) { if (document.all[wi].id == 'atlpdpst') document.all[wi].style.visibility = '' } } window.onbeforeprint = atlpdp1; window.onafterprint = atlpdp2; /* Выключение Правой кнопки мыши */ <!-- var message=""; function clickIE() {if (document.all) {(message);return false;}} function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) { if (e.which==2) { (message); return false;}}} if (document.layers) { document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS; }else{ document.onmouseup=clickNS; document.oncontextmenu=clickIE; } document.oncontextmenu=new Function("return false") --> </script> Теперь скопировать текст нельзя со всего сайта в целом и не надо прописывать что то в куче файлов. PS у меня версия 1.5.3.1 и это работает, на других не проверял1 point
-
.htaccess RewriteEngine On RewriteBase / RewriteRule ^папка_относительный путь/(.+).jpeg$ inc/block/wmark.php?src=/папка_относительный путь/$1.jpeg wmark.php <?php class watermark { function create_watermark( $main_img_obj, $text, $font, $r = 255, $g = 255, $b = 255, $alpha_level = 120 ) { $width = imagesx($main_img_obj); $height = imagesy($main_img_obj); $angle = -rad2deg(atan2((-$height),($width))); $text = " ".$text." "; $c = imagecolorallocatealpha($main_img_obj, $r, $g, $b, $alpha_level); $shadow = imagecolorallocatealpha($main_img_obj, 0, 0, 0, $alpha_level); $size = (($width+$height)/2)*2/strlen($text); $box = imagettfbbox ( $size, $angle, $font, $text ); $x = $width/2 - abs($box[4] - $box[0])/2; $y = $height/2 + abs($box[5] - $box[1])/2; imagettftext($main_img_obj,$size ,$angle, $x+2, $y+1, $shadow, $font, $text); imagettftext($main_img_obj,$size ,$angle, $x, $y, $c, $font, $text); return $main_img_obj; } } header("Content-type: image/jpeg"); $watermark = new watermark(); $img = imagecreatefromjpeg($_SERVER['DOCUMENT_ROOT'].$_GET['src']); $im=$watermark->create_watermark($img," ваш_сайт.ru ",$_SERVER['DOCUMENT_ROOT'].'/inc/block/geo.ttf',255,255,255,112); imagejpeg($im,NULL,75); imagedestroy($img); imagedestroy($im); ?> файл с шрифтом geo.ttf geo.ttf1 point
-
Прошу прощение, но в моём случае комментария нет... Что делать???Файл по пути system/library/mail.php выглядит так: <?php final class Mail { protected $to; protected $from; protected $sender; protected $subject; protected $text; protected $html; protected $attachments = array(); public $protocol = 'mail'; public $hostname; public $username; public $password; public $port = 25; public $timeout = 5; public $newline = "\n"; public $crlf = "\r\n"; public $verp = FALSE; public $parameter = ''; public function setTo($to) { $this->to = $to; } public function setFrom($from) { $this->from = $from; } public function addheader($header, $value) { $this->headers[$header] = $value; } public function setSender($sender) { $this->sender = html_entity_decode($sender); } public function setSubject($subject) { $this->subject = html_entity_decode($subject); } public function setText($text) { $this->text = $text; } public function setHtml($html) { $this->html = $html; } public function addAttachment($file, $filename = '') { if (!$filename) { $filename = basename($file); } $this->attachments[] = array( 'filename' => $filename, 'file' => $file ); } public function send() { if (!$this->to) { exit('Error: E-Mail to required!'); } if (!$this->from) { exit('Error: E-Mail from required!'); } if (!$this->sender) { exit('Error: E-Mail sender required!'); } if (!$this->subject) { exit('Error: E-Mail subject required!'); } if ((!$this->text) && (!$this->html)) { exit('Error: E-Mail message required!'); } if (is_array($this->to)) { $to = implode(',', $this->to); } else { $to = $this->to; } $boundary = '----=_NextPart_' . md5(time()); $header = ''; $header .= 'MIME-Version: 1.0' . $this->newline; if ($this->protocol != 'mail') { $header .= 'To: ' . $to . $this->newline; $header .= 'Subject: ' . '=?utf-8?B?'.base64_encode($this->subject).'?=' . $this->newline; } $header .= 'Date: ' . date("D, d M Y H:i:s O") . $this->newline; $header .= 'From: ' . '=?UTF-8?B?'.base64_encode($this->sender).'?=' . '<' . $this->from . '>' . $this->newline; $header .= 'Reply-To: ' . '=?utf-8?B?'.base64_encode($this->sender).'?=' . '<' . $this->from . '>' . $this->newline; $header .= 'Return-Path: ' . $this->from . $this->newline; $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline; $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline; if (!$this->html) { $message = '--' . $boundary . $this->newline; $message .= 'Content-Type: text/plain; charset="utf-8"' . $this->newline; $message .= 'Content-Transfer-Encoding: 8bit' . $this->newline . $this->newline; $message .= $this->text . $this->newline; } else { $message = '--' . $boundary . $this->newline; $message .= 'Content-Type: multipart/alternative; boundary="' . $boundary . '_alt"' . $this->newline . $this->newline; $message .= '--' . $boundary . '_alt' . $this->newline; $message .= 'Content-Type: text/plain; charset="utf-8"' . $this->newline; $message .= 'Content-Transfer-Encoding: 8bit' . $this->newline; if ($this->text) { $message .= $this->text . $this->newline; } else { $message .= 'This is a HTML email and your email client software does not support HTML email!' . $this->newline; } $message .= '--' . $boundary . '_alt' . $this->newline; $message .= 'Content-Type: text/html; charset="utf-8"' . $this->newline; $message .= 'Content-Transfer-Encoding: 8bit' . $this->newline . $this->newline; $message .= $this->html . $this->newline; $message .= '--' . $boundary . '_alt--' . $this->newline; } foreach ($this->attachments as $attachment) { if (file_exists($attachment['file'])) { $handle = fopen($attachment['file'], 'r'); $content = fread($handle, filesize($attachment['file'])); fclose($handle); $message .= '--' . $boundary . $this->newline; $message .= 'Content-Type: application/octetstream; name="' . basename($attachment['file']) . '"' . $this->newline; $message .= 'Content-Transfer-Encoding: base64' . $this->newline; $message .= 'Content-Disposition: attachment; filename="' . basename($attachment['filename']) . '"' . $this->newline; $message .= 'Content-ID: <' . basename($attachment['filename']) . '>' . $this->newline . $this->newline; $message .= 'X-Attachment-Id: ' . basename($attachment['filename']) . $this->newline . $this->newline; $message .= chunk_split(base64_encode($content)); } } $message .= '--' . $boundary . '--' . $this->newline; if ($this->protocol == 'mail') { ini_set('sendmail_from', $this->from); if ($this->parameter) { mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header, $this->parameter); } else { mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header); } } elseif ($this->protocol == 'smtp') { $handle = fsockopen($this->hostname, $this->port, $errno, $errstr, $this->timeout); if (!$handle) { exit('Error: ' . $errstr . ' (' . $errno . ')'); } else { if (substr(PHP_OS, 0, 3) != 'WIN') { socket_set_timeout($handle, $this->timeout, 0); } while ($line = fgets($handle, 515)) { if (substr($line, 3, 1) == ' ') { break; } } if (substr($this->hostname, 0, 3) == 'tls') { fputs($handle, 'STARTTLS' . $this->crlf); while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 220) { exit('Error: STARTTLS not accepted from server!'); } } if (!empty($this->username) && !empty($this->password)) { fputs($handle, 'EHLO ' . getenv('SERVER_NAME') . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 250) { exit('Error: EHLO not accepted from server!'); } fputs($handle, 'AUTH LOGIN' . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 334) { exit('Error: AUTH LOGIN not accepted from server!'); } fputs($handle, base64_encode($this->username) . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 334) { exit('Error: Username not accepted from server!'); } fputs($handle, base64_encode($this->password) . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 235) { exit('Error: Password not accepted from server!'); } } else { fputs($handle, 'HELO ' . getenv('SERVER_NAME') . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 250) { exit('Error: HELO not accepted from server!'); } } if ($this->verp) { fputs($handle, 'MAIL FROM: <' . $this->from . '>XVERP' . $this->crlf); } else { fputs($handle, 'MAIL FROM: <' . $this->from . '>' . $this->crlf); } $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 250) { exit('Error: MAIL FROM not accepted from server!'); } if (!is_array($this->to)) { fputs($handle, 'RCPT TO: <' . $this->to . '>' . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if ((substr($reply, 0, 3) != 250) && (substr($reply, 0, 3) != 251)) { exit('Error: RCPT TO not accepted from server!'); } } else { foreach ($this->to as $recipient) { fputs($handle, 'RCPT TO: <' . $recipient . '>' . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if ((substr($reply, 0, 3) != 250) && (substr($reply, 0, 3) != 251)) { exit('Error: RCPT TO not accepted from server!'); } } } fputs($handle, 'DATA' . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 354) { exit('Error: DATA not accepted from server!'); } // According to rfc 821 we should not send more than 1000 including the CRLF $message = str_replace("\r\n", "\n", $header . $message); $message = str_replace("\r", "\n", $message); $lines = explode("\n", $message); foreach ($lines as $line) { $results = str_split($line, 998); foreach ($results as $result) { if (substr(PHP_OS, 0, 3) != 'WIN') { fputs($handle, $result . $this->crlf); } else { fputs($handle, str_replace("\n", "\r\n", $result) . $this->crlf); } } } fputs($handle, '.' . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 250) { exit('Error: DATA not accepted from server!'); } fputs($handle, 'QUIT' . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 221) { exit('Error: QUIT not accepted from server!'); } fclose($handle); } } } } ?>-1 points
-
Постовые, покупайте только постовые, причем в правилах при создании предложения можете указать что пост должен быть тематическим, таим образом блогеры будут писать тематические посты и включать в них ссылку на ваш сайт. Выбирайте форумы с большйо посещаемостью, тогда пост будут репостить на другие блоги. Некоторые блогеры репостяться до 100 раз, в итоге за 200-300 рублей у вас около сотни хороших ссылок, причем они выглядят в разы естественней чем та же сапа.-1 points
-
-2 points