MyBB Community Forums

Full Version: Unable to Edit Posts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I click Edit and... nothing... I have "Can edit own posts" enabled in the admin user group. The Delete, Quote and Report links/buttons all work it's just the Edit that doesn't. I'm pretty sure this worked at some point and I might have messed it up but I don't know what I did.

Any help you can provide is greatly appreciated!! Below I have a link to my forum (if needed) and a copy of my postbit_edit template. Anything else you need just let me know.

Forum LInk[/code]

<a href="editpost.php?pid={$post['pid']}" id="edit_post_{$post['pid']}">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>
Does the little dropdown box appear?
Edit, just registered.

Check your postbit_classic for the below. If it is not there, place it after "{$post['button_quote']}"
{$post['button_edit']}
Thanks for the quick reply!

It's just supposed to be a simple link like the other delete and quote links without the button.

I have the "{$post['button_edit']}" in the postbit_classic just before the quickdelete

But no the drop down doesn't appear.
Try replacing postbit_edit with the default code.

<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>

--------------------------------------------------------------

I just had a thought, I had this happen to me a little while ago, it looks like (from your header in the source) you are running jquery.

I'm guessing it is not it no.conflict mode.


Go to your template>Ungrouped Templates>headerinclude and add the below after your jquery.
Note: Do NOT replace everything in headerinclude, just add the line.
<script type="text/javascript">jQuery.noConflict();</script>


It should look like this:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
Okay replaced it with the default code above and it works... sort of. It doesn't give me a drop down box choice of "Quick Edit" or "Full Edit" like it does here. It just goes right to a full edit.

But now I need to take out the graphic image and just make it a plain link like I have for the delete & quote.
I have updated my post above.
It worked!!! Thank you so much for your help!! I'm a jQuery and javascript idiot so I never would have figured that out on my own!!

You are awesome!
I'm glad it worked.
At least you learned something, now you know for next time. Smile