Просмотр сообщений

В этом разделе можно просмотреть все сообщения, сделанные этим пользователем.


Сообщения - Юрий

Страницы: 1 [2] 3 4 ... 18
16
Вот модуль когда то делал. Очень удобно делать фотоальбомы http://legosp.net/product/mambot_galery_lego-58/
Так же делал простой фотоальбом. Вот пример http://test.vo-stok.com.ua/photo/


17

Размер фото хит продаж и горячие новинки ищем  файл \includes\admin\sub\includes/shopping_cart.php
редактируем: img_resize("./products_pictures/" . $new_pic_name . ".jpg", "./products_pictures/" . $new_pic_name . "-H.jpg", 130, 130, CONF_IMAGE_COLOR);

Что то я не припоминаю что бы был такой файл....
 \includes\admin\sub\includes/shopping_cart.php 

18
Я уже дорабатывал)     http://vo-stok.com.ua/search_expanded/
Просто в шаблоне проверку сделайте
{if isset($products_to_show_count) &&  $products_to_show_count}
...
{else}
Нет товара
{/if}
Как то так. Точно не помню...


19
Чет я не подумал) Написал что первое в голову пришло)
Закиньте этот файл в папку includes что в Вашей теме, а все что до этого делали отмените.

20
в includes/search_simple.php поправьте проверку
if (isset($_GET["search_expanded"]))
на
if (isset($_GET["search_expanded"]) || (!$categoryID && !isset($productID)))

21
Когда то устранял эту ошибку, но уже не помню что там было. В итоге полностью его переписал...
http://vo-stok.com.ua/search_expanded/

22
Общие вопросы / Re: Виджет Вконтакте...
« : Мая 30, 2013, 05:40:07 pm »
В админке стоит галочка Оформление->Выводить online контакты ?

23
Общие вопросы / Re: Как вставить PHP
« : Мая 21, 2013, 04:06:13 pm »
<?php

function GetContent$url )
{
$server strtolowerpreg_replace ("~^(?:http://|//)?(?:[a-z0-9\-_]+\.)*([a-z0-9\-_]+\.[a-z0-9\-_]+).*?$~is""$1"$url ) );
$host strtolowerpreg_replace ("~^(?:http://|//)?((?:[a-z0-9\-_]+\.)+[a-z0-9\-_]+).*?$~is""$1"$url ) );
$ruri preg_replace ("~^(?:http://)?(?:[a-z0-9\-_]+\.)+[a-z0-9\-_]+(.*)$~is""$1"$url );

$socket = @fsockopen$server80$errno$errstr) or $socket false;

if (!$socket)
return @file_get_contents ($url);

$request "GET " $ruri " HTTP/1.0\r\n";
$request .= "Host: " $host "\r\n";
$request .= "Accept: text/html, application/xml;q=0.9, */*;q=0.1\r\n";
$request .= "Accept-Charset: windows-1251, utf-8;q=0.6, *;q=0.1\r\n";
$request .= "Accept-Encoding: deflate, identity, *;q=0\r\n";
$request .= "Accept-Language: ru\r\n";
$request .= "Connection: close\r\n";
$request .= "Keep-Alive: 300\r\n";
$request .= "Expires: Thu, 01 Jan 1970 00:00:01 GMT\r\n";
$request .= "Cache-Control: no-store, no-cache, must-revalidate\r\n";
$request .= "Pragma: no-cache\r\n";
$request .= "Cookie: income=1\r\n";
//$request .= "Referer: http://" . $ref . "/\r\n";
$request .= "User-Agent: Mozilla/5.0 (compatible; MSIE 6.0; Windows 98)\r\n";
$request .= "\r\n";
fputs($socket$request);

$fcont "";
while ($line = @fgets ($socket1024))
$fcont .= $line;

fclose($socket);

$pos strpos $fcont"\r\n\r\n" );
if ($pos !== false)
$fcont substr $fcont$pos );

