Перейти к контенту
  • 0

Проблема с "Круглыми цитатами" (rounded quotes)


MaLblsH

Вопрос

Форум версии 2.3.1

apache-2.0.61_2

php5-5.2.4_1

mysql-server-5.0.27

Мод "Круглые цитаты" (rounded quotes)

 

Ранее стоял форум версии 2.2.2 с этим модом, всё работало и нареканий не вызывало. После обновления до 2.3.1 и переустановки мода, в сообщениях, созданных ранее с использованием цитат, и новых сообщениях, стали пропадать картинки оформления цитат. При этом после изменения сообщения (Изменить - Быстрое редактирование - Применить), картинки появляются.

 

Логи апача:

 

 

[Thu Oct 11 11:51:41 2007] [error] [client ip] File does not exist: /usr/local/www/data/vltele/quotes, referer: [url="http://vltele.com/lan/index.php?showtopic=6658"]http://vltele.com/lan/index.php?showtopic=6658[/url]
[Thu Oct 11 11:51:41 2007] [error] [client ip] File does not exist: /usr/local/www/data/vltele/quotes, referer: [url="http://vltele.com/lan/index.php?showtopic=6658"]http://vltele.com/lan/index.php?showtopic=6658[/url]
[Thu Oct 11 11:51:41 2007] [error] [client ip] File does not exist: /usr/local/www/data/vltele/quotes, referer: [url="http://vltele.com/lan/index.php?showtopic=6658"]http://vltele.com/lan/index.php?showtopic=6658[/url]

 

Файлы расположены в /www/data/vltele/lan/style_images/1/quotes.

 

Фрагмент кода модуля, в котором есть указание на расположение картинок (/sources/classes/bbcode/class_bbcode_core.php) :

 

 

/**
* Wrap VB quote
*
* @param string Extra vars
* @return array Converted text
*/

