MyBB Community Forums

Full Version: Quick Edit Preview Release 1
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok...So I really need help this time around. This modification has probably been one of the smallest, but most complex modifications I have written yet.

There are still several things that need fixing

1) None but the showthread find_replaces_templates() function will work (on activation) in the plugin
2) The Update Button wont work for some reason
3) The "Loading... Please wait" will only show up once

I'll be willing to give credit to anyone that helps me out on this one. My main objective is to get this out to the public as soon as possible

Thanks,
Tikitiki
1) You have to escape [ and ] and ? characters in your find part. Use \[ and \] and \?!

Try the attached file.

For question 2 and 3, I can't help you. I don't know much about javascript and I don't like to use it.
Thanks Smethead, It all works now except:

find_replace_templatesets("showthread", '#$quickedit\n#', "", 0);

and

find_replace_templatesets("postbit_edit", '#<a href="editpost.php\?pid=\$post\[pid\]"><img src="\$theme\[imglangdir\]/postbit_edit.gif" border="0" alt="\$lang->postbit_edit" \/></a>#', "<a href=\"editpost.php?pid=\$post[pid]\"><img src=\"\$theme[imglangdir]/postbit_edit.gif\" border=\"0\" alt=\"\$lang->postbit_edit\" /></a>\n<a onClick=\"javascript:quickedit('\$post[pid]');\"><img src=\"\$theme[imglangdir]/postbit_quickedit.gif\" border=\"0\" alt=\"Quick Edit\" /></a>\n");
If someone cant help me for #2 I will rewrite it using iframes and hope it works