[cXF] Conversation Button under Avatar

[cXF] Conversation Button under Avatar 2.7.4

No permission to download
@BassMan
I have the problem @audikid mentioned when starting conversations from the inbox
upload_2015-1-29_7-20-12.webp

After sending the message there is the short information on top, that the message has been sended, but I stay on the same side. This is confusing.
Enabling or disabling the Redirect function has no effect on my site
 
Try changing the execution order to 9 (debug mode needs to be enabled) for this template modification if it will work.
 
Do you have any other template modification that changes the conversation_add template? If you do, try changing th execution order there.

Or maybe you have changed that tempalte directly?
 
That doesn't help me. Check all your template modifications and see if you have another one for conversation_add template.

Btw, have you enabled debug mode when changing the execution order?
 
The screen should only show that it is an original template without changes.
Debug is on, yes.
Other modifications, no.

conversation1.webp

At least, i only found this because i´ve read the post of @surfinsaxman and your answer.
I have no trouble with this addon because my overlay option is disabled.
 
Ok, than if possible not to waste more time on this since you're not using the overlay function.

If you want to check the template conversation_add than you need to send me the code here within [CODE][/CODE]. The screen doesn't help me much. Or you can also check if you have any red cross when viewing the tempalte names for this template.
 
Ok, than if possible not to waste more time on this since you're not using the overlay function.

Yes :)

Or you can also check if you have any red cross when viewing the tempalte names for this template.

No red cross

Code:
<xen:title>{xen:phrase start_new_conversation}</xen:title>

<form action="{xen:link 'conversations/insert'}" method="post" class="xenForm Preview AutoValidator"
    data-previewUrl="{xen:link conversations/preview}"
    data-redirect="on"
>
    <dl class="ctrlUnit">
        <dt><label for="ctrl_recipients">{xen:if '{$remaining} == 1', '{xen:phrase participant}:', '{xen:phrase participants}:'}</label></dt>
        <dd>
            <input type="text" name="recipients" value="{$to}" id="ctrl_recipients" class="textCtrl AutoComplete {xen:if '{$remaining} == 1', AcSingle}" />
            <xen:if is="{$remaining} != 1">
                <p class="explain">{xen:phrase separate_names_with_comma} <xen:if is="{$remaining} > 0">{xen:phrase you_may_invite_up_to_x_members, 'number={xen:number $remaining}'}</xen:if></p>
            </xen:if>
        </dd>
    </dl>

    <fieldset>
        <dl class="ctrlUnit fullWidth surplusLabel">
            <dt><label for="ctrl_title">{xen:phrase title}:</label></dt>
            <dd><input type="text" name="title" class="textCtrl titleCtrl" id="ctrl_title" maxlength="100" value="{$title}"
                placeholder="{xen:phrase conversation_title}..."
                data-liveTitleTemplate="{xen:phrase start_new_conversation}: <em>%s</em>" /></dd>
        </dl>
   
        <dl class="ctrlUnit fullWidth">
            <dt></dt>
            <dd>{xen:raw $editorTemplate}</dd>
        </dl>
    </fieldset>

    <dl class="ctrlUnit submitUnit">
        <dt></dt>
        <dd>
            <input type="submit" value="{xen:phrase start_conversation}" accesskey="s" class="button primary" />
            <xen:include template="attachment_upload_button" />
            <input type="button" value="{xen:phrase preview}..." class="button PreviewButton JsOnly" />
        </dd>
    </dl>

    <xen:if is="{$attachmentParams}">
        <dl class="ctrlUnit AttachedFilesUnit">
            <dt><label for="ctrl_uploader">{xen:phrase attached_files}:</label></dt>
            <dd><xen:include template="attachment_editor">
                <xen:set var="$attachments" value="{$attachmentParams.attachments}" />
            </xen:include></dd>
        </dl>
    </xen:if>

    <dl class="ctrlUnit">
        <dt></dt>
        <dd>
            <ul>
                <li><label for="ctrl_open_invite"><input type="checkbox" name="open_invite" id="ctrl_open_invite" value="1" /> {xen:phrase allow_anyone_in_conversation_to_invite_others}</label></li>
                <li><label for="ctrl_conversation_locked"><input type="checkbox" name="conversation_locked" id="ctrl_conversation_locked" value="1" /> {xen:phrase lock_conversation_no_responses_will_be_allowed}</label></li>
            </ul>
        </dd>
    </dl>

    <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
