Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 10 of 12

Thread: Error in editor

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default Error in editor

    For users who have a foreign language enabled, the PM and visitor message editors vanish when the editor_toolbar_end hook to add the language radio options is enabled. This was not the case previously in 3.3.0- can you please look into this?

    For regular posts, the radio buttons don't appear at all.

    I've temporarily disabled this hook so that people can post.
    Last edited by moman; 13-04-10 at 22:33.

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

    Default

    I just checked booth PM and visitor messages (fast and advanced) on our forum and it works. Maybe I checked in wrong place. Can you please tell do you see same issue on this forum?

    If yes then please give exact URL to page with error and tell what are your User settings.

    If not then please:
    1. Tell which vB version you are using
    2. Check do you have changed templates for those editors. If yes - please check does issue exist after reversing changes (please make backup of actual template content, so you will be able to put it back).
    3. Please send us exact content of your templates for those editors which disappears.

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

    Default

    3.8.5. Reverting the template did nothing (though you'd think it would). Perhaps another plugin is causing this, although it shouldn't and worst case we can hard-code a workaround.

    The problematic function is vbet_editor_toolbar_end, FYI.

    My template code for editor_toolbar_on is:

    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 at 06:07.

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

    Default

    I found nothing wrong in template which you gave.

    Please PM access details to Admin CP and FTP - we will check and correct it on place.

    EDIT:
    Also I just updated this forum to vB3.8.5 - still cannot find the issue here. Please give us exact links to pages on our forum here on yours the issue exists. We will check which templates exactly are used to generate those editors and maybe it help fixing issue without access to your forum.
    Last edited by vBET; 15-04-10 at 02:11.

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

    Default

    OK-

    Please login as testuser, password is test. Default language for that user is Danish.

    Then, go to this page: PentaxForums.com - Se Profil: testuser
    or: PentaxForums.com

    Note that it is impossible to send a PM or post VM

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

    Default

    OK. On member page is used template: showthread_quickreply for editor; on new PM: editor_toolbar_on.

    You already shown editor_toolbar_on and I found no issue there...

    As I understand you cannot send VM or PM because editors are not generated. You already confirmed that reversing your editor_toolbar_on to original one gives you no results. Please made same check for showthread_quickreply and PM me access details anyway - I will have to go there and find why it broke and how to fix it.
    If you suspect conflict with some other mod - please disable this mod temporarily and check does it help. If you have no clue then just disable other plugins for editor_toolbar_end hook. If it will help - determine which plugin exactly causes the conflict and let me know.

    If you will not handle it - let me in there.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •