Ver Versão Completa: Resolvido Erro no editor
Para os usuários que têm uma língua estrangeira habilitada, a mensagem de editores e visitantes PM desaparecem quando o gancho editor_toolbar_end para adicionar as opções de rádio de língua está habilitada. Este não era o caso anteriormente em 3.3.0-você pode por favor olhar para isso?
Para os lugares regular, os botões de opção não aparece.
Eu desativada temporariamente este gancho para que as pessoas podem postar.
Acabei de verificar PM cabine e mensagens de visitantes (rápida e avançada) em nosso forum e ele funciona. Talvez eu verifiquei no lugar errado. Posso dizer que você vê mesmo problema neste fórum?
Se sim, então por favor dê URL exata a página com o erro e dizer quais são as configurações do usuário.
Se não, então por favor:
1. Diga qual a versão vB você estiver usando
2. Verifique se você mudou modelos para os editores. Se sim - por favor verifique emite existir após a reversão das alterações (por favor, faça backup do conteúdo do modelo real, de modo que você será capaz de colocá-la novamente).
3. Por favor, envie-nos o conteúdo exato de seus modelos para os editores que desaparece.
3.8.5. Revertendo o modelo não fez nada (embora você acha que seria). Talvez um outro plugin está causando isso, embora não deva e pior caso, podemos embutir uma solução alternativa.
A função problemático é vbet_editor_toolbar_end, FYI.
Meu código de modelo para editor_toolbar_on é:
$vBeditTemplate[clientscript]
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td id="$editorid" class="vBulletin_editor" width="100%">
<div id="{$editorid}_controls" class="controlbar">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><div class="imagebutton" id="{$editorid}_cmd_removeformat"><img src="$stylevar[imgdir_editor]/removeformat.gif" width="21" height="20" alt="$vbphrase[remove_text_formatting]" /></div></td>
<if condition="$show['font_bbcode'] OR $show['size_bbcode']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
</if>
<if condition="$show['font_bbcode']">
<td><div class="imagebutton" id="{$editorid}_popup_fontname" title="$vbphrase[fonts]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="popup_feedback"><div id="{$editorid}_font_out" style="width:91px"> </div></td>
<td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
</tr>
</table>
</div></td>
</if>
<if condition="$show['size_bbcode']">
<td><div class="imagebutton" id="{$editorid}_popup_fontsize" title="$vbphrase[sizes]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="popup_feedback"><div id="{$editorid}_size_out" style="width:25px"> </div></td>
<td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
</tr>
</table>
</div></td>
</if>
<if condition="$show['color_bbcode']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_popup_forecolor" title="$vbphrase[colors]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td id="{$editorid}_color_out"><img src="$stylevar[imgdir_editor]/color.gif" width="21" height="16" alt="" /><br /><img src="$vboptions[cleargifurl]" id="{$editorid}_color_bar" alt="" style="background-color:black" width="21" height="4" /></td>
<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
</tr>
</table>
</div></td>
</if>
<if condition="$show['wysiwygsmilies']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_popup_smilie" title="$vbphrase[smilies]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_editor]/smilie.gif" alt="" width="21" height="20" /></td>
<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
</tr>
</table>
</div></td>
</if>
<if condition="$show['attach']">
<td><div class="imagebutton" id="{$editorid}_popup_attach" title="$vbphrase[attachments]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_editor]/attach.gif" alt="" width="21" height="20" /></td>
<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
</tr>
</table>
</div></td>
</if>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_cmd_undo"><img src="$stylevar[imgdir_editor]/undo.gif" width="21" height="20" alt="$vbphrase[undo]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_redo"><img src="$stylevar[imgdir_editor]/redo.gif" width="21" height="20" alt="$vbphrase[redo]" /></div></td>
<td width="100%"> </td>
<if condition="is_browser('ie') AND !is_browser('mac')">
<td><div class="imagebutton" id="{$editorid}_cmd_spelling"><img src="$stylevar[imgdir_editor]/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>
</if>
<td>
<div class="imagebutton" id="{$editorid}_cmd_resize_0_100"><img src="$stylevar[imgdir_editor]/resize_0.gif" width="21" height="9" alt="$vbphrase[decrease_size]" /></div>
<div class="imagebutton" id="{$editorid}_cmd_resize_1_100"><img src="$stylevar[imgdir_editor]/resize_1.gif" width="21" height="9" alt="$vbphrase[increase_size]" /></div>
</td>
<if condition="$show['wysiwyg_compatible']">
<td><div class="imagebutton" id="{$editorid}_cmd_switchmode"><img src="$stylevar[imgdir_editor]/switchmode.gif" width="21" height="20" alt="$vbphrase[switch_editor_mode]" /></div></td>
</if>
</tr>
</table>
<if condition="!$show['basicbbcodeonly']">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<if condition="$show['basic_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_bold"><img src="$stylevar[imgdir_editor]/bold.gif" width="21" height="20" alt="$vbphrase[bold]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_italic"><img src="$stylevar[imgdir_editor]/italic.gif" width="21" height="20" alt="$vbphrase[italic]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_underline"><img src="$stylevar[imgdir_editor]/underline.gif" width="21" height="20" alt="$vbphrase[underline]" /></div></td>
</if>
<if condition="$show['align_bbcode']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<if condition="$stylevar['textdirection'] == 'ltr'">
<td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td>
<else />
<td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
</if>
</if>
<if condition="$show['align_bbcode'] OR $show['list_bbcode']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
</if>
<if condition="$show['list_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_insertorderedlist"><img src="$stylevar[imgdir_editor]/insertorderedlist.gif" width="21" height="20" alt="$vbphrase[ordered_list]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_insertunorderedlist"><img src="$stylevar[imgdir_editor]/insertunorderedlist.gif" width="21" height="20" alt="$vbphrase[unordered_list]" /></div></td>
</if>
<if condition="$show['align_bbcode'] OR $show['list_bbcode']">
<if condition="$stylevar['textdirection'] == 'ltr'">
<td><div class="imagebutton" id="{$editorid}_cmd_outdent"><img src="$stylevar[imgdir_editor]/outdent.gif" width="21" height="20" alt="$vbphrase[decrease_indent]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_indent"><img src="$stylevar[imgdir_editor]/indent.gif" width="21" height="20" alt="$vbphrase[increase_indent]" /></div></td>
<else />
<td><div class="imagebutton" id="{$editorid}_cmd_outdent"><img src="$stylevar[imgdir_editor]/indent.gif" width="21" height="20" alt="$vbphrase[decrease_indent]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_indent"><img src="$stylevar[imgdir_editor]/outdent.gif" width="21" height="20" alt="$vbphrase[increase_indent]" /></div></td>
</if>
</if>
....truncated
Eu encontrei nada de errado no modelo que você deu.
Por favor, detalhes de acesso a PM Admin CP e FTP - vamos verificar e corrigi-lo no local.
EDIT:
Além disso, eu só atualizou este fórum para vB3.8.5 - ainda não conseguiu encontrar o problema aqui. Por favor, indique-nos links para páginas exata no nosso fórum aqui no seu o problema existe. Vamos verificar quais modelos exatamente são usados para gerar os editores e talvez ajudar a fixação problema sem acesso ao seu fórum.
OK-
Por favor login como testuser, a senha é teste. Linguagem padrão para que o usuário é dinamarquês.
Então, vá para esta página: PentaxForums.com - Se Profil: testuser (http://www.pentaxforums.com/forums/da/members/testuser.html)
ou: PentaxForums.com (http://www.pentaxforums.com/forums/private.php?do=newpm)
Note-se que é impossível para enviar uma VM PM ou post:)
OK. Na página membro é usado modelo: showthread_quickreply para editor; na PM nova: editor_toolbar_on.
Você já mostrou editor_toolbar_on e eu encontrei nenhum problema lá ...
Pelo que entendi você não pode enviar VM ou PM porque os editores não são gerados. Você já confirmou que reverter sua editor_toolbar_on a original dá nenhum resultado. Por favor verifique feita mesmo para showthread_quickreply e PM me detalhes de acesso de qualquer maneira - eu vou ter que ir lá e descobrir por que ele quebrou e como corrigi-lo.
Se você suspeitar de conflito com algum outro mod - por favor, desative temporariamente esse mod e verificar que isso ajuda. Se você não tem idéia em seguida, basta desativar outros plugins para o gancho editor_toolbar_end. Se ele vai ajudar - determinar exatamente o plugin que faz com que o conflito e me avise.
Se você não vai segurá-lo - deixe-me lá dentro.
Oi Michal,
Isto pareceu muito estranho, então eu descartou conflitos plugin e foi direto para o arquivo PHP.
Eu trabalhei o código um pouco e encontrou a seguinte solução. Talvez isto seja algo que só afetam o meu site, mas parece que assim que foram introduzidos aspas simples (\\ ') no html, o editor falido. Assim, mudei todas as aspas simples para aspas duplas, e tudo funcionou. Além disso, eu tinha que remover $ vbphrase ['vbenterprisetranslator_postin_noselection'] e substituí-la por 'Inglês' a string. Ver a mudança no código abaixo vbenterprisetranslator_functions_hooks.php:
FIND:
function vbet_editor_toolbar_end(&$editor_template_name) {
if (!$vbulletin->templatecache["$editor_template_name"]) {
fetch_template("$editor_template_name");
}
$toReplace = '<div id=\"$editorid';
if (false === strpos($vbulletin->templatecache["$editor_template_name"], $toReplace)) {
$toReplace = '<div id=\"{$editorid';
}
require_once(DIR. '/includes/vbenterprisetranslator_functions_utils.php');
global $vbphrase, $vbulletin, $stylevar;
$additionalScript = '<div class=\'smallfont\' style=\'text-align:left;\'>'
.$vbphrase['vbenterprisetranslator_postin']
.' <label for=\'vbet_addbbcodes\'><input id=\'vbet_addbbcodes\' type=\'radio\' name=\'vbet_postInLanguage\' value=\''
.$vbulletin->userinfo['vbet_def_lang'].'\' checked>'
.'<img src=\'images/vbet/flags/'
.$vbulletin->userinfo['vbet_def_lang'].'.gif\' alt=\'$name\' border=\'0\'/>'
.$vbphrase['vbenterprisetranslator_flag_'.strtr($vbulletin->userinfo['vbet_def_lang'], '-', '_')]
.'</label> <label for=\'vbet_nobbcodes\'><input id=\'vbet_nobbcodes\' type=\'radio\' name=\'vbet_postInLanguage\' value=\'0\'>'
.$vbphrase['vbenterprisetranslator_postin_noselection']
.'</label></div>'.$toReplace;
$vbulletin->templatecache[$editor_template_name] =& vbet_replaceFirst($toReplace, $additionalScript, $vbulletin->templatecache["$editor_template_name"]);
}
REPLACE:
function vbet_editor_toolbar_end(&$editor_template_name) {
if (!$vbulletin->templatecache["$editor_template_name"]) {
fetch_template("$editor_template_name");
}
$toReplace = '<div id=\"{$editorid';
require_once(DIR. '/includes/vbenterprisetranslator_functions_utils.php');
global $vbphrase, $vbulletin, $stylevar;
$additionalScript = '<div class=\"smallfont\" style=\"text-align:left;\">'
.$vbphrase['vbenterprisetranslator_postin']
.' <label for=\"vbet_addbbcodes\"><input id=\"vbet_addbbcodes\" type=\"radio\" name=\"vbet_postInLanguage\" value=\"'
.$vbulletin->userinfo['vbet_def_lang'].'\" checked>'
.'<img src=\"images/vbet/flags/'
.$vbulletin->userinfo['vbet_def_lang'].'.gif\" alt=\"$name\" border=\"0\"/>'
.$vbphrase['vbenterprisetranslator_flag_'.strtr($vbulletin->userinfo['vbet_def_lang'], '-', '_')]
.'</label> <label for=\"vbet_nobbcodes\"><input id=\"vbet_nobbcodes\" type=\"radio\" name=\"vbet_postInLanguage\" value=\"0\">'
. 'English</label></div>'
. $toReplace;
$vbulletin->templatecache[$editor_template_name] = vbet_replaceFirst($toReplace, $additionalScript, $vbulletin->templatecache[$editor_template_name]);
}
Eu também se livrou do strpos chamada para poupar recursos, como a versão hard-coded parece funcionar;)
Oi. Solução que você gosta feliz. Vamos testá-lo em nossos fóruns e se ele vai funciona este será incluído na próxima versão. Pois agora você está só quem tem esse problema (pode ser algum conflito com mod), mas as soluções de trabalho para todos são os melhores;)
ATENÇÃO: este strpos é necessário. Infelizmente, em vB3.x modelos diferentes editores têm um código diferente para marcar lugar editor. Alguns estão usando <div id = "$ editorid e alguns estão usando <div id =" {$ editorid '. Você pode facilmente verificar-lo - basta fazer busca modelo. Se você remover se cláusula com strpos em seguida, para alguns editores padrão botões de rádio idioma não será mostrado. Por favor, esteja ciente disso.
Além disso, se você mudou "a", então provavelmente você não precisa de \\ ", e é o suficiente para ter apenas". Nós não verifiquei ainda, para fazer cópia, se você quiser verificar antes de nossos testes.
Obrigado pela atenção! Eu agora colocar o strpos para trás dentro
Na minha instalação, qualquer ocorrência de "em vez de \\" imediatamente quebra o editor (embora você esteja certo, pois as cordas estão entre aspas simples, você não pensaria que as barras invertidas seria necessário).
Na minha instalação, qualquer ocorrência de "em vez de \\" imediatamente quebra o editor (embora você esteja certo, pois as cordas estão entre aspas simples, você não pensaria que as barras invertidas seria necessário).
Não para PHP, mas parece que para o modelo sim:) Temos que lembrar que não é um código PHP limpo, mas é injetado no corpo de modelo. Como escrevi - não foi testado, apenas uma coisa que poderia ser ainda melhor, que não aparece;)
Ainda vamos testar em nossos servidores \\ solução "e se trabalhar vai ser incluído na próxima versão oficial, então você não terá que se preocupar com isso durante as atualizações:)
Testado e confirmado que trabalham ao nosso lado - este será incluído na próxima versão:)
Automatic Translations (Powered by Google, Microsoft®,
Yandex, SDL Language Cloud, IBM Watson and Apertium):
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.