Jump to the post that solved this thread.
Solved: 1 Year, 2 Months, 1 Week ago Attachment Upload not work
#1
Solved: 1 Year, 2 Months, 1 Week ago
Attachment Upload not work / i am try to find the error its give php upload max something js error 

[Image: Screenshot_1657.png]

https://pocof1.kuttysoft.com/

Some one know how to fix this 

Help to fix
----------------------------No -------- Signature ---------------------------------
Reply
#2
Solved: 1 Year, 2 Months, 1 Week ago
Your theme doesn't include {$post_javascript} which is required in editpost, newreply and newthread templates
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM or Discord
Reply
#3
Solved: 1 Year, 2 Months, 1 Week ago
(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  .
----------------------------No -------- Signature ---------------------------------
Reply
#4
Solved: 1 Year, 2 Months, 1 Week ago
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.
Reply
#5
Solved: 1 Year, 2 Months, 1 Week ago
(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}
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM or Discord
Reply
#6
Solved: 1 Year, 2 Months, 1 Week ago
(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}&amp;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}&nbsp;<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>

[Image: Screenshot_1658.png]


(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
----------------------------No -------- Signature ---------------------------------
Reply
#7
Solved: 1 Year, 2 Months, 1 Week ago
^ remove code like below from those modified templates
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/post.js?ver=1808"></script>
Reply
#8
Solved: 1 Year, 2 Months, 1 Week ago
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 ..
----------------------------No -------- Signature ---------------------------------
Reply
#9
Solved: 1 Year, 2 Months, 1 Week ago
Did you clean the cache ?
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM or Discord
Reply
#10
Solved: 1 Year, 2 Months, 1 Week ago
(2020-08-07, 07:34 PM)Crazycat Wrote: Did you clean the cache ?

yes tried sir ..
----------------------------No -------- Signature ---------------------------------
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)