MacCentre
Форум: Mac и Mac OS X
Тема: Осваиваюсь на Льве
Страницы: 1 2 [3]
[Ответить]
Zlyden [02.08.2011 22:26] :
IgorApp писал(а):
А есть возможность с 1 по 4 вопрос ответить?
Можна. Если не ответить, то прокомментировать :) :
IgorApp писал(а):
1. Safari при каждом обращение на Яндекс скачивает yandex_widget.php, просто скачивает - как избавиться?
Судя по всем, здесь никто не встречал такой проблемы -- воспользуйтесь Гуглом для поисков собратьев по несчастью (есть же шанс, что это не только у вас?) или попробуйте самостоятельно решить трабл (и потом отписать сюда решение).
IgorApp писал(а):
2. Жаль пульт ДУ - подскажите сторонние программы для ДУ, типа Софа?
Ничо не понятно. Что не так с пультом ДУ и почему его жалко?
IgorApp писал(а):
3. Нет возможности установить ХРюшу (было надо на пару дней - проблема 1С: Торговля) - кто знает решение - или только 7?
Ничего не могу сказать. Вопрос к тем, кто знает кто такой "ХРюша" и что такое "1С: Торговля".
IgorApp писал(а):
4. Нет возможности установки драйверов на 7 на 64 бита - это временно?
Ничего не понятно.
Grafovich [02.08.2011 23:35] :
IgorApp писал(а):
1. Safari при каждом обращение на Яндекс скачивает yandex_widget.php
просто фантастика... меню Safari -> сброс Safari
IgorApp писал(а):
2. Жаль пульт ДУ - подскажите сторонние программы для ДУ, типа Софа?
Remote Mouse 1.0.1, iRed2 2.1.1, iRed Lite 1.0.1, SofaControl 2.9.5, Telekinesis 1.0, nessViewer 2.8.4, еще?
IgorApp писал(а):
3. Нет возможности установить ХРюшу (было надо на пару дней - проблема 1С: Торговля) - кто знает решение - или только 7?
не пробовал, но похоже только семерка
IgorApp писал(а):
4. Нет возможности установки драйверов на 7 на 64 бита - это временно?
первый раз слышу, откуда дрова ставили то?
IgorApp писал(а):
5. Во всех программах (word, textedit и т.п.) открывается постоянно - как и в Safari открывается только последний (даже "закорзиненый") - но не новый документ (страница) - есть ли решение?
см. скриншот. галочку снимите, должно больше не открываться.
[К сообщению приложены файлы: Screen Shot 2011-08-03 at 12.32.51 AM.png (108 кб)]
паша кошляк [03.08.2011 00:21] :
IgorApp писал(а):
думал все будет проще: искусство идет в массы!
во-во…
IgorApp [03.08.2011 10:49] :
Всем большое спасибо! Все вроде-как налаживается, но скачивается он и вроде как уменя одного?
Это текст виджета Яндекс:
<?php
header ("Content-type: text/html; charset=windows-1251;");
$expires = 60*10;
header("Pragma: public");
header("Cache-Control: maxage=".$expires);
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');
?>
<html>
<head>
<style type="text/css">
body {
background-color:transparent;
text-align:center;
}
#toVal{
color:blue;
}
td {
vertical-align: top;
}
table {
width: 100%;
}
.gamehandle {
width: 100%;
height: auto;
text-align: left;
float: left;
font-family: Verdana;
font-size: 10px;
border-bottom: 1px dotted silver;
margin: 0px;
margin-top: 7px;
padding-bottom: 7px;
color: #000066;
}
.gamehandle a {
color: blue;
}
.gameimg {
float: left;
width: 80px;
height: 80px;
margin-right: 4px;
margin-bottom: 3px;
}
.gameimg img {
width: 75px;
height: 75px;
}
</style>
<script type="text/javascript" src="http://img.yandex.net/webwidgets/1/WidgetApi.js"></script>
<script type="text/javascript">
widget.onload = function(){
widget.adjustIFrameHeight();
}
</script>
</head>
<?php
if (!$limit)
{
$limit = 2;
}
if (!$gt) $gt = 0;
if (!$ot) $ot = 2;
if ($gt == "0") {
$s = "";
}
else {
$s = "AND games.game_section='".$gt."'";
}
if ($ot == "0") {
$r = "ORDER BY games.id DESC";
}
else
if ($ot == "1") {
$r = "ORDER BY games.play_count DESC";
}
else
if ($ot == "2") {
$r = "ORDER BY RAND()";
}
$dd = date ("Ymdh");
function string_limit_words($string, $word_limit) {
$words = explode(' ', $string);
return implode(' ', array_slice($words, 0, $word_limit));
}
$requested_url = $url;
$requested_file =$dd.$limit.$gt.$ot.".html";
$cachefolder = "wdgt/";
$cachefile = $cachefolder.$requested_file;
// echo $cachefile."<br />";
if (!file_exists($cachefile) || (filesize($cachefile) === 0))
{
require_once "core.php";
$result = dbquery ("SELECT * FROM games LEFT JOIN sections ON games.game_section=sections.id WHERE sections.section_alias<>'system' $s $r LIMIT $limit");
while ($data = dbarray ($result))
{
$desc = string_limit_words ($data[game_description],50);
$w .= "<div class='gamehandle'><div class='gameimg'><a href='http://www.flashigry.com/ru/flash/".$data[section_alias]."/".$data[trans_game].".html' target='_blank'><img src='http://www.flashigry.com/pictures/".$data[img_path]."' style='border-width: 0px;' /></a></div>
<a href='http://www.flashigry.com/ru/flash/".$data[section_alias]."/".$data[trans_game].".html' target='_blank' style='color: #666699; font-weight: bold;'>".($data[game_name])."</a>".($sd == "true" ? "<br />".$desc : "")."</div>";
}
$page = $w;
$f = fopen ($cachefile, "w");
fwrite ($f, $page);
fclose ($f);
} else {
$f = fopen ($cachefile, "r");
$w = fread ($f, filesize($cachefile));
fclose ($f);
}
?>
<body style="margin:0;padding:0px; overflow: scroll;">
<table style='height: 100%; margin: 0px; padding: 0px;'>
<tr><td>
<?=$w?>
</td></tr>
</table>
</body>
</html>
Eugens [03.08.2011 11:10] :
IgorApp писал(а):
Всем большое спасибо! Все вроде-как налаживается, но скачивается он и вроде как уменя одного?
Это текст виджета Яндекс:
<?php
header ("Content-type: text/html; charset=windows-1251;");
$expires = 60*10;
header("Pragma: public");
header("Cache-Control: maxage=".$expires);
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');
?>
<html>
<head>
<style type="text/css">
body {
background-color:transparent;
text-align:center;
}
#toVal{
color:blue;
}
td {
vertical-align: top;
}
table {
width: 100%;
}
.gamehandle {
width: 100%;
height: auto;
text-align: left;
float: left;
font-family: Verdana;
font-size: 10px;
border-bottom: 1px dotted silver;
margin: 0px;
margin-top: 7px;
padding-bottom: 7px;
color: #000066;
}
.gamehandle a {
color: blue;
}
.gameimg {
float: left;
width: 80px;
height: 80px;
margin-right: 4px;
margin-bottom: 3px;
}
.gameimg img {
width: 75px;
height: 75px;
}
</style>
<script type="text/javascript" src="http://img.yandex.net/webwidgets/1/WidgetApi.js"></script>
<script type="text/javascript">
widget.onload = function(){
widget.adjustIFrameHeight();
}
</script>
</head>
<?php
if (!$limit)
{
$limit = 2;
}
if (!$gt) $gt = 0;
if (!$ot) $ot = 2;
if ($gt == "0") {
$s = "";
}
else {
$s = "AND games.game_section='".$gt."'";
}
if ($ot == "0") {
$r = "ORDER BY games.id DESC";
}
else
if ($ot == "1") {
$r = "ORDER BY games.play_count DESC";
}
else
if ($ot == "2") {
$r = "ORDER BY RAND()";
}
$dd = date ("Ymdh");
function string_limit_words($string, $word_limit) {
$words = explode(' ', $string);
return implode(' ', array_slice($words, 0, $word_limit));
}
$requested_url = $url;
$requested_file =$dd.$limit.$gt.$ot.".html";
$cachefolder = "wdgt/";
$cachefile = $cachefolder.$requested_file;
// echo $cachefile."<br />";
if (!file_exists($cachefile) || (filesize($cachefile) === 0))
{
require_once "core.php";
$result = dbquery ("SELECT * FROM games LEFT JOIN sections ON games.game_section=sections.id WHERE sections.section_alias<>'system' $s $r LIMIT $limit");
while ($data = dbarray ($result))
{
$desc = string_limit_words ($data[game_description],50);
$w .= "<div class='gamehandle'><div class='gameimg'><a href='http://www.flashigry.com/ru/flash/".$data[section_alias]."/".$data[trans_game].".html' target='_blank'><img src='http://www.flashigry.com/pictures/".$data[img_path]."' style='border-width: 0px;' /></a></div>
<a href='http://www.flashigry.com/ru/flash/".$data[section_alias]."/".$data[trans_game].".html' target='_blank' style='color: #666699; font-weight: bold;'>".($data[game_name])."</a>".($sd == "true" ? "<br />".$desc : "")."</div>";
}
$page = $w;
$f = fopen ($cachefile, "w");
fwrite ($f, $page);
fclose ($f);
} else {
$f = fopen ($cachefile, "r");
$w = fread ($f, filesize($cachefile));
fclose ($f);
}
?>
<body style="margin:0;padding:0px; overflow: scroll;">
<table style='height: 100%; margin: 0px; padding: 0px;'>
<tr><td>
<?=$w?>
</td></tr>
</table>
</body>
</html>
Вам еще и форум нужно осваивать - найти возможность помещать большие и особенно бесполезные тексты под спойлер.
А с виджетом - обратитесь лучше прямо на Яндекс.
C2H5OH [03.08.2011 16:11] :
снесите кривой виджет и никогда более не вспоминайте о яндекс-хренях
[Ответить]
[< Назад]