if (!$fcont)
$fcont = @file_get_contents ($url);

return $fcont;
}

function 
GetAdvert()
{
$m_host $_SERVER['HTTP_HOST'];
$m_ruri $_SERVER['REQUEST_URI'];

$dbfile dirname(__FILE__)."/advert.db";
if (isset($_GET['cleardbfile'])) @unlink ($dbfile);
$ftime = (file_exists($dbfile) ? filemtime$dbfile ):0);
$elapsed time() - $ftime 3600;

//Если данные устарели, обновляем
if ($elapsed)
{
$fcont = @GetContent("http://linksbase.ru/links/".$m_host) or $fcont "";
//@file_put_contents( $dbfile, $fcont );


$fptr fopen($dbfile"w");
@fwrite($fptr$fcont);
@fclose($fptr);
}
else
$fcont = @file_get_contents$dbfile );

$links "<!--linksbase-->";

$uricell "#uri:#always#lnk:#";
$pos strpos $fcont$uricell );
if ($pos !== false)
{
$pos += strlen $uricell );
$end strpos $fcont"#uri:#"$pos );
$end = ($end !== false) ? $end strlen ($fcont);
$links substr $fcont$pos$end-$pos );
}

$uricell "#uri:#".$m_ruri."#lnk:#";
$pos strpos $fcont$uricell );
if ($pos !== false)
{
$pos += strlen $uricell );
$end strpos $fcont"#uri:#"$pos );
$end = ($end !== false) ? $end strlen ($fcont);
$links substr $fcont$pos$end-$pos );
}

//Выводим текст
return $links;
}


$smarty->assign("GetAdvert",GetAdvert()); 

?>
Попробуйте так. Но честно говоря скрипт  не совсем понятный...


24
Общие вопросы / Re: Как вставить PHP
« : Мая 19, 2013, 03:30:43 am »
./cfg/error.log еще свой покажите

25
Общие вопросы / Re: Как вставить PHP
« : Мая 16, 2013, 03:35:06 pm »
Покажите advert.php

26
Файл без ошибок скопировался? Версия php какая?

27
Общие вопросы / Re: Как вставить PHP
« : Мая 14, 2013, 01:23:45 pm »
Я уже писал вам но что то сообщение удалилось....
Я описывал 2 способа, но уже лень много писать дак вот лучший:
1) В  в advert.php в самом низу перед ?>  Добавляем стоку
$smarty->assign("GetAdvert",GetAdvert());2) Сохраняем и файл копируем в папку ./css/css_ваша_тема/includes/ (Если папки нет создаем)
3) Там где нужно вывести в шаблоне вставляете {$GetAdvert}


28
Добавьте еще после
if (isset($categoryID) && $categoryID)  $sql_hit .=' and P.categoryID='.$categoryID;строку
 
if ( CONF_SHOW_PRODUCT_INSTOCK )  $sql_hit .=' and P.in_stock > 0';

29
Общие вопросы / Re: не работает корзина
« : Апреля 25, 2013, 08:50:27 pm »
У вас почему то не работает ajax на сайте. Так все вроде правильно. Можете попробовать прописать полный путь к скриптам.
url: "./includes/shopping_cart.php", на
url: "http://moto86.ru/includes/shopping_cart.php",


30
Общие вопросы / Re: не работает корзина
« : Апреля 24, 2013, 02:47:53 pm »
добавьте  ф-и   в core/js/js_scripts.js
после
poststr = "shopping_cart=yes&add2cart=" + curid + "&type=ajax&kol="+$kol+"&opt="+option;        //Формируем POSTпишем
alert( poststr );
и чуть ниже перед
if (response==-1) {alert('Перевышено максимально возможное количество данного товара'); return false;}добавляем
 alert( response );


Это выведит информацию о запросе и ответе. Дальше уже будет видно что не так. Мне кажется что что то с пхп

Страницы: 1 [2] 3 4 ... 18