MyBB Community Forums

Full Version: Quick Edit Button Won't Load
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I'm not sure why but it has nothing to do with my templates/themes. I went to the default theme MyBB comes with and I still had no luck finding the quick edit button.

Site: http://www.dexterouspro.com/forums/
Test account...??
sent you a pm with the info
Make sure {$post['button_edit']} is in your postbit and postbit_classic template before {$post['button_quickdelete']}
its right before it
In both templates?? What code is in the postbit_edit template??
<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>

Thats for the primary template...and I checked and saw I have a postbit_edit.gif in my english folders

I even reverted the default theme that came with MyBB and still didn't get a quick edit button
I think I'm missing other buttons as well...like the delete post one
Ok this is really odd...right after you post...it shows all the buttons...but when you refresh they are gone
Check your usergroup permissions and see if your usergroups have permissions to edit posts.
yes my group's permissions are fine...I'm allowed to edit my and other people's posts
Aha, I found the solution to your problem.

Looking at your source, I found the following javascript files included: Probably for that cpu-intensive starry background.

<script src="http://www.dexterouspro.com/forums/images/starrynight/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="http://www.dexterouspro.com/forums/images/starrynight/js/main.js" type="text/javascript"></script>

If you remove that, the MyBB javascript should work just fine.

If you have access to an uncompressed version of starrynight/js/main.js, you could try adding
jQuery.noConflict();
to the top of the javascript file, and change the callback function to simply use
jQuery(document).ready(function(){
, going away from using $() to call jquery functions.

MyBB's javascript is based on prototype, and your starry night background script is based on jquery, and they don't really get along together unless that jQuery.noConflict(); string is in your javascript files.

Edit: If you could tell me where you acquired the starrynight script, I may be able to modify it to work with MyBB instead of against it.
Pages: 1 2