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 |
#312
|
|||
|
|||
I thought this hack will allow also the mods and admins to use it on all the posts, but I was wrong.....
anyway update it to make it work for mods and admins ? |
#313
|
||||
|
||||
Quote:
I have it configured so that mods and admins can edit all posts, and with a 'preview' button that opens the advanced editor. I also fixed the subscription bug. Here's what I have in functions_showthread.php PHP Code:
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]" /> <input type="hidden" name="emailupdate" value="9999" /> <table class="tborder" cellpadding="6" cellspacing="1" width="100%" border="0" align="left"> <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" /> <input type="checkbox" name="emailupdate" value="1" checked /><span class="smallfont">Subscribe</span> </div> </td> </tr> </tbody> </table> </form> </div> |
#314
|
|||
|
|||
Quote:
|
#315
|
|||
|
|||
im haveing this problem with the hack i am running vb 3.0.3 and i keep getting this error every time i try ti install the code in the templates ok any help that would be great thanks again
The following error occurred when attempting to evaluate this template: Parse error: parse error, unexpected T_IF in public_html/Forums/includes/adminfunctions_template.php(3055) : eval()'d code on line 176 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. and if i click on continue then the posts go away and you cant even see the posts and a block comes across the top of the tread page above the header ?? |
#316
|
|||
|
|||
it is a marvelleous hack.thanks friend.
|
#317
|
|||
|
|||
I thought I followed the instructions perfectly. I have received no errors with anything that I can see but the quick edit button is not appearing. And the button is titled and located in the correct area.
Anyone have any idea of what I need to do? Sorry for the lack of details but that's all I got. Edit: To avoid confusion I have tested it on both IE and Firefox browsers. |
#318
|
|||
|
|||
Can we have the posibility to be able the quick edit button not just in our own post and also have it in other users post,
(knowing that we are administrators of the forum) NOT REALLY IMPORTANT BUT I FELT TO TELL IT SO... |
#319
|
|||
|
|||
Briliant hack EvilLS1. Your original hack is working just fine in vB3.0.8.
However I used the edit in Post 103 so that moderator and admins can use it. None of my users/staff have complained of any problems except for one. He has tried both IE and fireFox. Here are two screen shoots in one. The top shot is the error that he gets when he is at the index. The one below is the error he gets when viewing a thread. Any ideas on how i might be able to fix that? Thanks. |
#320
|
||||
|
||||
None of the code in this file is mine. I simply added all of the fixes that this thread has in it for quick reference, and I decided to zip it up and post it here to make it easier for folks. I also added the "reason for editing" option mentioned in this thread as well.
Thanks to everyone for all of the fixes/help, and thanks to EvilLS1 for making such a great hack! As I said, none of the work is mine, I just compiled it to make it easier for me to follow, so I didn't have to install it, and then go through all of the fixes mentioned in this thread. Instead I just read the thread, and updated the install info, and it works fine in vb 3.0.8 for me. |
#321
|
|||
|
|||
Why as an Admin when I quick edit my posts... the post shows that I posted as a guest? It works for all other users except me?..lol
If I started a thread and quick edit it I become a guest (my post shows me as guest), when I leave the post it will dissappear can someone help? thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|