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
  #132  
Old 06-08-2004, 08:33 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 SaN-DeeP
simply awesome
workED perfect

Mebbe u can also update ur post/files and include this tip

Thnx.
Sandy...
I'll add it in the next update.
Reply With Quote
  #133  
Old 06-08-2004, 10:41 PM
PhoenixBB PhoenixBB is offline
 
Join Date: May 2002
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EvilLS1

In your postbit templates find this:
Code:
<if condition="THIS_SCRIPT=='showthread'">
$quickedit
</if>
And replace it with this:
Code:
<if condition="THIS_SCRIPT=='showthread' and $bbuserinfo[userid]>0">
$quickedit
</if>
Hmm, I only have

Code:
<if condition="$post['pmid']==""">
$quickedit
</if>

So , how would I combine the above instruction with the pmid one (is that the one that stops it appearing on PM's) while also including the the code as given to SaN-DeeP below, to remove it after the edit time is up. Would it be something like:

Code:
<if condition="$post['pmid']==""" >
<if condition="THIS_SCRIPT=='showthread' and $post['editlink']">
<if condition="THIS_SCRIPT=='showthread' and $bbuserinfo[userid]>0">
$quickedit
</if>
</if></if>
Or are there too many 'if' things in there?

The text link doesn't work alas. All I get when I click it is to be taken to the top post. No pop up box at all.

ETA: Got the text link working, thanks! I redownloaded the file and I figure I must have had an older one. So that is one part sorted.
Reply With Quote
  #134  
Old 06-09-2004, 01:52 AM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PhoenixBB,
The $post['pmid'] is no longer needed b/c THIS_SCRIPT=='showthread' keeps it from showing in PMs.

So just use this code:
Code:
<if condition="THIS_SCRIPT=='showthread' and $post['editlink'] and $bbuserinfo[userid]>0">
$quickedit
</if>
Reply With Quote
  #135  
Old 06-09-2004, 06:23 PM
PhoenixBB PhoenixBB is offline
 
Join Date: May 2002
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, works a treat!

I've got the text link at the bottom with the normal edit/quote buttons so it's unmissable now.

My members are gonna be very happy. I figure if we had a poll to only keep one hack it would have to be this one. Mucho thanks!
Reply With Quote
  #136  
Old 06-09-2004, 07:27 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 PhoenixBB
Thanks, works a treat!

I've got the text link at the bottom with the normal edit/quote buttons so it's unmissable now.

My members are gonna be very happy. I figure if we had a poll to only keep one hack it would have to be this one. Mucho thanks!
You're welcome.
Reply With Quote
  #137  
Old 06-09-2004, 08:27 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 edeab220
This is a cool hack .

When I use this in firefox, the box height is fine, but the width is too long. I'm not sure if this was answered in this thread, but TIA .
edeab220,

In your showthread_quickedit template find:
Code:
<div class="vbmenu_popup" id="quickedit_$post[postid]_menu" style="display:none">
Replace it with:
Code:
<div id="quickedit_$post[postid]_menu" style="display:none">
That should do it.
Reply With Quote
  #138  
Old 06-10-2004, 06:39 PM
edeab220 edeab220 is offline
 
Join Date: Mar 2004
Location: South NJ
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EvilLS1
edeab220,

In your showthread_quickedit template find:
Code:
<div class="vbmenu_popup" id="quickedit_$post[postid]_menu" style="display:none">
Replace it with:
Code:
<div id="quickedit_$post[postid]_menu" style="display:none">
That should do it.
Thank you .
Reply With Quote
  #139  
Old 06-10-2004, 06:44 PM
PhoenixBB PhoenixBB is offline
 
Join Date: May 2002
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone know how to fix this:

As mentioned in a previous post, this hack can sometimes subscribe you to the thread which is happening to me at the moment. I have used the
Code:
<input type="hidden" name="emailupdate" value="9999" />
However my board is set not to allow emails, so if anyone subscribes to threads they just go into UserCP. I just noticed my User CP was full of threads that I'd used this hack on. Interestingly when I used it a second time in the thread, the thread disappeared from the CP. So it subscribes me the first time, unsubscribes the second??

Tried this:
Code:
<input type="hidden" name="subscriptionupdate" value="9999" />
but that didn't work either. People who want to subscribe manually usually do and clear them out when finished. If this is just subscribing threads willy nilly could get a bit crowded for people who rarely enter their CP.

Any ideas?

Thanx!
Reply With Quote
  #140  
Old 06-11-2004, 12:33 PM
PhoenixBB PhoenixBB is offline
 
Join Date: May 2002
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EvilLS1
PhoenixBB,
Just find and remove this line from your showthread_quickedit template and it will no longer subscribe anyone automatically:

Code:
<input type="hidden" name="emailupdate" value="9999" />
Nope that doesn't work. I put that in originally to fix it as I thought that was the 'do not subscribe' option but it didn't work. With or without that line I get subscribed and it's putting the threads in my CP panel.
Reply With Quote
  #141  
Old 06-11-2004, 07:09 PM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PhoenixBB,
Are you sure that you have "do not subscribe" selected in your User CP under options for Default Thread Subscription Mode? The reason I ask is because I just checked again on my site and its not doing that. As long as that line of code is removed and you're using the exact template from the first post of this thread there's no reason it should add the subscription.
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 02:33 PM.


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.05625 seconds
  • Memory Usage 2,329KB
  • 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
  • (12)bbcode_code
  • (6)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