hcs пишет:Поставь firebug, он поможет отследить где ошибка
Установлен.
Сравнивал на данном форуме и на своём, при клике B
Разница
Здесь
<img tabindex="-1" onclick="insert_text('[b]','[/b]')" title="b" alt="[b]" src="http://punbb.ru/extensions/pun_bbcode/buttons/Oxygen/b.png"/>
У меня
<img tabindex="1" onclick="insert_text('[b]','[/b]')" title="b" alt="[b]" src="http://torrent.bbline.ru/forum/extensions/pun_bbcode/buttons/Oxygen/b.png"/>
Или нужно другой кусок кода?
Я не силён в коде, сильно не пинайте
.
UPD
При установленных
BBCode buttons
* Разработчик: PunBB Development Team.
* Версия 1.3.4.
* Pretty buttons for easy BBCode formatting.
Custom Smilies 2
* Разработчик: KeyDog.
* Версия 0.2.1.
* Custom Smilies Set - this is an enlarged set of emoticons makes images 20x20 in size insted of 15x15 - needs latest include/parser.php as it uses hooks from it!
Появляется ошибка при создании новой темы
Warning: array_unique() [function.array-unique]: The argument should be an array in /home/torrent/forum/extensions/pun_bbcode/bar.php on line 108
Warning: Invalid argument supplied for foreach() in /home/torrent/forum/extensions/pun_bbcode/bar.php on line 108
Возможно из-за этого и не работают смайлы и bbcode.
В каком направлении курить?
Спасибо за потраченное время!
2 UPD
Что может быть не так?
<div id="pun_bbcode_smilies">
<?php
($hook = get_hook('pun_bbcode_pre_smilies_output')) ? eval($hook) : null;
if (!$forum_config['p_message_bbcode'])
$pun_bbcode_tabindex = 1;
// Display the smiley set
foreach (array_unique($smilies) as $smile_text => $smile_file)
{
($hook = get_hook('pun_bbcode_smilies_output_loop_start')) ? eval($hook) : null;
echo "\t\t".'<img src="'.$base_url.'/img/smilies/'.$smile_file.'" width="15" height="15" alt="'.$smile_text.'" onclick="insert_text(\' '.$smile_text.' \', \'\');" tabindex="'.($pun_bbcode_tabindex++).'" />'."\n";
}