Dôležitý: Táto stránka používa cookies, (cookies). Používanie tejto webovej stránky bez nutnosti vypnúť súbory cookie v prehliadači, znamená to, že súhlasíte s tým, pre jeho použitie.
Kúp teraz! Funkcia Súbory na stiahnutie

Zarábajte s nami!

Ak by ste chceli začať zarábať peniaze s vBET pripojiť k Affiliate Program.
| 1 z 2 12 PoslednýLast
Výsledky 1 na 10 z 12

Závit: Chyba v editore

  1. #1
    Senior Member
    Dátum registrácie
    11. 2009
    Príspevky
    168

    Default Chyba v editore

    Pre používateľov, ktorí majú cudzí jazyk povolený, PM a návštevník správu editory zmizne, pokiaľ je povolené editor_toolbar_end hák pridať možnosti jazyka rádio. To nebol prípad už v 3.3.0, môžete mi prosím pozrieť na to?

    Pre pravidelné stĺpiky, radio tlačidla sa nezobrazí vôbec.

    Ja som dočasne vyradený to háčik, aby ľudia mohli miesto.
    Naposledy upravil moman; 13-04-10 v 22:33.

  2. #2
    Michał Podbielski (vBET zamestnancov) vBET's Avatar
    Dátum registrácie
    10. 2009
    Príspevky
    3,037

    Default

    Len som skontrolovať Booth hodín a návštevníci správ (rýchle a pokročilé), na našom fóre a funguje to. Možno som na zlom mieste skontrolovať. Môžete mi prosím povedať, vidíte rovnaký problém na tomto fóre?

    Ak áno, potom prosím dať presnú adresu URL stránky s chybou, a povedať, čo je vaše užívateľské nastavenia.

    Ak nie, tak prosím:
    1. Určiť, ktoré z BB verziu používate
    2. Skontrolujte, či máte zmeniť šablóny pre editory. Ak áno - skontrolujte to problém existuje po vrátení vykonaných zmien (prosím, zálohu aktuálneho obsahu, šablóny, takže si budete môcť dať späť).
    3. Pošlite nám prosím presný obsah šablóny pre editorov, ktoré zmiznú.

  3. #3
    Senior Member
    Dátum registrácie
    11. 2009
    Príspevky
    168

    Default

    3.8.5. Obnovenie šablóny neurobil nič (aj keď si myslíte, že by sa). Možno, že iný plugin to spôsobuje, ale to by nemalo, a najhoršom prípade môžeme ťažko kód riešenie.

    Problematické funkcie vbet_editor_toolbar_end, S pozdravom.

    My kód šablóny pre editor_toolbar_on je:

    HTML Code:
    $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">&nbsp;</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">&nbsp;</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_cut"><img src="$stylevar[imgdir_editor]/cut.gif" width="21" height="20" alt="$vbphrase[cut]" /></div></td>
    				<td><div class="imagebutton" id="{$editorid}_cmd_copy"><img src="$stylevar[imgdir_editor]/copy.gif" width="21" height="20" alt="$vbphrase[copy]" /></div></td>
    				<td><div class="imagebutton" id="{$editorid}_cmd_paste"><img src="$stylevar[imgdir_editor]/paste.gif" width="21" height="20" alt="$vbphrase[paste]" /></div></td>
    				-->
    	
    				<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%">&nbsp;</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
    Naposledy upravil moman; 14-04-10 v 06:07.

  4. #4
    Michał Podbielski (vBET zamestnancov) vBET's Avatar
    Dátum registrácie
    10. 2009
    Príspevky
    3,037

    Default

    Našiel som nič zlé na šablónu, ktorú ste dal.

    Prosím PM prístupové údaje k FTP a správca CP - budeme kontrolovať a opraviť na mieste.

    EDIT:
    Tiež som si aktualizáciu tohto fóra vB3.8.5 - stále nemôžete nájsť problém tu. Prosím, dajte nám presné odkazy na stránky, na našom fóre tu na vás otázku existuje. Budeme kontrolovať, ktoré šablóny presne sa používa na výrobu tých editorov a možno to pomôže, ktorým vydať bez prístupu k fóru.
    Naposledy upravil vBET; 15-04-10 v 02:11.

  5. #5
    Senior Member
    Dátum registrácie
    11. 2009
    Príspevky
    168

    Default

    OK-

    Prosím, prihláste sa ako testuser, heslo je test. Predvolený jazyk pre užívateľa, ktorý je dánsky.

    Potom choďte na túto stránku: PentaxForums.com - So Profil: testuser
    alebo: PentaxForums.com

    Všimnite si, že to je nemožné poslať PM alebo po VM

  6. #6
    Michał Podbielski (vBET zamestnancov) vBET's Avatar
    Dátum registrácie
    10. 2009
    Príspevky
    3,037

    Default

    OK. Na užívateľskej stránke je použitá šablóna: showthread_quickreply pre editor, na nového premiéra: editor_toolbar_on.

    Tie už ukázali editor_toolbar_on a našiel som tam žiadny problém ...

    Ako tomu rozumiem nemožno posielať VM alebo popoludní, pretože redaktori sú generované. To už potvrdil, že si cúvaní editor_toolbar_on k pôvodnému vám žiadne výsledky. Prosím, skontrolujte, či sa rovnaká showthread_quickreply a PM ma prístupové údaje rovnako - budem musieť ísť a nájsť dôvod, prečo ho zlomil, a ako to napraviť.
    Ak máte podozrenie na konflikt s nejakým iným mod - zakážte tento mod dočasne a skontrolujte, či to pomôže. Ak máte potuchy, potom už len zakázať ďalšie zásuvné moduly pre editor_toolbar_end háčik. Ak to pomôže - presne určiť, ktoré plugin spôsobí konflikt a dajte mi vedieť.

    Ak si nebudete zvládnuť - dovoľte mi, aby som tam.

  7. #7
    Senior Member
    Dátum registrácie
    11. 2009
    Príspevky
    168

    Default Fix

    Ahoj Michal,

    To sa zdalo veľmi čudné, a tak som vylúčil plugin konflikty a šiel rovno na súbor PHP.

    Pracoval som kód trochu a zistil nasledujúce riešenie. Možno je to niečo, čo ovplyvňuje len mojich stránkach, ale zdá sa, že akonáhle apostrofov boli predstavené (\\ ") v html, editor zlomil. Tak som zmenil všetky apostrofy do úvodzoviek, a všetko fungovalo. Okrem toho som musel odstrániť $ vbphrase ['vbenterprisetranslator_postin_noselection'] a nahradiť ho reťazcom "anglický". Pozri zmeny kódu nižšie vbenterprisetranslator_functions_hooks.php:

    Nájsť:

    PHP Code:
    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']
    .
    '&nbsp;<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>&nbsp;&nbsp;&nbsp;<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"]);

    Nahradiť:

    PHP Code:
    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']
    .
    '&nbsp;<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>&nbsp;&nbsp;&nbsp;<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]);

    Tiež som sa zbavil strpos volanie ušetriť prostriedky, ako pevne verzia zdá sa k práci

  8. #8
    Michał Podbielski (vBET zamestnancov) vBET's Avatar
    Dátum registrácie
    10. 2009
    Príspevky
    3,037

    Default

    Dobrý deň. Som rád, že fond riešenie. Budeme testovať na našom fóre, a ak to bude práca to bude zahrnutá v nasledujúcej verzii. Zatiaľ ste jediný, kto má tento problém (môže byť nejaký konflikt s inými mod), ale riešenie pracuje pre všetky sú najlepšie

    UPOZORNENIE: tento strpos je nutné. Bohužiaľ v vB3.x rôznych editorov šablóny iný kód označiť editor miesto. Niektoré z nich sú pomocou <Div id = "$ editorid" a niektorí používajú <Div id = "{$ editorid". Môžete ľahko skontrolovať - len sa šablóny hľadania. Ak odstránite ak doložku strpos potom pre niektoré editory bude predvolený jazyk radio tlačidla sa nezobrazí. Uvedomte si prosím, že.

    Tiež ak ste zmenili " na ", Potom s najväčšou pravdepodobnosťou nepotrebujete \\ ", A to je dosť, aby sa práve ". Nemali sme to ešte skontrolovať, takže si kópií, ak si chcete skontrolovať, že pred našimi testy.

  9. #9
    Senior Member
    Dátum registrácie
    11. 2009
    Príspevky
    168

    Default

    Vďaka za upozornenie! Ja som teraz dal strpos späť dovnútra

  10. #10
    Senior Member
    Dátum registrácie
    11. 2009
    Príspevky
    168

    Default

    Na mojej inštalácii, každý výskyt "namiesto \\" okamžite preruší editor (aj keď máš pravdu, pretože reťazce sú teraz v jednoduchých úvodzovkách, že si nemyslím, že by bolo treba spätné lomítka).

| 1 z 2 12 PoslednýLast

Kľúčové slová pre túto tému

Prispievanie

  • Vy nie je zakladať nové témy
  • Vy nie je vkladať nové príspevky
  • Vy nie je prikladať
  • Vy nie je upravovať svoje príspevky
  •