</form>
 
Code:
<xen:title>{xen:phrase start_new_conversation}</xen:title>

<form action="{xen:link 'conversations/insert'}" method="post" class="xenForm Preview AutoValidator"
    data-previewUrl="{xen:link conversations/preview}"
    data-redirect="on"
>
    <dl class="ctrlUnit">
        <dt><label for="ctrl_recipients">{xen:if '{$remaining} == 1', '{xen:phrase participant}:', '{xen:phrase participants}:'}</label></dt>
        <dd>
            <input type="text" name="recipients" value="{$to}" id="ctrl_recipients" class="textCtrl AutoComplete {xen:if '{$remaining} == 1', AcSingle}" />
            <xen:if is="{$remaining} != 1">
                <p class="explain">{xen:phrase separate_names_with_comma} <xen:if is="{$remaining} > 0">{xen:phrase you_may_invite_up_to_x_members, 'number={xen:number $remaining}'}</xen:if></p>
            </xen:if>
        </dd>
    </dl>

    <fieldset>
        <dl class="ctrlUnit fullWidth surplusLabel">
            <dt><label for="ctrl_title">{xen:phrase title}:</label></dt>
            <dd><input type="text" name="title" class="textCtrl titleCtrl" id="ctrl_title" maxlength="100" value="{$title}"
                placeholder="{xen:phrase conversation_title}..."
                data-liveTitleTemplate="{xen:phrase start_new_conversation}: <em>%s</em>" /></dd>
        </dl>
  
        <dl class="ctrlUnit fullWidth">
            <dt></dt>
            <dd>{xen:raw $editorTemplate}</dd>
        </dl>
    </fieldset>

    <dl class="ctrlUnit submitUnit">
        <dt></dt>
        <dd>
            <input type="submit" value="{xen:phrase start_conversation}" accesskey="s" class="button primary" />
            <xen:include template="attachment_upload_button" />
            <input type="button" value="{xen:phrase preview}..." class="button PreviewButton JsOnly" />
        </dd>
    </dl>

    <xen:if is="{$attachmentParams}">
        <dl class="ctrlUnit AttachedFilesUnit">
            <dt><label for="ctrl_uploader">{xen:phrase attached_files}:</label></dt>
            <dd><xen:include template="attachment_editor">
                <xen:set var="$attachments" value="{$attachmentParams.attachments}" />
            </xen:include></dd>
        </dl>
    </xen:if>

    <dl class="ctrlUnit">
        <dt></dt>
        <dd>
            <ul>
                <li><label for="ctrl_open_invite"><input type="checkbox" name="open_invite" id="ctrl_open_invite" value="1" /> {xen:phrase allow_anyone_in_conversation_to_invite_others}</label></li>
                <li><label for="ctrl_conversation_locked"><input type="checkbox" name="conversation_locked" id="ctrl_conversation_locked" value="1" /> {xen:phrase lock_conversation_no_responses_will_be_allowed}</label></li>
            </ul>
        </dd>
    </dl>

    <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
</form>
Ok, the template is not modified. Not sure why it don't apply for you. But like said, if you're not using it, than I would like to save time on this.
 
I have got a red cross
View attachment 96670

