Enpòtan: Paj sa a se lè l sèvi avèk bonbon (cookies). Sèvi ak sit entènèt sa a san yo pa vire sou bonbon nan navigatè, vle di ke ou dakò pou sèvi ak li.
Buy Now! Features Downloads

Gen ak nou!

Si ou ta renmen kòmanse lajan ak are vBET pou salè pou gwo travay Afilye pwogram.
Paj 1 nan 2 12 DenyeLast
Rezilta 1 10 nan 12

Thread: Erè nan editè

  1. #1
    Senior Member
    Join Date
    Mar 2009
    Posts
    168

    Default Erè nan editè

    Pou itilizatè ki gen yon lang etranje pèmèt, editè yo mesaj PM ak vizitè disparèt lè se zen an editor_toolbar_end yo ajoute opsyon ki disponib nan lang radyo pèmèt. Sa a pa t 'ka a deja nan 3.3.0-ou kapab, tanpri gade nan sa a?

    Pou posts regilye, bouton sa yo pa parèt radyo nan tout.

    Mwen te tanporèman enfim sa a zen konsa ke gen moun ki ka poste.
    Last edited by moman; 13-04-10 nan 22:33.

  2. #2
    Michał Podbielski (vBET Anplwaye) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Mwen jis tcheke PM izolwa, ak yon mesaj vizitè (vit epi avanse) sou fowòm nou yo ak li fonksyone. Petèt mwen tcheke nan plas sa ki mal. Èske ou ka tanpri, di fè ou wè menm pwoblèm sa a sou fowòm?

    Si se wi Lè sa a, tanpri bay egzak URL nan paj ki gen erè epi di ki sa yo anviwònman User ou.

    Si ou pa Lè sa a, tanpri:
    1. Di ki VB vèsyon w ap sèvi ak
    2. Tcheke èske ou gen chanje modèl pou moun ki editè. Si repons lan se wi - tanpri tcheke pwoblèm ki egziste apre ranvèse chanjman (tanpri, fè backup sou kontni modèl aktyèl, kidonk, ou yo pral kapab mete l 'tounen).
    3. Tanpri voye ban nou egzak kontni nan modèl ou pou moun ki editè ki disparèt.

  3. #3
    Senior Member
    Join Date
    Mar 2009
    Posts
    168

    Default

    3.8.5. Restore modèl la te fè pa gen anyen (menm si ou ta panse li ta). Petèt yon lòt Plugin se sa ki lakòz sa a, byenke li pa ta dwe pi move ak ka nou ka difisil-postal yon solisyon.

    Se fonksyon an pwoblèm vbet_editor_toolbar_end, Fyi.

    Postal modèl mwen pou editor_toolbar_on se:

    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
    Last edited by moman; 14-04-10 nan 06:07.

  4. #4
    Michał Podbielski (vBET Anplwaye) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Mwen pa jwenn anyen mal nan modèl sa ou te ban.

    Tanpri detay PM aksè a Admin CP ak ftp - nou pral tcheke pou wè ak kòrèk l 'sou kote.

    EDIT:
    Epitou mwen jis mete ajou sa a fowòm vB3.8.5 - toujou pa ka jwenn sijè sa a isit la. Tanpri, ban nou lyen egzak nan paj sou fowòm nou yo isit la sou ou pwoblèm nan egziste. Nou pral tcheke pou wè ki modèl egzakteman yo itilize jenere moun ki editè ak petèt li èd pou repare-pwoblèm san yo pa jwenn aksè nan fowòm ou.
    Last edited by vBET; 15-04-10 nan 02:11.

  5. #5
    Senior Member
    Join Date
    Mar 2009
    Posts
    168

    Default

    OK-

    Tanpri login kòm tèstuze, modpas se egzamen an. Lang Default pou ki itilizatè se Danwa.

    Lè sa a,, ale nan paj sa a: PentaxForums.com - Se Profil: tèstuze
    oswa: PentaxForums.com

    Remake byen ke li enposib a voye yon PM oswa post VM

  6. #6
    Michał Podbielski (vBET Anplwaye) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    OK. Sou paj manm ki itilize modèl: showthread_quickreply pou editè; sou nouvo PM: editor_toolbar_on.

    Ou deja montre editor_toolbar_on epi mwen pa jwenn anyen pwoblèm gen ...

    Kòm mwen konprann ou pa kapab voye VM oswa PM paske editè yo pa gen pwodwi. Ou deja konfime ke ranvèse ou editor_toolbar_on nan yon sèl orijinal ba ou pa gen okenn rezilta yo. Tanpri, fè tcheke menm pou showthread_quickreply ak PM m 'aksè detay de tout fason - mwen pral gen ale la epi jwenn poutèt sa li te kraze ak kouman yo fikse li.
    Si w sispèk ou konfli ak kèk lòt mod - tanpri enfim sa a mod tanporèman epi tcheke pou ede li. Si ou pa gen okenn endis Lè sa a, jis enfim grefon lòt pou editor_toolbar_end zen. Si li pral ede - detèmine ki Plugin egzakteman ki lakòz konfli a epi kite m 'konnen.

    Si ou pa pral manch li yo -, kite m 'an la.

  7. #7
    Senior Member
    Join Date
    Mar 2009
    Posts
    168

    Default Yon ranje

    Hi, Mikal,

    Sa a te sanble anpil etranj, se konsa mwen te regle konfli Plugin ak 'al tou dwat pote nan PHP.

    Mwen te travay kòd la yon ti kras epi li te jwenn solisyon an sa yo. Petèt sa a se yon bagay ki afekte sèlman sit m ', men li sanble ke le pli vit ke quotes sèl Yo te vin entwodwi (\\') nan HTML a, editè a te kraze yo. Se konsa, mwen chanje tout quotes yo sèl quotes doub, ak tout bagay ki te travay. Anplis de sa, mwen te yo retire $ vbphrase ['vbenterprisetranslator_postin_noselection'] ak ranplase li ak 'angle' fisèl la. Gade chanje postal pi ba a nan vbenterprisetranslator_functions_hooks.php:

    Jwenn:

    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"]);

    Ranplase:

    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]);

    Mwen menm tou te gen debarase m de strpo yo ki te rele pou konsève pou resous, tankou vèsyon an difisil-kode sanble nan travay

  8. #8
    Michał Podbielski (vBET Anplwaye) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Hi. Kontan ou fanatik solisyon. Nou pral tès li sou fowòm nou yo ak li si li ap travay sa a pral enkli nan lage pwochen. Pou kounye a ou se sèlman yon sèl ki gen pwoblèm sa a (yo kapab gen kèk konfli ak mod lòt), men solisyon k ap travay pou yo tout gen pi bon an

    TANPRI REMAKE: sa a strpo se li nesesè. Malerezman nan modèl vB3.x diferan editè gen diferan postal yo ki make kote editè. Gen nan yo lè l sèvi avèk <Div id = "$ editorid ' epi gen kèk ki lè l sèvi avèk <Div id = "{$ editorid '. Ou ka byen fasil tcheke li - jis fè rechèch template. Si ou retire si kloz ak strpo Lè sa a, pou kèk editè bouton default radyo lang pa pral montre. Tanpri dwe okouran de sa.

    Epitou si ou chanje ' ", Lè sa a pi pwobableman ou pa bezwen \\ ", Epi se ase gen jis ". Nou pa t 'tcheke li ankò, pou fè kopi si ou vle tcheke l' devan tès nou an.

  9. #9
    Senior Member
    Join Date
    Mar 2009
    Posts
    168

    Default

    Mèsi pou nòt la! Mwen te kounye a mete strpo yo tounen pous

  10. #10
    Senior Member
    Join Date
    Mar 2009
    Posts
    168

    Default

    Sou enstalasyon m 'yo, nenpòt ki ensidan nan "olye pou yo \\" imedyatman repo editè la (menm si w ap dwa-yo depi strings yo kounye a se nan site yon sèl, ou pa ta panse backslashes yo ta kapab nesesè).

Paj 1 nan 2 12 DenyeLast

Tags pou sa a Thread

Posting Permissions

  • Ou Pouvwa pa Post fil nouvo
  • Ou Pouvwa pa Post replies
  • Ou Pouvwa pa Post atachman
  • Ou Pouvwa pa modifye posts ou
  •