MyBB Community Forums

Full Version: Problem with quick reply
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've modificate a theme by myself, everything’s just working fine except when I’ll try to make a post with quick reply, the spinner keeps spinning, when I refresh the page, the post displays fine.
He gives the following error:

Quote:On line 3 of postbit_quickdelete: $('quick_delete_971').style.display = '';
Break on error:
$("quick_delete_971") is null

I’ve checked the templates, but can’t find anything uncommon…
I’ve search on same subjects, but didn’t find anything that could help me further, I’ll hope you can.
It’s not a global problem, only happens with this theme
PS: sorry for my bad English
Is the new theme use Jquery ? if yes then you should have to use noconflict() for that.
The theme doesn't use jquery and if that was the problem, I would get a lot more bugs I guess.

But thanks for trying Wink
Can you post the contents of your postbit_quickdelete template?
<a href="editpost.php?pid={$post['pid']}" onclick="Thread.deletePost({$post['pid']}); return false;" style="display: none;" id="quick_delete_{$post['pid']}"><img src="{$theme['imglangdir']}/postbit_delete.gif" alt="{$lang->postbit_qdelete}" title="{$lang->postbit_qdelete}" /></a>
<script type="text/javascript">
// <!--
	$('quick_delete_{$post['pid']}').style.display = '';
// -->
</script>

It's equal as the postbit_quickdelete template in the default theme...
URL and test account?
I can't see the index because .inc/languages/english/onlinetoday.lang.php does not exist.

And it's probably not a good idea to post admin login details in public.

For the original problem:-

In ./inc/init.php, find:
define("TIME_NOW", time()); 

Add after:
define("NO_PLUGINS", 1); 

If it's okay after doing this, it's a plugin, if it still happens, it's something else.
(2010-11-23, 05:30 PM)AJS Wrote: [ -> ]I can't see the index because .inc/languages/english/onlinetoday.lang.php does not exist.

Sorry, we all use the Dutch language files, fixed it.

(2010-11-23, 05:30 PM)AJS Wrote: [ -> ]For the original problem:-

In ./inc/init.php, find:
define("TIME_NOW", time()); 

Add after:
define("NO_PLUGINS", 1); 

If it's okay after doing this, it's a plugin, if it still happens, it's something else.

Still happens...


If I revert the postbit template to the original, it's fixed so there's the problem.

This is the postbit template of my style:

{$ignore_bit}
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="2" class="tborder">
<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>

<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
{$post['usertitle']}<br />
{$post['userstars']}
{$post['groupimage']}
{$post['useravatar']}<br />
{$post['user_details']}


</td>
<td class="trow1" width="85%" valign="top">
<table width="100%">
<tr><td>
<div id="pid_{$post['pid']}">
{$post['subject']}
<hr />
{$post['message']}
</div>
{$post['attachments']}
{$post['signature']}
<div style="text-align: right; vertical-align: bottom;">
{$post['editedmsg']}
{$post['iplogged']}
</div>
</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>
		<td align="left"><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}</span></td>
		<td align="right"><span class="smalltext">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}</span></td>
	</tr>
	</table>
</td>
</tr>
</table>
<div style="padding-bottom:0px"></div>

I've left a lot of div's, classes and id's in this template, because I didn't need them, I guess the quick reply uses one of these to implement the new post into it...if you could tell me wich one it is.