Attachment Upload not work / i am try to find the error its give php upload max something js error
https://pocof1.kuttysoft.com/
Some one know how to fix this
Help to fix
Your theme doesn't include {$post_javascript}
which is required in editpost, newreply and newthread templates
(2020-08-06, 05:55 PM)Crazycat Wrote: [ -> ]Your theme doesn't include {$post_javascript}
which is required in editpost, newreply and newthread templates
owh ok sir . how to fix the attachment upload problem solution please .
Try using the "find updated templates" tool in ACP > Templates & Style > Templates > Find Updated Templates. This will help find the edits that are required to your theme to solve this issue.
(2020-08-06, 06:01 PM)kuttysoft Wrote: [ -> ] (2020-08-06, 05:55 PM)Crazycat Wrote: [ -> ]Your theme doesn't include {$post_javascript}
which is required in editpost, newreply and newthread templates
owh ok sir . how to fix the attachment upload problem solution please .
Find the 3 templates (editpost, newreply and newthread) and add
{$post_javascript}
after
{$headerinclude}
(2020-08-06, 10:24 PM)Crazycat Wrote: [ -> ] (2020-08-06, 06:01 PM)kuttysoft Wrote: [ -> ] (2020-08-06, 05:55 PM)Crazycat Wrote: [ -> ]Your theme doesn't include {$post_javascript}
which is required in editpost, newreply and newthread templates
owh ok sir . how to fix the attachment upload problem solution please .
Find the 3 templates (editpost, newreply and newthread) and add {$post_javascript}
after {$headerinclude}
Still Not Work Sir Please Check Once for me
https://pocof1.kuttysoft.com/
<html>
<head>
<title>{$lang->newthread_in}</title>
{$headerinclude}
{$post_javascript}
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/post.js?ver=1808"></script>
</head>
<body>
{$header}
{$preview}
{$thread_errors}
{$attacherror}
{$moderation_notice}
<form action="newthread.php?fid={$fid}&processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->post_new_thread}</strong><a name="switch" id="switch"></a></td>
</tr>
{$loginbox}
<tr>
<td class="trow2 hide_mobile" width="20%"><strong>{$lang->thread_subject}</strong></td>
<td class="trow2">{$prefixselect}<input type="text" class="textbox" name="subject" maxlength="85" value="{$subject}" tabindex="1" /></td>
</tr>
{$posticons}
<tr>
<td class="trow2 hide_mobile" valign="top"><strong>{$lang->your_message}</strong>{$smilieinserter}</td>
<td class="trow2">
<textarea name="message" id="message" rows="20" cols="70" tabindex="2">{$message}</textarea>
{$codebuttons}
{$multiquote_external}
</td>
</tr>
{$postoptions}
{$modoptions}
{$subscriptionmethod}
{$pollbox}
{$captcha}
</table>
{$attachbox}
<br />
<div style="text-align:center">{$as_post} <input type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" /> <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="5" />{$savedraftbutton}</div>
<input type="hidden" name="action" value="do_newthread" />
<input type="hidden" name="posthash" value="{$posthash}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
<input type="hidden" name="quoted_ids" value="{$quoted_ids}" />
<input type="hidden" name="tid" value="{$tid}" />
{$editdraftpid}
</form>
{$forumrules}
{$footer}
<script type="text/javascript">
$(".author_avatar img").error(function () {
$(this).unbind("error").closest('.author_avatar').remove();
});
</script>
</body>
</html>
(2020-08-06, 09:36 PM)Euan T Wrote: [ -> ]Try using the "find updated templates" tool in ACP > Templates & Style > Templates > Find Updated Templates. This will help find the edits that are required to your theme to solve this issue.
yes sir i am just check in default theme it will work ... current theme i am like thats why try to fix this error
^ remove code like below from those modified templates
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/post.js?ver=1808"></script>
dmn theme issue
(2020-08-07, 04:24 PM).m. Wrote: [ -> ]^ remove code like below from those modified templates
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/post.js?ver=1808"></script>
Tottally copy codes from default template to theme template still its sucks it tottal theme issue i think ..
Did you clean the cache ?