function wrap_vb_quote_style($extra=""){
$this->wrap_top = "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" align=\"center\">
<tr>
<td class=\"vbquote\">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td class=\"vbquote\" width=\"75\" valign=\"bottom\">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"50px\">
<tr>
<td class=\"vbquote\" width=\"28\" valign=\"top\"><img src=\"{$this->ipsclass->vars['img_url']}/quotes/quot-top-left.gif\" alt=\"\" /></td>
<td class=\"vbquote\" width=\"100%\" style=\"background-image: url('{$this->ipsclass->vars['img_url']}/quotes/quote-bg.gif'); background-position: center;\" valign=\"middle\"><span class=\"vbquote\">{$this->ipsclass->lang['bbcode_wrap_quote']}:</span></td>
<td class=\"vbquote\" valign=\"top\"><img src=\"{$this->ipsclass->vars['img_url']}/quotes/quot-top-right.gif\" alt=\"\" /></td>
</tr>
</table>
</td>
<td class=\"vbquote\" align=\"left\" style=\"background-image: url('{$this->ipsclass->vars['img_url']}/quotes/quot-lr-bg.gif')\" valign=\"bottom\"></td>".
($extra != "" ? "<td class=\"vbquote\" width=\"0\" align=\"left\" valign=\"bottom\">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"200\">
<tr>
<td class=\"vbquote\" valign=\"top\"><img src=\"{$this->ipsclass->vars['img_url']}/quotes/quot-by-left.gif\" alt=\"\" /></td>
<td class=\"vbquote\" width=\"100%\" style=\"background-image: url('{$this->ipsclass->vars['img_url']}/quotes/quot-bye-bg.gif')\" align=\"left\" valign=\"middle\" nowrap=\"nowrap\"><span class=\"vbquote\">{$extra}</span></td>
<td class=\"vbquote\" valign=\"top\"><img src=\"{$this->ipsclass->vars['img_url']}/quotes/quot-by-right.gif\" alt=\"\" /></td>
</tr>
</table>
</td>" : "").
"<td class=\"vbquote\" width=\"100%\" align=\"right\" valign=\"bottom\">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td class=\"vbquote\" width=\"100%\">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td class=\"vbquote\" style=\"background-image: url('{$this->ipsclass->vars['img_url']}/quotes/quot-top-bg.gif')\" width=\"100%\" valign=\"middle\"></td>
<td class=\"vbquote\" align=\"left\" valign=\"top\"><img src=\"{$this->ipsclass->vars['img_url']}/quotes/quot-top-right-10.gif\" alt=\"\" /></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td class=\"vbquote\" width=\"10\" style=\"background-image: url('{$this->ipsclass->vars['img_url']}/quotes/quoting-left.gif')\"></td>
<td class=\"vbquotemain\" width=\"100%\" valign=\"top\"></td>
<td class=\"vbquote\" width=\"10\" style=\"background-image: url('{$this->ipsclass->vars['img_url']}/quotes/quoting-right.gif')\"></td>
</tr>
<tr>
<td class=\"vbquote\" width=\"10\" style=\"background-image: url('{$this->ipsclass->vars['img_url']}/quotes/quot-left-bg.gif')\"></td>
<td class=\"vbquotemain\" width=\"100%\" valign=\"top\"><i>";

$this->wrap_bottom = "</i></td>
<td class=\"vbquote\" width=\"10\" style=\"background-image: url('{$this->ipsclass->vars['img_url']}/quotes/quot-right-bg.gif')\"></td>
</tr>
<tr>
<td class=\"vbquote\" width=\"10\" valign=\"bottom\"><img src=\"{$this->ipsclass->vars['img_url']}/quotes/quot-bot-left.gif\" alt=\"\" /></td>
<td class=\"vbquote\" width=\"100%\" style=\"background-image: url('{$this->ipsclass->vars['img_url']}/quotes/quot-bot-bg.gif')\"></td>
<td class=\"vbquote\" width=\"10\" valign=\"bottom\"><img src=\"{$this->ipsclass->vars['img_url']}/quotes/quot-bot-right.gif\" alt=\"\" /></td>
</tr>
</table>
</td>
</tr>
</table>";

return array( 'START' => str_replace("\n", "", $this->wrap_top), 'END' => str_replace("\n", "", $this->wrap_bottom) );
}

 

 

Проблема в моде или в самом движке форума? Как решить?

Ссылка на комментарий
Поделиться на других сайтах

Рекомендуемые сообщения

  • 0
взять и тупо заменить

{$this->ipsclass->vars['img_url']}

на

lan/style_images/1/

 

 

в прицнипе "тупо" можно и папку перетащить в то место, где он пытается найти файлы оформления...с заменой в блоке - тоже можно.

 

вот хотелось бы узнать, почему с такими параметрами не работает, опять же - до обновления работало, новые цитаты отображаются нормально :D

Ссылка на комментарий
Поделиться на других сайтах

  • 0
{$this->ipsclass->vars['img_url']}

на

lan/style_images/1/

На /style_images/<#IMG_DIR#>/ тогда уж.

Ссылка на комментарий
Поделиться на других сайтах

  • 0

Не помогли оба варианта...

 

Если {$this->ipsclass->vars['img_url']} заменять на /style_images/<#IMG_DIR#>/ - то он ищет картинки в http://vltele.com/style_images/1/quotes

 

Если ему соотвественно прописать lan впереди, т.е. lan/style_images/<#IMG_DIR#>/ - то ищет в http://vltele.com/lan/lan/style_images/1/quotes

Ссылка на комментарий
Поделиться на других сайтах

Присоединиться к обсуждению

Вы можете ответить сейчас, а зарегистрироваться позже. Если у вас уже есть аккаунт, войдите, чтобы ответить от своего имени.

Гость
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Ответить на вопрос...

×   Вы вставили отформатированный текст.   Удалить форматирование

  Допустимо не более 75 смайлов.

×   Ваша ссылка была автоматически заменена на медиа-контент.   Отображать как ссылку

×   Ваши публикации восстановлены.   Очистить редактор

×   Вы не можете вставить изображения напрямую. Загрузите или вставьте изображения по ссылке.

Зарузка...
×
×
  • Создать...

Важная информация

Находясь на нашем сайте, вы соглашаетесь на использование файлов cookie, а также с нашим положением о конфиденциальности Политика конфиденциальности и пользовательским соглашением Условия использования.