|
QuickEdit
What does this do?Edit your posts without having to load another post edit page! This emulates the quick edit feature available on most modern forums nowadays. Tested to work in:
Advantages over other quick edit scripts:
DemonstrationA demonstration of Quick Edit can be found at: http://s3.invisionfree.com/IF_Addons_Demo/ A screenshot:
InstallationThe Bare MinimumThe bare minimum should work for most forums. Just copy the code in your administration panel into the footer textbox under Skinning & Styles > Board Wrappers. <!-- Quick Edit @ http://code.google.com/p/ifaddons/ --> <script type="text/javascript" src="http://ifaddons.googlecode.com/svn/common/release/common.js"></script> <script type="text/javascript" src="http://ifaddons.googlecode.com/svn/quickedit/release/3.2.0.js"></script> <script type="text/javascript"> SKIFS.quickEdit.construct() </script> Customized SettingsYou can expand on the bare minimum by changing some of the configuration options. See below for an example. <!-- Quick Edit @ http://code.google.com/p/ifaddons/ -->
<script type="text/javascript" src="http://ifaddons.googlecode.com/svn/common/release/common.js"></script>
<script type="text/javascript" src="http://ifaddons.googlecode.com/svn/quickedit/release/3.2.0.js"></script>
<script type="text/javascript">
with(SKIFS.quickEdit.config) {
button = '<img src="http://ifaddons.googlecode.com/svn/quickedit/release/support/button.png" alt="Quick Edit" /> '
editHistoryEnabled = true
addQuickEditButton = true
hideEditButtons = false
enableDoubleClick = false
}
SKIFS.quickEdit.construct()
</script>Changing the value of button will change the quick edit button image. Changing editHistoryEnabled to false will disable the edit-by-lines when saving. Changing addQuickEditButton to false will not add a quick edit button. Changing hideEditButtons to true will hide the regular edit button (only if quick edit is supported). Changing enableDoubleClick to true will allow double clicking the post area to edit the post. Customized StylesYou can expand on the customized settings version by constructing the quick edit add-on with a use custom style option. See below for information. <!-- Quick Edit @ http://code.google.com/p/ifaddons/ -->
<script type="text/javascript" src="http://ifaddons.googlecode.com/svn/common/release/common.js"></script>
<script type="text/javascript" src="http://ifaddons.googlecode.com/svn/quickedit/release/3.2.0.js"></script>
<script type="text/javascript">
with(SKIFS.quickEdit.config) {
button = '<img src="http://ifaddons.googlecode.com/svn/quickedit/release/support/button.png" alt="Quick Edit" /> '
editHistoryEnabled = true
addQuickEditButton = true
hideEditButtons = false
enableDoubleClick = false
}
SKIFS.quickEdit.construct(true)
</script>Notice that true has been added to SKIFS.quickEdit.construct(). Put the necessary CSS code into the header: <style type="text/css">
.quick-edit { border: 3px solid #000000; padding: 4px; line-height: 100% }
.quick-edit textarea { width: 100%; border: 1px solid #999999; padding: 5px; color: #000000; background: #FFFFFF; font-family: Verdana, sans-serif }
.quick-edit .editor { margin-bottom: 3px; }
.quick-edit .right-buttons input { width: 30px; background: #EFEFEF; border: 1px solid #999999; border-top: 0; margin: -4px 0 0 3px; cursor: pointer }
.quick-edit .right-buttons input:hover { background: #CCCCCC; }
.quick-edit .break { height: 1px; margin: -1px 0 0 0; clear: both }
.quick-edit .save { font-weight: bold }
.quick-edit .full { margin-left: 20px }
</style>Play with the CSS to see what you can get. IncompatibilitiesMember Info Above Post by StefanIf you are using Member Info Above Post by Stefan, try the following code. If you are not already using a barebones version, merge the differences. <!-- Quick Edit @ http://code.google.com/p/ifaddons/ -->
<script type="text/javascript" src="http://ifaddons.googlecode.com/svn/common/release/common.js"></script>
<script type="text/javascript" src="http://ifaddons.googlecode.com/svn/quickedit/release/3.2.0.js"></script>
<script type="text/javascript">
with(SKIFS.quickEdit.config) {
postCellCount = 6
}
SKIFS.quickEdit.construct()
</script>Known IssuesThere are currently no known issues. |
Is there a way to remove "This post has been edited by" when using the quick edit?
Use the "Customized Version" and change "editHistoryEnabled = true" to "editHistoryEnabled = false"
Can the quick edit enable word wrap?
Oh nevermind @@; Sorry if I ask too many questions. Thank you the replies. Excellent code.
You mean the edit box? It's a browser-specific thing, but I think you can force it a certain way for some browsers. However, you would have to change the code and host the file yourself. IE doesn't word-wrap by default, if I remember right.
It sort of lags quite a bit on IE. Is it possible to fix that?
Other than that, it's very efficient.
I'm not sure. :/
Is it possible to change the font color for the text "QUICK EDIT"?
You might be able to use CSS.
I tried editing the CSS, but unfortunately I'm not very good at CSS. >:
Hi, this code works perfect but it sort of messes around with the FULL EDIT function. When you FULL EDIT a post it takes you back to the original post, first page of the thread instead of taking you back to the post you just edited. This only happens with FULL EDIT and on topics with more than one page, otherwise it works like a charm.
Is there any way to fix that ?
It's been too long for me to say...
Well thanks for the code. It does indeed work really good, except some of my members are somewhat annoyed a little.
Is there a way to change the logo/image of the quick edit to one of our own image??
Yes. Just use the "Customized Styles" version and change: button = '<img src="http://ifaddons.googlecode.com/svn/quickedit/release/support/button.png" alt="Quick Edit" /> '
Is there a way for the code to read certain characters like the joint ae, the centre dot, and the curled ' ? When I use quick edit, these characters are all changed to black diamonds with a question mark in them...
It should work. Otherwise I don't know -- I don't support this anymore. Didn't IF Forums move to a new forum software anyway?
I don't think they did... And idk why but it doesn't work. That's so odd. Thank you though. <3