MyBB Community Forums

Full Version: MyBB quick edit and posting new thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Having a issue where when wanting to quick edit a post it will not allow the user to do so. it will simply not do anything when clicked.Also have issue where if a user clicks to reply to a post it will post the reply but not refresh or update the thread with that post. Although it will merge the posts if you was the last replyer and update the page.

If any one can help this would be great been stuck on this problem for weeks.
provide forum url & a test user account so that someone can check it.

[note: not sure I'll be able to check it right now. some other helper might check]
Script responsible for the quick edit is 

<script src="{$mybb->asset_url}/jscripts/jeditable/jeditable.min.js"></script>

Check that is in place on showthread template, and server.
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1800"></script>
<script src="{$mybb->asset_url}/jscripts/jeditable/jeditable.min.js"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/thread.js?ver=1800"></script>
That was all in the show template 


User: Test
Password: Password123 
Website: PrimRP.com
^ exactly which version of MyBB you are using ? it is shown at home page of forum admin panel.
1.8.12 ... That could be the issue.

I am using a old Theme

Updated it to :
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1812"></script>
<script src="{$mybb->asset_url}/jscripts/jeditable/jeditable.min.js"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/thread.js?ver=1812"></script>


and

<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1812"></script>

<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1812"></script>

<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1812"></script>

On headerinclude still no luck.
(2017-07-14, 04:14 PM)SafeString Wrote: [ -> ]1.8.12 ... That could be the issue.

I am using a old Theme

Updated it to :
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1812"></script>
<script src="{$mybb->asset_url}/jscripts/jeditable/jeditable.min.js"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/thread.js?ver=1812"></script>


and

<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1812"></script>

<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1812"></script>

<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1812"></script>

On headerinclude still no luck.

v1.8.12 headerinclude should be 

<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1810"></script>

you should edit accordingly. Does the problem exist on the default theme ?
The default theme seems not to be there. hmmm

also updated everything

If I could just get the quick edit to work. That would be the main issue resolved.

<table border="0" cellspacing="$theme[borderwidth]" cellpadding="2" class="tborder" width="100%">
<tr>
<td class="tcat" colspan="2">
{$post['posturl']} {$post['icon']}<span class="smalltext"><strong>{$post['postdate']}, {$post['posttime']}</strong></span></td>
</tr>
<tr>
<td class="trow1" rowspan="2" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<br />
{$post['useravatar']}<br />
<span class="largetext">{$post['profilelink']}</span><br />
{$post['groupimage']}<br />
<strong>{$post['usertitle']}</strong><br />{$post['onlinestatus']}<br />
<br />
{$post['user_details']}


</td>
<td class="trow1" width="85%" valign="top">
<table width="100%">
<tr><td>
<div class="post_content">

{$post['message']}
</div>
{$post['attachments']}
	


</td></tr>
</table>
</td>
</tr>
<tr>
<td class="trow2" width="100%" valign="bottom" height="18">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
		<span style="padding: 20px;">{$post['signature']}<span>
<div class="post_controls">

	<div class="postbit_buttons author_buttons float_left">
		{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}{$post['iplogged']}
	</div>
	<div class="postbit_buttons post_management_buttons float_right">
		{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}{$post['editedmsg']}
	</div>
</div>
</div>
    </tr>
    </table>
</td>
</tr>
</table>
<div style="padding-bottom:0px"></div>

Thats the postbit template. It maybe something broken in there other than that I am at a loss.
Quick edit is called from the postbit_edit template. The credentials you supplied don't work.
<a href="editpost.php?pid={$post['pid']}" id="edit_post_{$post['pid']}" title="{$lang->postbit_edit}" class="postbit_edit"><span>{$lang->postbit_button_edit}</span></a>
<div id="edit_post_{$post['pid']}_popup" class="popup_menu" style="display: none;"><div class="popup_item_container"><a href="javascript:void(0)" class="popup_item quick_edit_button" id="quick_edit_post_{$post['pid']}">{$lang->postbit_quick_edit}</a></div><div class="popup_item_container"><a href="editpost.php?pid={$post['pid']}" class="popup_item">{$lang->postbit_full_edit}</a></div></div>
<script type="text/javascript">
// <!--
	if(use_xmlhttprequest == "1")
	{
		$("#edit_post_{$post['pid']}").popupMenu();
	}
// -->
</script>
That is what is in postbit_edit

So with W3-Responsive Theme it works fine.

Found the issue:
<div class="post_content">
{$post['message']}
</div>

Was in the postbit and it should of been

<div class="post_body scaleimages" id="pid_{$post['pid']}">
{$post['message']}
</div>

Still have a problem with replying. But that not a massive issue.