KUB 0 Posted July 12, 2011 Report Share Posted July 12, 2011 (edited) Не отображается картинка. Вместо неё пишет "Добавлено поль.." А также, текст под картинкой становится той же шириной что и картинка.(Теги не применялись для выравнивания) Safe Mode ВЫКЛ Настройки во вкладке новости все галочки. И еще favicon - где поменять? я нашел его, заменил- а изменений нет. Даже удалял папку где он расположен. и он все равно остался жив. Edited July 12, 2011 by KUB Quote Link to comment Share on other sites More sharing options...
KUB 0 Posted July 12, 2011 Author Report Share Posted July 12, 2011 (edited) favicon Убивается только изменением адреса в page_header.html ( Вопрос про новости еще не решен. Edited July 12, 2011 by KUB Quote Link to comment Share on other sites More sharing options...
Фай Д. Флоурайт 33 Posted July 12, 2011 Report Share Posted July 12, 2011 У меня на вашем сайте картинки показало без проблем. Quote Link to comment Share on other sites More sharing options...
KUB 0 Posted July 12, 2011 Author Report Share Posted July 12, 2011 (edited) Вот на этом сайте. http://pycb-ao.ru/ и как изменить язык? не нашел.в новостях дата 27 April 2011, Wednesday Edited July 12, 2011 by KUB Quote Link to comment Share on other sites More sharing options...
Фай Д. Флоурайт 33 Posted July 12, 2011 Report Share Posted July 12, 2011 Это надо менять локаль в ОС сервера. У вас есть доступ к ней? Что касается картинок - укажите ссылку на пхпинфо. Quote Link to comment Share on other sites More sharing options...
KUB 0 Posted July 13, 2011 Author Report Share Posted July 13, 2011 К ОС сервера доступа нет. PHP отправлен. Quote Link to comment Share on other sites More sharing options...
Фай Д. Флоурайт 33 Posted July 13, 2011 Report Share Posted July 13, 2011 Для начала - отключите magic_quotes_gpc. Quote Link to comment Share on other sites More sharing options...
KUB 0 Posted July 13, 2011 Author Report Share Posted July 13, 2011 (edited) Для начала - отключите magic_quotes_gpc. Отключил. эффекта нет. Про дату. Решил найти массив слов английский. вот в файле такие строчки: // Show a new date row if it's not the same as the last if ( date($user->style['date_notime_long'], $news['news']['news_date']) != date($user->style['date_notime_long'], $previous_date) ) { $tpl->assign_block_vars('date_row', array('DATE' => strftime($user->style['strtime_date'],$news['news']['news_date']))); $previous_date = $news['news']['news_date']; } viewnews.php style['strtime_date'] - отображает дату а дальше нашел только стиль отображения: //date/time style $lang['style_date_notime_long'] = 'j F Y' ; $lang['style_date_notime_short'] = 'd.m.y' ; $lang['style_date_time'] = 'd.m.y H:i' ; $lang['style_time'] = 'H:i'; $lang['style_strtime_date'] = '%d %B %Y, %A'; $lang['style_strtime_date_short'] = '%a %m.%d %I:%M %p'; language\russian\lang_main.php Edited July 13, 2011 by KUB Quote Link to comment Share on other sites More sharing options...
Фай Д. Флоурайт 33 Posted July 13, 2011 Report Share Posted July 13, 2011 В каком теге и как вообще указано изображение в тексте новости? Проверьте также, что на папку /data/ рекурсивно стоят права 777. 1 Quote Link to comment Share on other sites More sharing options...
KUB 0 Posted July 14, 2011 Author Report Share Posted July 14, 2011 (edited) В каком теге и как вообще указано изображение в тексте новости? Проверьте также, что на папку /data/ рекурсивно стоят права 777. Проверил (( не исправилось( - тег Пробовал заменить файлы, добавил видео(Отображается нормально) Получается, что скрипту что-то мешает отобразить превьюшку в уменьшенном размере. Edited July 14, 2011 by KUB Quote Link to comment Share on other sites More sharing options...
KUB 0 Posted July 15, 2011 Author Report Share Posted July 15, 2011 Проверил (( не исправилось( - тег Пробовал заменить файлы, добавил видео(Отображается нормально) Получается, что скрипту что-то мешает отобразить превьюшку в уменьшенном размере. Нашел: </a><div style="display: none;" id="imgresize_0" class="markImageResized"><a href="./data/fb652504868ec742ff694705a0ea843b/eqdkp/news/7d1ec7489910.png" rel="lytebox">Добавленное пользователем изображение display: none поставлено не отображать. и где эту настройку искать? Quote Link to comment Share on other sites More sharing options...
Фай Д. Флоурайт 33 Posted July 15, 2011 Report Share Posted July 15, 2011 Там все правильно "поставлено". В личку доступ к фтп и админцентру сайта, попробую разобраться. 1 Quote Link to comment Share on other sites More sharing options...
KUB 0 Posted July 26, 2011 Author Report Share Posted July 26, 2011 (edited) Ну вот так...: Все функции для превьюшек у меня работают, но в папке thumb превью не создаются. После того как убрал альт: \pluskernel\include\bbcode.class.php alt="'.$user->lang['images_userposted'].'" Все заработало. В том числе и создание превьюшек в папке thumb С отображением текста также все нормально. Хотелось бы узнать причину такого поведения. // Output if($img_full){ if($img_thumb){ $resize_value = (($conf_plus['pk_air_max_resize_width']) ? $conf_plus['pk_air_max_resize_width'] : 400); $myoutt = '<div onmouseover="$(\'#imgresize_'.$this->img_id.'\').show()" onmouseout="$(\'#imgresize_'.$this->img_id.'\').hide()" style="width: '.$resize_value.'px;"> <a href="'.$img_full.'" '.(($conf_plus['pk_air_enable']) ? 'rel="lytebox"' : '').'> <div class="image_resized"> <div id="imgresize_'.$this->img_id.'" class="markImageResized"><img src="images/zoom.png" alt="Resized"/></div> <img src="'.$img_thumb.'" alt="'.$user->lang['images_userposted'].'" /> </div> </a> </div>'; $this->img_id++; return $myoutt; }else{ return '<a href="'.$img_full.'" '.(($conf_plus['pk_air_enable']) ? 'rel=lytebox"' : '').'><img src="'.$img_full.'" alt="'.$user->lang['images_userposted'].'" /></a>'; } }else{ $langBits = ($user->check_auth('a_news_', false)) ? $user->lang['images_not_available_admin'] : $user->lang['images_not_available']; return '<br/><table class="errortable" width="100%"><tr><td width="120px" align="center"><img src="images/brokenimg.png" /></td><td>'.$langBits.'</td></tr></table>'; } Edited July 26, 2011 by KUB Quote Link to comment Share on other sites More sharing options...
kil_q 3 Posted November 28, 2011 Report Share Posted November 28, 2011 спс, помогло Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.