Template:
Code:
<xen:title>{xen:phrase start_new_conversation}</xen:title> <form action="{xen:link 'conversations/insert'}" method="post" class="xenForm Preview AutoValidator"     data-previewUrl="{xen:link conversations/preview}"     data-redirect="on" >     <dl class="ctrlUnit">         <dt><label for="ctrl_recipients">{xen:if '{$remaining} == 1', '{xen:phrase participant}:', '{xen:phrase participants}:'}</label></dt>         <dd>             <input type="text" name="recipients" value="{$to}" id="ctrl_recipients" class="textCtrl AutoComplete {xen:if '{$remaining} == 1', AcSingle}" />             <xen:if is="{$remaining} != 1">                 <p class="explain">{xen:phrase separate_names_with_comma} <xen:if is="{$remaining} > 0">{xen:phrase you_may_invite_up_to_x_members, 'number={xen:number $remaining}'}</xen:if></p>             </xen:if>         </dd>     </dl>     <fieldset>         <dl class="ctrlUnit fullWidth surplusLabel">             <dt><label for="ctrl_title">{xen:phrase title}:</label></dt>             <dd><input type="text" name="title" class="textCtrl titleCtrl" id="ctrl_title" maxlength="100" value="{$title}"                 placeholder="{xen:phrase conversation_title}..."                 data-liveTitleTemplate="{xen:phrase start_new_conversation}: <em>%s</em>" /></dd>         </dl>             <dl class="ctrlUnit fullWidth">             <dt></dt>             <dd>{xen:raw $editorTemplate}</dd>         </dl>     </fieldset>     <dl class="ctrlUnit submitUnit">         <dt></dt>         <dd>             <input type="submit" value="{xen:phrase start_conversation}" accesskey="s" class="button primary" />             <xen:include template="attachment_upload_button" />             <input type="button" value="{xen:phrase preview}..." class="button PreviewButton JsOnly" />         </dd>     </dl>     <xen:if is="{$attachmentParams}">         <dl class="ctrlUnit AttachedFilesUnit">             <dt>{xen:phrase attached_files}:</dt>             <dd><xen:include template="attachment_editor">                 <xen:set var="$attachments" value="{$attachmentParams.attachments}" />             </xen:include></dd>         </dl>     </xen:if>     <dl class="ctrlUnit">         <dt></dt>         <dd>             <ul>                 <li><label for="ctrl_open_invite"><input type="checkbox" name="open_invite" id="ctrl_open_invite" value="1" /> {xen:phrase allow_anyone_in_conversation_to_invite_others}</label></li>                 <li><label for="ctrl_conversation_locked"><input type="checkbox" name="conversation_locked" id="ctrl_conversation_locked" value="1" /> {xen:phrase lock_conversation_no_responses_will_be_allowed}</label></li>             </ul>         </dd>     </dl>     <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" /> </form>

Replace:
Code:
<xen:if is="{$visitor.permissions.cbuaGroupID.cbuaID}">
<xen:if is="@cbuaShowOverlay">
<xen:title>{xen:phrase start_new_conversation}</xen:title>


