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 |
#212
|
||||
|
||||
Thanks for your modification with the email update feature
|
#213
|
|||
|
|||
Just installed this hack.. very nice works like a charm, although some of my members on dialup are complaining of a 30 second to 60 second delay in thread loading times (doesn't seem to bother me) but is there any way to add a switch to this hack from the user cp? So members can either decide to have it on or off?
|
#214
|
|||
|
|||
Either radio buttons or a single checkbox in User Options, here's single checkbox:
In admincp make a new user profile field called say "Use Quick Edit" Type "Multiple Selection Checkbox", press continue. Enter description of your choice and in the field Options just add 1 Option called "No" (without the quotes). Edit the other field options as required ie. "field editable by user YES" but "not shown on memberlist" etc. Set the "Display page" to "Options: other", then press save and read what the field number is for this field, ie. field8. Now edit the postbit(_legacy) template(s) and change the line(s) starting with Code:
<if condition="THIS_SCRIPT=='showthread' and $post['editlink'] and $bbuserinfo[userid]>0"> Code:
<if condition="THIS_SCRIPT=='showthread' and !$post['field8'] and $post['editlink'] and $bbuserinfo[userid]>0"> Code:
line 1: <if condition="!$post['field8']"> last line: </if> The Quick Edit will still be switched on now for everyone in their profiles by default. Those who want to have it off/not loaded anymore have to tick the "No" box in their UserCP Options to get rid of it. If you want to have it the other way round(Quick Edit off for everyone by default) then name the Quick Edit field Option "Yes" and not "No" and remove the exclamation marks: Code:
!$post['field8'] Code:
$post['field8'] |
#215
|
||||
|
||||
Overlord,
Unless you set it up so that admins can quick edit everyones posts this hack should have no real effect on load times. If you install it as intended the only extra things that must load in showthread is the little icon and the hidden text which is only loaded in posts that belong to the person who is viewing the thread (a small avatar would take longer to load than the text). Quick Edit uses the same standard javascript functions which vbulletin uses to make all of the little drop down boxes (like when you click on someones username, search, thread tools, etc.) so no extra javascript is loaded. You do have to wait until the whole thread finishes loading before quick edit becomes functional, but this doesn't add to the load times. pco, Thats a nice addition. I'll add a link to your post in the add-ons section in the first post of this thread so that others can use it. |
#216
|
|||
|
|||
EvilLS1, your nice hack deserves support :up: But please don't forget to look into the Opera problem if you can find some time. I didn't look any further into it yet as I'm very busy. The only other thing I did was saving a "t=tid" page and "p=pid" page to disk and doing a diff on them. What is different is the URL only it seems apart from some other unimportant/no difference making is_moz/is_ie check. Then one more thing I've noticed(ethereal) which is that somehow Opera doesn't seem to load vbulletin_global.js if "p=pid" so it is certainly as you say somehow related to JS. Therefore the question remains "what is it doing", and I'm no JS expert in any way.
|
#217
|
||||
|
||||
I haven't had a chance to experiment with it anymore yet but I'll try again tomorrow night and let you know if I find a fix. No guarantee though, 'cause I'm no JS expert either.
|
#218
|
||||
|
||||
*clicks install*.
Sensational hack. Something which will come in very handy. But have noticed that in addition to Opera, it also doesn't work with Netscape on a Mac. Though for your records (if you don't already know) it does work on Safari. This is a real bummer as I now have to switch back to Firefox. I only moved to Netscape last week as the install button on vB.org doesn't work with Firefox. |
#219
|
||||
|
||||
Also, while I think about it. Is there any way to get this working with moderator permissions?
At the moment I can still see my normal edit post button but I can't use the Quick Edit feature with posts I have not written. |
#220
|
||||
|
||||
Yes that is possible, but its not a good idea IMO and here's why: With the way this hack works it must load the post text two times in posts where the viewer has the ability to quick edit. So if you set it so that admins can quickedit all posts the post text for every post within a thread will be loaded twice in his browser (once viewable and once hidden) which could slow down the load time a bit. Theres also a problem with the moderater log not showing some info for posts that were quick edited by mods & admins. This is why I didn't include that feature with the hack in the first place. If you still want to allow staff to edit all posts theres instructions for that add-on somewhere in the first few pages of this thread.
|
#221
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|