देखें पूर्ण संस्करण: हल संपादक में त्रुटि
उपयोगकर्ताओं को, जो एक विदेशी भाषा सक्षम के लिए, प्रधानमंत्री और आगंतुक संदेश संपादकों गायब है जब editor_toolbar_end भाषा रेडियो के विकल्प जोड़ने के हुक सक्षम है. इस मामले में पहले नहीं था 3.3.0 कर सकते हैं आप इस में देखो कृपया?
नियमित पदों के लिए, सब पर रेडियो बटन दिखाई नहीं देते.
मैं अस्थायी रूप से इस हुक अक्षम है इतना है कि लोगों को पोस्ट कर सकते हैं.
मैं सिर्फ हमारे मंच पर बूथ प्रधानमंत्री और आगंतुक संदेश (तेजी से और उन्नत) की जाँच की और यह काम करता है. शायद मैं गलत जगह में जाँच की. आप कर सकते हैं बताओ कि तुम इस मंच पर एक ही मुद्दे को देखने के?
यदि हाँ तो कृपया त्रुटि के साथ पृष्ठ के लिए सही URL दे और बताओ अपने प्रयोक्ता सेटिंग्स क्या हैं.
तो कृपया नहीं:
1. बताओ तुम जो vB संस्करण का उपयोग कर रहे हैं
2. आप उन संपादकों के लिए टेम्पलेट्स बदल दिया है की जाँच करें. यदि हाँ - कृपया परिवर्तन के पीछे के बाद करता है मौजूद मुद्दे की जांच (कृपया वास्तविक टेम्पलेट सामग्री का बैकअप बना है, ताकि आप इसे वापस डाल करने में सक्षम हो जाएगा).
3. हमें उन संपादकों जो गायब हो जाता है के लिए अपने टेम्पलेट्स के सटीक सामग्री भेजें.
3.8.5. टेम्पलेट वापस कुछ नहीं किया (हालांकि आप लगता है कि यह होगा). शायद एक और प्लगइन यह कारण है, यद्यपि यह और सबसे खराब मामला नहीं चाहिए, हम एक workaround हार्ड कोड कर सकते हैं.
समस्याग्रस्त समारोह vbet_editor_toolbar_end है, FYI करें.
मेरा 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
मैं टेम्पलेट में कुछ भी गलत नहीं है जो तुम्हें दिया था पाया.
व्यवस्थापक सी.पी. और एफ़टीपी PM उपयोग विवरण के लिए कृपया - हम की जाँच करें और जगह पर यह सही होगा.
संपादित करें:
इसके अलावा, मैं सिर्फ vB3.8.5 करने के लिए इस मंच को अपडेट - अभी भी मुद्दे को यहाँ नहीं मिल सकता है. हमें यहाँ हमारे मंच पर पृष्ठों तुम्हारा पर मुद्दे मौजूद सटीक लिंक दे कृपया. हम जाँच करेगा टेम्पलेट्स जो वास्तव में उन संपादकों को उत्पन्न करने के लिए और शायद यह अपने मंच के लिए उपयोग किए बिना मुद्दे फिक्सिंग मदद करने के लिए उपयोग किया जाता है.
ठीक है
Testuser के रूप में लॉगिन कृपया, पासवर्ड परीक्षण है. कि उपयोगकर्ता के लिए डिफ़ॉल्ट भाषा डेनिश है.
Testuser http://www.pentaxforums.com/forums/da/members/testuser.html (): - से प्रोफ़ाइल PentaxForums.com: फिर, इस पृष्ठ के लिए जाना
या: PentaxForums.com (http://www.pentaxforums.com/forums/private.php?do=newpm)
ध्यान दें कि यह एक प्रधानमंत्री या पोस्ट VM भेजने के लिए असंभव है:)
ठीक है. सदस्य पृष्ठ पर टेम्पलेट प्रयोग किया जाता है: showthread_quickreply संपादक के लिए, नई PM पर: editor_toolbar_on.
आप पहले से ही editor_toolbar_on दिखाया और मैं वहाँ कोई समस्या नहीं पाया ...
जैसा कि मैं समझता हूँ आप VM या प्रधानमंत्री नहीं भेज क्योंकि संपादकों नहीं उत्पन्न कर रहे हैं हो सकता है. आप पहले से ही पुष्टि की है कि मूल एक को अपने editor_toolbar_on पीछे आप कोई परिणाम नहीं देता है. Showthread_quickreply और मुझे पहुँच विवरण PM के लिए एक ही चेक वैसे भी कृपया मुझे वहाँ जाना हैं और पाते हैं इसलिए उसे तोड़ दिया और इसे ठीक कैसे होगा.
यदि आप कुछ अन्य आधुनिक के साथ संघर्ष संदेह - इस आधुनिक अस्थायी रूप से अक्षम और जाँच कृपया यह मदद करता है. यदि आप कोई सुराग नहीं है तो बस अक्षम editor_toolbar_end हुक के लिए अन्य plugins. यदि यह मदद मिलेगी - निर्धारित प्लगइन जो वास्तव में संघर्ष का कारण बनता है और मुझे पता है है.
यदि आप यह नहीं संभाल लेंगे - मुझे वहाँ में जाने.
हाय मीकल,
यह बहुत अजीब लग रहा था, तो मैं बाहर शासन प्लगइन संघर्ष और PHP फ़ाइल के लिए सीधे चला गया.
मैं कोड एक छोटा सा काम किया है और निम्नलिखित हल मिल गया. शायद यह कुछ केवल मेरी साइट को प्रभावित है, लेकिन ऐसा लगता है कि एकल उद्धरण के रूप में जल्द (\\ ') html में शुरू किए गए थे, संपादक तोड़ दिया. इस प्रकार, मैं दोहरे उद्धरण चिह्नों के लिए सभी एकल उद्धरण बदल गया है, और सब कुछ काम किया. इसके अलावा, मैं $ vbphrase [] 'vbenterprisetranslator_postin_noselection' को हटा दें और इसे स्ट्रिंग 'अंग्रेजी' के साथ प्रतिस्थापित किया था. Vbenterprisetranslator_functions_hooks.php में कोड के नीचे परिवर्तन देखें:
खोजें:
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"]);
}
बदलें:
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]);
}
मैं भी strpos संसाधनों को बचाने के कॉल से छुटकारा मिल गया है, के रूप में हार्ड कोडित संस्करण के लिए काम करने लगता है है;)
हाय. मुझे खुशी है तुम शौकीन समाधान. हम यह हमारे मंचों पर परीक्षण और अगर यह काम करता है यह अगली रिलीज में शामिल किया जाएगा. अभी के लिए आप केवल एक है जो इस मुद्दे (अन्य mod के साथ कुछ संघर्ष किया जा सकता है) कर रहे हैं, लेकिन सभी के लिए काम कर रहे समाधान का सबसे अच्छा कर रहे हैं;)
कृपया ध्यान दें: इस strpos आवश्यक है. दुर्भाग्य से vB3.x अलग संपादकों टेम्पलेट्स में अलग कोड संपादक जगह निशान है. कुछ <div id = "editorid $ का उपयोग कर रहे हैं और कुछ <div id = का उपयोग कर रहे हैं" {$ editorid '. आप आसानी से यह जाँच कर सकते हैं - बस टेम्पलेट खोज करना. यदि आप दूर अगर कुछ संपादकों डिफ़ॉल्ट भाषा रेडियो बटन के लिए तो strpos साथ खंड नहीं दिखाया जाएगा. कृपया उस के बारे में पता होना.
इसके अलावा, अगर तुम '", तो सबसे शायद आप \\ की जरूरत नहीं है", और यह सिर्फ करने के लिए पर्याप्त है, "हम अभी तक यह जाँच नहीं था. बदल गया है, तो प्रतिलिपि बनाने के लिए यदि आप इसे हमारे परीक्षण से पहले की जाँच करना चाहते हैं.
नोट के लिए धन्यवाद! मैं अब strpos है वापस डाल अंदर
अपनी स्थापना में, तुरंत "के" बजाय \\ के किसी भी घटना संपादक (हालांकि आप सही के बाद से कर रहे हैं तार एकल उद्धरण चिह्नों में अब कर रहे हैं, आपको लगता है कि backslashes आवश्यक हो जाएगा नहीं होगा) टूट जाता है.
अपनी स्थापना में, तुरंत "के" बजाय \\ के किसी भी घटना संपादक (हालांकि आप सही के बाद से कर रहे हैं तार एकल उद्धरण चिह्नों में अब कर रहे हैं, आपको लगता है कि backslashes आवश्यक हो जाएगा नहीं होगा) टूट जाता है.
के लिए नहीं, लेकिन PHP यह है कि हाँ टेम्पलेट के लिए प्रकट होता है:) हमें याद है कि यह साफ PHP कोड नहीं है, लेकिन यह टेम्पलेट शरीर में इंजेक्ट किया है. जैसा कि मैंने लिखा था - यह परीक्षण किया है, न केवल एक बात है क्या और भी बेहतर हो सकता है, प्रकट होता है जो नहीं था;)
फिर भी हम हमारे सर्वर पर \\ "समाधान का परीक्षण करेंगे और अगर अगले आधिकारिक रिलीज में शामिल किया जाएगा है काम कर रहा है, तो आप अद्यतन के दौरान इसके बारे में चिंता नहीं होगा:)
परीक्षण और हमारे पक्ष में काम करने की पुष्टि की - यह अगली रिलीज में शामिल किया जाना होगा:)
Automatic Translations (Powered by Google, Microsoft®,
Yandex, SDL Language Cloud, IBM Watson and Apertium):
Powered by vBulletin® Version 4.2.5 Copyright © 2026 vBulletin Solutions Inc. All rights reserved.