<div class="formOverlay">
<a class="close OverlayCloser"></a>
<xen:if is="@cbuaredirect"><form action="{xen:link 'conversations/insert'}" method="post" class="xenForm Preview AutoValidator" data-previewUrl="{xen:link conversations/preview}" >
<xen:else /><form action="{xen:link 'conversations/insert'}" method="post" class="xenForm Preview AutoValidator" data-previewUrl="{xen:link conversations/preview}" data-redirect="on">
</xen:if>
        <dl class="ctrlUnit">
        <dt><label for="ctrl_recipients">{xen:if '{$remaining} == 1', '{xen:phrase participant}:', '{xen:phrase participants}:'}</label></dt>
        <dd>
            <input type="text" name="recipients" value="{$to}" id="ctrl_recipients" class="textCtrl AutoComplete {xen:if '{$remaining} == 1', AcSingle}" />
            <xen:if is="{$remaining} != 1">
                <p class="explain">{xen:phrase separate_names_with_comma} <xen:if is="{$remaining} > 0">{xen:phrase you_may_invite_up_to_x_members, 'number={xen:number $remaining}'}</xen:if></p>
            </xen:if>
        </dd>
    </dl>

    <fieldset>
        <dl class="ctrlUnit fullWidth surplusLabel">
            <dt><label for="ctrl_title">{xen:phrase title}:</label></dt>
            <dd><input type="text" name="title" <xen:if is="@cbuasubject">value="{xen:phrase conversationbutton_subject}" onfocus="this.select()"</xen:if> class="textCtrl titleCtrl" id="ctrl_title" <xen:if is="@cbuafocus">autofocus="on"</xen:if> maxlength="100" value="{$title}" placeholder="{xen:phrase conversation_title}..."    data-liveTitleTemplate="{xen:phrase start_new_conversation}: <em>%s</em>" /></dd>
        </dl>
  
        <dl class="ctrlUnit fullWidth">
            <dt></dt>
                <xen:if is="@cbuaeditor">
                    <dd>{xen:raw $editorTemplate}</dd>
                <xen:else />
                <dd><textarea color="#ffffff" name="message" id="ctrl_message" rows="8" class="textCtrl Elastic"></textarea></dd>
                </xen:if>

        </dl>
    </fieldset>

    <dl class="ctrlUnit submitUnit">
        <dt></dt>

        <dd>
                    <input type="submit" value="{xen:phrase start_conversation}" accesskey="s" class="button primary" />
        </dd>
    </dl>
      
    <dl class="ctrlUnit">
        <dt></dt>
        <dd>
            <ul>
                <li><label for="ctrl_open_invite"><input type="checkbox" name="open_invite" id="ctrl_open_invite" value="1" /> {xen:phrase allow_anyone_in_conversation_to_invite_others}</label></li>
                <li><label for="ctrl_conversation_locked"><input type="checkbox" name="conversation_locked" id="ctrl_conversation_locked" value="1" /> {xen:phrase lock_conversation_no_responses_will_be_allowed}</label></li>
            </ul>
        </dd>
    </dl>

    <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
</form>
</div>
<xen:else />
<xen:title>{xen:phrase start_new_conversation}</xen:title>

<form action="{xen:link 'conversations/insert'}" method="post" class="xenForm Preview AutoValidator"
    data-previewUrl="{xen:link conversations/preview}"
    data-redirect="on"
>
    <dl class="ctrlUnit">
        <dt><label for="ctrl_recipients">{xen:if '{$remaining} == 1', '{xen:phrase participant}:', '{xen:phrase participants}:'}</label></dt>
        <dd>
            <input type="text" name="recipients" value="{$to}" id="ctrl_recipients" class="textCtrl AutoComplete {xen:if '{$remaining} == 1', AcSingle}" />
            <xen:if is="{$remaining} != 1">
                <p class="explain">{xen:phrase separate_names_with_comma} <xen:if is="{$remaining} > 0">{xen:phrase you_may_invite_up_to_x_members, 'number={xen:number $remaining}'}</xen:if></p>
            </xen:if>
        </dd>
    </dl>

    <fieldset>
        <dl class="ctrlUnit fullWidth surplusLabel">
            <dt><label for="ctrl_title">{xen:phrase title}:</label></dt>
            <dd><input type="text" name="title" class="textCtrl titleCtrl" id="ctrl_title" <xen:if is="@cbuafocus">autofocus="on"</xen:if> maxlength="100" value="{$title}"
                placeholder="{xen:phrase conversation_title}..."
                data-liveTitleTemplate="{xen:phrase start_new_conversation}: <em>%s</em>" /></dd>
        </dl>
  
        <dl class="ctrlUnit fullWidth">
            <dt></dt>
            <dd>{xen:raw $editorTemplate}</dd>
        </dl>
    </fieldset>

    <dl class="ctrlUnit submitUnit">
        <dt></dt>
        <dd>
            <input type="submit" value="{xen:phrase start_conversation}" accesskey="s" class="button primary" />
            <xen:include template="attachment_upload_button" />
            <input type="button" value="{xen:phrase preview}..." class="button PreviewButton JsOnly" />
        </dd>
    </dl>

    <xen:if is="{$attachmentParams}">
        <dl class="ctrlUnit AttachedFilesUnit">
            <dt>{xen:phrase attached_files}:</label></dt>
            <dd><xen:include template="attachment_editor">
                <xen:set var="$attachments" value="{$attachmentParams.attachments}" />
            </xen:include></dd>
        </dl>
    </xen:if>

    <dl class="ctrlUnit">
        <dt></dt>
        <dd>
            <ul>
                <li><label for="ctrl_open_invite"><input type="checkbox" name="open_invite" id="ctrl_open_invite" value="1" /> {xen:phrase allow_anyone_in_conversation_to_invite_others}</label></li>
                <li><label for="ctrl_conversation_locked"><input type="checkbox" name="conversation_locked" id="ctrl_conversation_locked" value="1" /> {xen:phrase lock_conversation_no_responses_will_be_allowed}</label></li>
            </ul>
        </dd>
    </dl>

    <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
