Столкнулся с проблемой, помогите переделать кнопку загрузить ресурс не во всплывающие окно, а в форму для вставки файла.
Отключение всплывающих окон не помогает т.к после забрузки файла нет кнопки продолжить, остается только кнопка удалить.
Вот сам код:
<xen:require js="js/xenforo/attachment_editor.js" />
<xen:require css="attachment_editor.css" />
<xen:require js="js/xenresource/file_uploader.js" />
<xen:if is="{$xenOptions.swfUpload} AND {$visitor.enable_flash_uploader}">
<xen:require js="js/swfupload/swfupload.min.js" />
</xen:if>
<xen:require css="file_uploader.css" />
<div id="UploadedFile_{$uploaderId}" class="uploadedFile">
<a href="" class="Delete" title="{xen:phrase delete}">x</a>
<div class="Progress"><div class="gauge"><div class="Meter"> </div></div></div>
<div class="Filename"> </div>
</div>
<input type="hidden" name="file_hash" value="{$fileParams.{$uploaderId}.hash}" />
<span id="FileUploader_{$uploaderId}" class="buttonProxy FileUploader"
style="display: none"
data-uploaderid="{$uploaderId}"
data-placeholder="#SWFUploadPlaceHolder_{$uploaderId}"
data-trigger="#ctrl_uploader_{$uploaderId}"
data-result="#UploadedFile_{$uploaderId}"
data-postname="upload"
data-maxfilesize="{$fileConstraints.{$uploaderId}.size}"
data-maxuploads="{$fileConstraints.{$uploaderId}.count}"
data-extensions="{xen:helper implode, {$fileConstraints.{$uploaderId}.extensions}, ','}"
data-action="{xen:link 'full:attachments/do-upload.json', '',
'hash={$fileParams.{$uploaderId}.hash}',
'content_type={$fileParams.{$uploaderId}.content_type}',
'key={$attachmentButtonKey}'}"
data-uniquekey="{$attachmentButtonKey}"
data-err-110="{xen:phrase uploaded_file_is_too_large}"
data-err-120="{xen:phrase uploaded_file_is_empty}"
data-err-130="{xen:phrase uploaded_file_does_not_have_an_allowed_extension}"
data-err-unknown="{xen:phrase upload_failed}">
<span id="SWFUploadPlaceHolder_{$uploaderId}"></span>
<input type="button" value="{xen:if {$buttonText}, {xen:raw $buttonText}, {xen:phrase upload_file}}"
id="ctrl_uploader_{$uploaderId}" class="button OverlayTrigger DisableOnSubmit"
data-href="{xen:link full:attachments/upload, '', '_params={$fileParams.{$uploaderId}}', 'key={$attachmentButtonKey}'}"
data-hider="#FileUploader_{$uploaderId}" />
<span class="HiddenInput" data-name="_xfSessionId" data-value="{$sessionId}"></span>
<xen:foreach loop="$fileParams.{$uploaderId}.content_data" key="$dataKey" value="$dataValue"><span class="HiddenInput" data-name="content_data[{$dataKey}]" data-value="{$dataValue}"></span>
</xen:foreach>
</span>
<noscript>
<a href="{xen:link 'attachments/upload', '', '_params={$fileParams.{$uploaderId}}'}" class="button" target="_blank">{xen:if {$buttonText}, {xen:raw $buttonText}, {xen:phrase upload_file}}</a>
</noscript>
Сказали написать тут хотя вопрос касается всего форума в целом.