The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Quick Edit! -Edit posts directly from within the thread itself Details »» | |||||||||||||||||||||||||||
Quick Edit! -Edit posts directly from within the thread itself
Developer Last Online: May 2021
This hack will allow your users to edit their posts without having to load the editpost page..
How it works: In the bottom right-hand corner of all your posts will be a small Quick Edit icon (users will only see it in posts which belong to them).. When you click it a text box will drop down below your post allowing you to edit it instantly in the thread itself. This will save you a lot of time when fixing those spelling mistakes, typos, or broken links. It should also help save on bandwidth since your users will no longer need to load the editpost page. Very easy to install.. 2 file edits, 2 template edits, and 1 template to add. Known bug: Quick Edit will NOT work with Opera web browsers. Those who use Opera simply won't see the option to quick edit (icon will be invisible when viewed in that browser). It'll work fine in other browsers such as IE or firefox. Support: Due to work my time is limited as of late so this hack is released AS IS with no support. However, several questions have already been answered in this thread. Update (7-25-04): Fixed a minor bug with the QE window moving further to the left with each click in mozilla/firefox browsers. To update simply replace your showthread_quickedit template with the new one. Thanks to sv1cec for this bug fix. Add Ons: *Show the "delete post" option for those who have permission in the Quick Edit form (also adds edit reason). (by sv1cec) *Show the "edit reason" field in the Quick Edit form. (Requested by Convergys) *Alternate Quickedit icon image (by ryancooper) *Another alternate Quickedit icon (by sv1cec) *Another alternate Quickedit icon (by charlesk) *Yet another alternate Quickedit icon (by iguanairs) *Give users the option to disable quick edit in the usercp (by pco) If you find this hack useful please click the install button. Screenshot attached: Show Your Support
|
Comments |
#172
|
||||
|
||||
Tom,
Thanks, I'll tinker with that code this weekend and see if we can make it work. As for the auto-subscribing problem that phoenixBB was having, it turned out to be something else not related to Quick Edit. Is it auto-subscribing your members? |
#173
|
||||
|
||||
Quote:
Quote:
1. When admin1 quickedits a post that isn't his, nothing happens. 2. When admin1 quickedits his own post, he is subscribed. 3. When admin2 quickedits her own post, she is subscribed. 4. When testuser1 quickedits his own post he is subscribed. My current quickedit template: HTML Code:
<span id="quickedit_$post[postid]"> <img src="$stylevar[imgdir_button]/quickedit.gif" alt="Quick Edit" border="0" /> <script type="text/javascript"> vbmenu_register("quickedit_$post[postid]", true); </script> </span> <div class="vbmenu_popup" id="quickedit_$post[postid]_menu" style="display:none"> <form enctype="multipart/form-data" name="vbulletinform" style="display:inline;" action="editpost.php" method="post"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="do" value="updatepost" /> <input type="hidden" name="p" value="$post[postid]" /> <input type="hidden" name="posthash" value="$posthash" /> <input type="hidden" name="poststarttime" value="$poststarttime" /> <input type="hidden" name="disablesmilies" value="0" /> <input type="hidden" name="parseurl" value="1" id="cb_parseurl" /> <input type="hidden" name="iconid" value="$post[iconid]" /> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> <tr> <td class="tcat" align="left"> <strong>$vbphrase[edit_post]</strong> </td> </tr> <tbody> <tr valign="top"> <td class="panelsurround" align="center"> <div class="panel"> <div align="left"> <div class="smallfont" style="margin-bottom:$stylevar[formspacer]px"> <div>$vbphrase[reason_for_editing]:</div> <div><input type="text" class="bginput" name="reason" value="$newpost[reason]" size="50" maxlength="200" tabindex="1" title="$vbphrase[optional]" /><input type="hidden" name="reason_exists" value="$edit[reason_exists]" /></div> </div> <div class="smallfont" style="margin-bottom:$stylevar[formspacer]px"> <div>$vbphrase[title]:</div> <div><input type="text" class="bginput" name="title" value="$post[title]" size="60" maxlength="85" tabindex="1" /></div> </div> <div class="smallfont" style="margin-bottom:$stylevar[formspacer]px"> <div>$vbphrase[message]:</div> <div><textarea name="message" class="bginput" style="width:433px; height:125px;" wrap="virtual" tabindex="1">$edittext</textarea></div> </div> <fieldset class="fieldset"> <legend>$vbphrase[miscellaneous_options]</legend> <div style="padding:3px"> <if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" checked />$vbphrase[show_your_signature]</label></div></if> <div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" checked />$vbphrase[automatically_parse_links_in_text]</label></div> <div><label for="cb_disablesmilies"><input type="checkbox" name="disablesmilies" value="1" id="cb_disablesmilies" tabindex="1" />$vbphrase[disable_smilies_in_text]</label></div> </div> </fieldset> </div> </div> <div style="margin-top:6px"> <input type="submit" class="button" name="sbutton" value="Save Changes" accesskey="s" tabindex="1" /> <input type="submit" class="button" name="preview" value="Preview Changes" accesskey="p" tabindex="1" /> <if condition="$bbuserinfo['signature'] != ''"><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" checked /><span class="smallfont">Signature</span></label></if> </div> </td> </tr> </tbody> </table> </form> </div> |
#174
|
||||
|
||||
Tom,
Your template seems to be missing this: Code:
<input type="hidden" name="emailupdate" value="9999" /> |
#175
|
||||
|
||||
Quote:
What does it mean, btw? |
#176
|
||||
|
||||
Quote:
Quote:
|
#177
|
||||
|
||||
Ah, groovy. Thanks.
Edited to add: Well not any number. I tried zero and it didn't work. :ninja: 9999 works fine, though. Thanks. |
#178
|
||||
|
||||
This is nice hack.
Just want to know, how to make close pop up if user decide to cancel edit post? Thank's a lot.... |
#179
|
||||
|
||||
Quote:
|
#180
|
|||
|
|||
i tried this hack and it didnt work and i dont know what i did wrong
|
#181
|
|||
|
|||
nevermind, twas the ever popular misplaced comma, got it working now, great mod
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|