Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Quick Edit! -Edit posts directly from within the thread itself Details »»
Quick Edit! -Edit posts directly from within the thread itself
Version: 2.00, by EvilLS1 EvilLS1 is offline
Developer Last Online: May 2021 Show Printable Version Email this Page

Version: 3.0.6 Rating:
Released: 01-03-2004 Last Update: 01-24-2005 Installs: 145
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #282  
Old 01-30-2005, 07:06 PM
BaconDelight BaconDelight is offline
 
Join Date: Jan 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Need some help here, a user found a possible bug...

The user is running Opera. In a thread in which he's already posted, if he attempts to submit a new post via the quick reply box, using the option-s shortcut to submit it, the new post does not show up, and instead, the most recent post he'd made in the thread gets the "Last edited by... tacked onto it. This only happend when he uses the option-s shortcut to submit, it works fine if he clicks the "Post Quick Reply" button. And this does not happen on IE using the Alt-s shortcut. So only on Safari, only with quick reply, and only with the option-s shortcut to submit.

Quick edit is the only hack I have installed that involves posting or editing, so it's highly likely that it's the culprit.
Reply With Quote
  #283  
Old 01-30-2005, 07:55 PM
BaconDelight BaconDelight is offline
 
Join Date: Jan 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OKay, I've figured out what's happening, but I don't know how to fix it.

First, a corretion, it slaps the "Last edited by.." on the user's FIRST post in the thread, not the last.

Now, for what's happening. All it is is that Opera is sending the ctrl-s command to the hidden quick edit window instead of the main active window. Sine that window also has a submit button with the same keyboard shortcut, it submits the unaltered hidden edit box instead of the quick reply box.

This does not happen on Windows IE, or Firefox on Mac.

Okay, so now that I've figured out what the problem is, I have no idea if it can be fixed. Any way the code can be altered to make sure that Opera has the focus on the right window?
Reply With Quote
  #284  
Old 01-30-2005, 08:02 PM
BlasterT3 BlasterT3 is offline
 
Join Date: Nov 2004
Location: West Haven, CT
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do you have a link to your forum and post?
Reply With Quote
  #285  
Old 01-30-2005, 08:21 PM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BaconDelight,
As noted in the first post Quick Edit does not work with opera and the code isn't even displayed in that browser. Check the code in the postbit template and you should find "!is_browser('opera')" in the conditional which determines whether or not the quick edit code is to be displayed. If you don't see it, that means you're either using an old version of quick edit or you're using someone elses add on version.

Try submitting a quick reply in opera with ALT + S here at vb.org and you'll see that it doesn't submit here either.. Quick Edit isn't installed here.
Reply With Quote
  #286  
Old 01-30-2005, 08:27 PM
BaconDelight BaconDelight is offline
 
Join Date: Jan 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, my mistake, I meant Safari, not Opera.

Quick eidt works, quick post works. But when you try to submit a quick post with ctrl-s in Safar, it sends the ctrl-s to the hidden quick edit window.
Reply With Quote
  #287  
Old 01-30-2005, 08:35 PM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In that case, try this:

In the showthread_quickedit template find

name="vbulletinform"

and change the form name to something else (vbform will do). I'm not familiar with the safari browser but I think that will fix it.
Reply With Quote
  #288  
Old 01-30-2005, 08:42 PM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If that doesn't work try changing the accesskey in this code to something else:

Code:
 	<input type="submit" class="button" name="sbutton" value="Save Changes" accesskey="s" tabindex="1" />
I dunno if that will work or not but its worth a try.
Reply With Quote
  #289  
Old 01-31-2005, 04:03 AM
BaconDelight BaconDelight is offline
 
Join Date: Jan 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright, so changing the access key sort of helps. Ctrl-s is now working, but now using the new access key for submitting a quick edit is doing something similar to the orignal issue. Namely, if the user has more than one post on the page that's displayed, using the new access key will not necessarily submit the correct quick edit window, it submits it to one of the other hidden quick edit windows on the page. The user that's having this problem also mentioned that clicking the "preview changes" in a quick edit window submitted it instead of going to the preview page. Again, these issues are only present with Safari, on Mac OSX. Anyone with experience with Safari have any ideas?
Reply With Quote
  #290  
Old 01-31-2005, 03:49 PM
BaconDelight BaconDelight is offline
 
Join Date: Jan 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Forgot to mention, I changed the form name as suggested in post #286 above and that didn't do anything.
Reply With Quote
  #291  
Old 01-31-2005, 04:17 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed in 10 minutes and works great with no hitches in IE or safari
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:00 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08765 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete