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 |
#292
|
|||
|
|||
works with 3,0,6 - good job - clicks install
|
#293
|
||||
|
||||
install ottimo 3.0.6 :squareeyed:
|
#294
|
|||
|
|||
seems to work fine with 3.0.7
|
#295
|
|||
|
|||
Hey,
I'm a newb to vB and installing hacks so if someone could please help me out i would be very greatfull! On one of the last parts when it says: "##### In your postbit & postbit_legacy templates find:" Where do i find those templates? Also where it says:" How do i make a new template? Thanks, MichaelJM |
#296
|
||||
|
||||
Quote:
|
#297
|
||||
|
||||
I've had this working for a long time, but since upgrading to 3.0.6 using quick edit on a post removes my subscription. Any ideas?
|
#298
|
|||
|
|||
I love it, and so do my users. Thanks.
|
#299
|
||||
|
||||
Quote:
Here's my showthread_quickedit template: (As you can see I've added a selection box at the bottom--shown commented out here--to temporarily solve this problem, but I'd rather not have to use that if possible.) PHP Code:
|
#300
|
||||
|
||||
Well in case anyone else wants to solve this problem, Google led me to an answer someone posted at the Tivo forums.
Edit editpost.php and add the red lines (two on top, close bracket on bottom): Code:
// ### DO THREAD SUBSCRIPTION ### // We use $postinfo[userid] so that we update the user who posted this, not the user who is editing this if ($edit['emailupdate'] != 9998) { // when quickedit is used, 9998 means to skip doing anything to the subscription if (!$threadinfo['issubscribed'] AND $edit['emailupdate'] != 9999) { // user is not subscribed to this thread so insert it $DB_site->query(" REPLACE INTO " . TABLE_PREFIX . "subscribethread (userid, threadid, emailupdate, folderid) VALUES ($postinfo[userid], $threadinfo[threadid], $edit[emailupdate], $edit[folderid]) "); } else { // User is subscribed, see if they changed the settings for this thread if ($edit['emailupdate'] == 9999) { // Remove this subscription, user chose 'No Subscription' $DB_site->query(" DELETE FROM " . TABLE_PREFIX . "subscribethread WHERE threadid = $threadinfo[threadid] AND userid = $postinfo[userid]"); } else if ($threadinfo['emailupdate'] != $edit['emailupdate'] OR $threadinfo['folderid'] != $edit['folderid']) { // User changed the settings so update the current record $DB_site->query(" REPLACE INTO " . TABLE_PREFIX . "subscribethread (userid, threadid, emailupdate, folderid) VALUES ($postinfo[userid], $threadinfo[threadid], $edit[emailupdate], $edit[folderid]) "); } } } This will prevent quickedit from messing with the users subscription. |
#301
|
|||
|
|||
Great hack, but I don't like any of the existing icons, so here's the one I made.
For the default and vB_Greenish skin that we use. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|