MyBB Community Forums

Full Version: Quick Edit missing..!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

I need help again, now it's " Quick Edit " option missing at my forum post bit(iam using classic post bit).
Iam not sure but i didnt edit any template. I just saw this bug after i uninstalled " Fit on Page " plugin.
Can someone help me how to recover it?



just Revert your postbit_classic theme, to get originally.
but, you will loose other additional code may created by other plugins.
Just revert postbit_edit template back to original.
As you said i will loose other additionals codes created by other plugins, but i dnt want to loose it. Isn't there any other way to add quick edit code properly?
Well there is no option to revert postbit_edit template. Someone help, i dont wanna loose other codes that are in my postbit templates..!

Here is my postbit_edit template:

<a href="editpost.php?pid={$post['pid']}" id="edit_post_{$post['pid']}"><img src="{$theme['imgdir']}/postbit_edit.png" class="boton" alt="{$lang->postbit_edit}" title="{$lang->postbit_edit}" /></a>
<div id="edit_post_{$post['pid']}_popup" class="popup_menu" style="display: none;">{$repl}<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>

Someone check it please and say something!!!
Replace it with:

<a href="editpost.php?pid={$post['pid']}" id="edit_post_{$post['pid']}"><img src="{$theme['imgdir']}/postbit_edit.png" class="boton" 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>{$repl}<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> 
Hey faviouz, please check again your code.
Just see what happens after i replace with your code Sad
Just revert the template back to default, really. In case anything goes wrong, you can just use your code above.

You will have to edit the template afterwards though, it uses a different scheme for the buttons.
In your Admincp >> Configuration >> Server and Optimization Options >> Enable XMLHttp request features?

Is it set to yes?
(2011-04-05, 06:51 PM)faviouz Wrote: [ -> ]Just revert the template back to default, really. In case anything goes wrong, you can just use your code above.

You will have to edit the template afterwards though, it uses a different scheme for the buttons.

Well the button is missing now, how to get it back?

(2011-04-05, 11:49 PM)- G33K - Wrote: [ -> ]In your Admincp >> Configuration >> Server and Optimization Options >> Enable XMLHttp request features?

Is it set to yes?

Yes G33K

Now just find:

<img src="{$theme['imglangdir']}/postbit_edit.gif" alt="{$lang->postbit_edit}" title="{$lang->postbit_edit}" />

And replace with:

<img src="{$theme['imgdir']}/postbit_edit.png" class="boton" alt="{$lang->postbit_edit}" title="{$lang->postbit_edit}" />
Pages: 1 2