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 |
#252
|
||||
|
||||
Quote:
|
#253
|
|||
|
|||
I think it would be idea to do this:
Replace Code:
// Quick Edit hack if ($post['userid'] == $bbuserinfo['userid']) Code:
// Quick Edit hack if ($post['userid'] == $bbuserinfo['userid'] OR can_moderate($thread['forumid'], 'caneditposts')) Regards, ShadowBlade |
#254
|
||||
|
||||
Quote:
Dewayne |
#255
|
||||
|
||||
I have just upgraded to 3.0.4 and it seems to have broken the hack.
When I use the Quick edit function I get this error Code:
Database error in vBulletin 3.0.4: Invalid SQL: UPDATE post SET editlevel = '0', dateline = '39599', username = '', userid = 0, ipaddress = '' WHERE postid = 1 LIMIT 1 mysql error: Unknown column 'editlevel' in 'field list' mysql error number: 1054 |
#256
|
||||
|
||||
Quote:
This hack doesn't add or alter any queries or database columns so I'm guessing that error is being caused by another hack. The error means that a query is attempting to update a column (editlevel) which does not exist. What other hacks have you previously installed which have something to do with editing posts? Have you tried the regular edit to see if it gives the error? {edit} I believe code added by the "advanced editing options" hack is causing your error: https://vborg.vbsupport.ru/showthrea...ight=editlevel |
#257
|
||||
|
||||
Quote:
I think that I am going to have to see if Xenon can either fix it or I will have to drop it. It is very useful by I have hundreds of members who will use the quick edit hack, but only 2 Admins who would use the Advanced options. |
#258
|
||||
|
||||
Quote:
No problem. I think running this query from Xenon's instructions will fix the error. ALTER TABLE post ADD editlevel TINYINT(3) DEFAULT '0' NOT NULL; |
#259
|
||||
|
||||
Quote:
|
#260
|
|||
|
|||
Can I have this so only admin's can use it... ?
Also how do I get it to work so admin can edit all posts I tried this... <phrase 1="$bbuserinfo[username]" 2="$date" 3="$time">$vbphrase['post_edited_by_x_on_y_at_z']</phrase> but it says Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/username/public_html/forum/includes/adminfunctions_template.php(3055) : eval()'d code on line 41 |
#261
|
||||
|
||||
Quote:
Code:
if ($post['userid'] == $bbuserinfo['userid']) Code:
if ($bbuserinfo['usergroupid'] == 6) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|