</form>
</xen:if>
<xen:else />
<xen:title>{xen:phrase start_new_conversation}</xen:title>

<form action="{xen:link 'conversations/insert'}" method="post" class="xenForm Preview AutoValidator"
    data-previewUrl="{xen:link conversations/preview}"
    data-redirect="on"
>
    <dl class="ctrlUnit">
        <dt><label for="ctrl_recipients">{xen:if '{$remaining} == 1', '{xen:phrase participant}:', '{xen:phrase participants}:'}</label></dt>
        <dd>
            <input type="text" name="recipients" value="{$to}" id="ctrl_recipients" class="textCtrl AutoComplete {xen:if '{$remaining} == 1', AcSingle}" />
            <xen:if is="{$remaining} != 1">
                <p class="explain">{xen:phrase separate_names_with_comma} <xen:if is="{$remaining} > 0">{xen:phrase you_may_invite_up_to_x_members, 'number={xen:number $remaining}'}</xen:if></p>
            </xen:if>
        </dd>
    </dl>

    <fieldset>
        <dl class="ctrlUnit fullWidth surplusLabel">
            <dt><label for="ctrl_title">{xen:phrase title}:</label></dt>
            <dd><input type="text" name="title" class="textCtrl titleCtrl" id="ctrl_title" <xen:if is="@cbuafocus">autofocus="on"</xen:if> maxlength="100" value="{$title}"
                placeholder="{xen:phrase conversation_title}..."
                data-liveTitleTemplate="{xen:phrase start_new_conversation}: <em>%s</em>" /></dd>
        </dl>
  
        <dl class="ctrlUnit fullWidth">
            <dt></dt>
            <dd>{xen:raw $editorTemplate}</dd>
        </dl>
    </fieldset>

    <dl class="ctrlUnit submitUnit">
        <dt></dt>
        <dd>
            <input type="submit" value="{xen:phrase start_conversation}" accesskey="s" class="button primary" />
            <xen:include template="attachment_upload_button" />
            <input type="button" value="{xen:phrase preview}..." class="button PreviewButton JsOnly" />
        </dd>
    </dl>

    <xen:if is="{$attachmentParams}">
        <dl class="ctrlUnit AttachedFilesUnit">
            <dt>{xen:phrase attached_files}:</label></dt>
            <dd><xen:include template="attachment_editor">
                <xen:set var="$attachments" value="{$attachmentParams.attachments}" />
            </xen:include></dd>
        </dl>
    </xen:if>

    <dl class="ctrlUnit">
        <dt></dt>
        <dd>
            <ul>
                <li><label for="ctrl_open_invite"><input type="checkbox" name="open_invite" id="ctrl_open_invite" value="1" /> {xen:phrase allow_anyone_in_conversation_to_invite_others}</label></li>
                <li><label for="ctrl_conversation_locked"><input type="checkbox" name="conversation_locked" id="ctrl_conversation_locked" value="1" /> {xen:phrase lock_conversation_no_responses_will_be_allowed}</label></li>
            </ul>
        </dd>
    </dl>

    <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
</form>
</xen:if>
Not here. In the template view like this:

upload_2015-1-29_21-21-18.webp
 
Top Bottom