Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

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

Looks nice iguanairs. Added a link to your button in the first post.
Reply With Quote
  #203  
Old 09-22-2004, 11:13 AM
TruckMuddr TruckMuddr is offline
 
Join Date: Sep 2004
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyway to intergrate the WYSIWYG Editor?????? Be a nice addition

BTW, INSTALLED
Reply With Quote
  #204  
Old 09-22-2004, 07:38 PM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TruckMuddr
Anyway to intergrate the WYSIWYG Editor?????? Be a nice addition

BTW, INSTALLED
It may be possible but I'm not real familiar with how the WYSIWYG editor works b/c I don't use it (seems to slow the thread's load times down). Maybe someone else can help you figure a way to you integrate it?
Reply With Quote
  #205  
Old 09-23-2004, 12:23 AM
TruckMuddr TruckMuddr is offline
 
Join Date: Sep 2004
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Allright, Thanks for the reply. I'll look at the code and see what I can screw up
Reply With Quote
  #206  
Old 09-23-2004, 01:33 PM
pco pco is offline
 
Join Date: Jul 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
I have a problem with this hack which is with Opera latest version(754) and I didn't try any other. Linux or Windows Opera doesn't matter, neither works. Tried with different servers and Apache/php-config's under linux(Suse 7/8/9 and Redhat 7/9) no change. The problem: quick-editing with this hack by using Opera only works one time IOW as long as the URL still reads showthread?t=tid. After the first edit and if the URL is showthread.php?p=pid#pid then the next changes are posted fine(as one can find by manually refreshing) but the browser doesn't refresh the page by itself. Instead it just sits there showing the busy mouse pointer with the status line "completed reguest to <servername>" and that's it. There are no error messages in the apache log with debug on, there couldn't be as it POSTS fine like I said it's just that it doesn't refresh. So because of this I can't use it. I've tried everything of what was posted here as for changes, it doesn't make any difference as to this behaviour of Opera at all(IE 5.x,6.x and Firefox 0.6x-0.9x are fine BTW). Also tried fresh install of vb303, all the same. Did anyone come across this problem or has an idea why and how this could be happening as I don't know where to luck further since logs are empty and this is clearly because of something this hack is doing? TIA for looking into it.

PS. Apache 1.3.x or 2.0.x(latest, .31/.51) doesn't matter either, so the problem has to be related to this hack and not the server config in any way. :tired:
Reply With Quote
  #207  
Old 09-23-2004, 09:56 PM
PitchouneN64ngc's Avatar
PitchouneN64ngc PitchouneN64ngc is offline
Senior Member
 
Join Date: Aug 2002
Location: France
Posts: 515
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is possible to have an option to choose the thread subscription mode?

For example, you can have some members who want to subscribe and others members don't want.

Your modification in the post #6 is a subscription mode for all people, not for each preference of each member.

BTW, it's a very good hack
Reply With Quote
  #208  
Old 09-23-2004, 11:52 PM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

pco,
Your server type or settings shouldn't make any difference. Anytime you're dealing with javascript you're bound to run into problems with some browsers. Anyway, I'm at work right now but when I get home tonight I'll install the latest version of Opera and see whats going on. If I can reproduce the problem I'll try to find a way to fix it and post it here.

PitchouneN64ngc,
You could put a checkbox option in the quick edit form so that the user can decide if he wants to subscribe or not. You'd still have to have it checked or unchecked by default for all users b/c in order to check the users preferences for subscriptions I believe you'd have to add a query to showthread.php and that wouldn't really be worth it. But if you want to add the checkbox just do this:

In the showthread_quickedit template find this:
Code:
	 <if condition="$bbuserinfo['signature'] != ''"><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" checked /><span class="smallfont">Signature</span></label></if>
Above it add this:
Code:
<input type="checkbox" name="emailupdate" value="1" checked /><span class="smallfont">Subscribe</span>
Reply With Quote
  #209  
Old 09-24-2004, 12:24 AM
pco pco is offline
 
Join Date: Jul 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you! Also I see now there's the variable "is_opera" in clientscript/vbulletin_menu.js and vbulletin_global.js. Perhaps looking at what it does(different) if it's Opera will help to find a solution.
Reply With Quote
  #210  
Old 09-24-2004, 03:54 AM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

pco,
I was able to reproduce the problem. I've been trying to figure out whats causing it for the past 2 hours but haven't had any luck. I'll look into it some more this weekend but I dunno if I can fix it or not. For now, a temporary solution would be to hide the quick edit icon from those who use Opera.

To disable it in opera open the postbit templates and find:
Code:
<if condition="THIS_SCRIPT=='showthread' and $post['editlink'] and $bbuserinfo[userid]>0">
$quickedit
</if>
Replace it with:
Code:
<if condition="THIS_SCRIPT=='showthread' and !is_browser('opera') and $post['editlink'] and $bbuserinfo[userid]>0">
$quickedit
</if>
I know thats not the solution you were hoping for but at least those who use other browsers can still quick edit until I figure out a fix.
Reply With Quote
  #211  
Old 09-24-2004, 04:10 AM
pco pco is offline
 
Join Date: Jul 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for confirmation and the temp fix. Although I won't use it for now where I intended to use it (on a bigger site) until there's a real solution as I don't want to withhold it from anyone. I hope you(or anyone else) can find a solution for it in the near future!
Reply With Quote
Reply


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:29 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.11177 seconds
  • Memory Usage 2,320KB
  • 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
  • (4)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
  • (2)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