MyBB Community Forums

Full Version: Quick edit button not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I tried upgrading today without much luck and I'm back on 1.6 and now have a quick edit button problem.

This is what's in headerinclude


<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
{$stylesheets}
<script type="text/javascript">
<!--    var cookieDomain = "{$mybb->settings['cookiedomain']}";    var cookiePath = "{$mybb->settings['cookiepath']}";    var cookiePrefix = "{$mybb->settings['cookieprefix']}";    var deleteevent_confirm = "{$lang->deleteevent_confirm}";    var removeattach_confirm = "{$lang->removeattach_confirm}";    var loading_text = '{$lang->ajax_loading}';    var saving_changes = '{$lang->saving_changes}';    var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";    var my_post_key = "{$mybb->post_code}";    var imagepath = "{$theme['imgdir']}";// --></script>
{$newpmmsg}

Is it something in here?

Thanks in advance.
can you share the postbit_edit template of your theme...
This is it:

<a href="editpost.php?pid={$post['pid']}" id="edit_post_{$post['pid']}"><img src="{$theme['imglangdir']}/postbit_edit.gif" alt="{$lang->postbit_edit}" title="{$lang->postbit_edit}" /></a>
<div id="edit_post_{$post['pid']}_popup" class="popup_menu" style="display: none;"><div class="popup_item_container"><a href="javascript:;" onclick="Thread.quickEdit({$post['pid']});" class="popup_item">{$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") { new PopupMenu("edit_post_{$post['pid']}"); }// --></script>
Can ypu see whether your showthread template contains:


<script type="text/javascript" src="jscripts/thread.js?ver=1603"></script>
Yes I also have thankyou/like plugin...

<html>
<head>
<title>{$thread['subject']}</title>
{$headerinclude}
<script type="text/javascript">
<!-- var quickdelete_confirm = "{$lang->quickdelete_confirm}";// --></script>
<script type="text/javascript" src="jscripts/thread.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/thankyoulike.js?ver=120"></script>

<script type="text/javascript">

<!--
&nbsp;&nbsp;&nbsp;&nbsp;var tylEnabled = "{$mybb->settings['g33k_thankyoulike_enabled']}";
&nbsp;&nbsp;&nbsp;&nbsp;var tylCollapsible = "{$mybb->settings['g33k_thankyoulike_collapsible']}";
&nbsp;&nbsp;&nbsp;&nbsp;var tylUser = "{$mybb->user['uid']}";
-->
</script>
</head>
<body>
{$header}
{$pollbox}
<div class="float_left">
{$multipage}

</div>
<div class="float_right">
{$newreply}
</div>
{$ratethread}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-bottom-width: 0;">
<tr>
<td class="thead" colspan="2">
<div style="float: right;">
<span class="smalltext"><strong><a href="showthread.php?mode=threaded&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->linear}</a></strong></span>
</div>
<div>
<strong>{$thread['threadprefix']}{$thread['subject']}</strong>
</div>
</td>
</tr>
{$classic_header}
</table>
<div id="posts">
{$posts}
</div>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-top-width: 0;">
<tr>
<td colspan="2" class="tfoot">
{$search_thread}
<div>
<strong>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</strong>
</div>
</td>
</tr>
</table>
<div class="float_left">
{$multipage}
</div>
<div style="padding-top: 4px;" class="float_right">
{$newreply}
</div>
<br style="clear: both;" />
{$quickreply}
{$threadexbox}
{$similarthreads}
<br />
<div class="float_left">
<ul class="thread_tools">
<li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li>
<li class="sendthread"><a href="sendthread.php?tid={$tid}">{$lang->send_thread}</a></li>
<li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a></li>
</ul>
</div>

<div class="float_right" style="text-align: right;">
{$moderationoptions}
{$forumjump}
</div>
<br style="clear: both;" />
{$usersbrowsing}
{$footer}
</body>
</html>
can you share your forum url and a test account so me or anyone can check this...
Great thanks. I've sent you a normal user account via PM. Is this sufficient?

Thanks so much for checking this. Smile