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
  #212  
Old 09-24-2004, 07:47 AM
PitchouneN64ngc's Avatar
PitchouneN64ngc PitchouneN64ngc is offline
Senior Member
 
Join Date: Aug 2002
Location: France
Posts: 515
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your modification with the email update feature
Reply With Quote
  #213  
Old 09-25-2004, 12:35 PM
Overlord Overlord is offline
 
Join Date: May 2002
Location: Australia
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #214  
Old 09-25-2004, 04:36 PM
pco pco is offline
 
Join Date: Jul 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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">
to this

Code:
<if condition="THIS_SCRIPT=='showthread' and !$post['field8'] and $post['editlink'] and $bbuserinfo[userid]>0">
Additionally put this around your showthread_quickedit template:

Code:
line 1: 
<if condition="!$post['field8']">

last line:
</if>
Don't forget to change the 8 from above to your field number.

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']
becomes

Code:
$post['field8']
Good luck
Reply With Quote
  #215  
Old 09-25-2004, 07:56 PM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #216  
Old 09-25-2004, 08:19 PM
pco pco is offline
 
Join Date: Jul 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #217  
Old 09-26-2004, 12:50 AM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #218  
Old 09-26-2004, 01:35 AM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*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.
Reply With Quote
  #219  
Old 09-26-2004, 01:56 AM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #220  
Old 09-26-2004, 02:02 AM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #221  
Old 09-26-2004, 02:16 AM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EvilLS1
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.
Thankyou. And a very good reason not to include it.
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 05:09 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.06831 seconds
  • Memory Usage 2,310KB
  • 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
  • (5)bbcode_code
  • (1)bbcode_quote
  • (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