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
  #162  
Old 06-17-2004, 01:02 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 Karthick
<if condition="$bbuserinfo['signature'] != ''"> is wrong. It only shows the signature box if the VIEWER has signature. It should show signature box if the poster has signature right? Got this trouble after alloying admin and mod to quickedit.
No, its not wrong. This hack was not designed to let admins and mods use quick edit for editing other people's posts. Thats just an add-on which was requested here. If the hack is used the way it was intended then <if condition="$bbuserinfo['signature'] != ''"> will work flawlessly.

Quote:
In FireFox the box appears somewhere in the middle of the screen. Is there any way to make the corner of it touch the button, just like in IE?
I noticed that too but I have no idea why it does that in firefox.
Reply With Quote
  #163  
Old 06-17-2004, 02:04 PM
Karthick Karthick is offline
 
Join Date: Mar 2004
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EvilLS1
No, its not wrong. This hack was not designed to let admins and mods use quick edit for editing other people's posts. Thats just an add-on which was requested here. If the hack is used the way it was intended then <if condition="$bbuserinfo['signature'] != ''"> will work flawlessly.
I know. The code I gave above is for people that let admin/mod quick edit.
Reply With Quote
  #164  
Old 06-18-2004, 11:38 AM
sketch42's Avatar
sketch42 sketch42 is offline
 
Join Date: May 2004
Location: Brooklyn, NY
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EvilLS1
I think so. You'd just need to copy the necessary code from the editpost template and put it in the showthread_quickedit template. Should be really easy.
bah i cant find it.. i tried copying this code

Code:
			<if condition="$show['basic_bbcode']">
			<td><div class="imagebutton"><a href="#" onclick="return vbcode('B', '')" accesskey="b"><img class="image" src="$stylevar[imgdir_editor]/bold.gif" alt="$vbphrase[bold]" width="21" height="20" border="0" /></a></div></td>
			<td><div class="imagebutton"><a href="#" onclick="return vbcode('I', '')" accesskey="i"><img class="image" src="$stylevar[imgdir_editor]/italic.gif" alt="$vbphrase[italic]" width="21" height="20" border="0" /></a></div></td>
			<td><div class="imagebutton"><a href="#" onclick="return vbcode('U', '')" accesskey="u"><img class="image" src="$stylevar[imgdir_editor]/underline.gif" alt="$vbphrase[underline]" width="21" height="20" border="0" /></a></div></td>
			<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" border="0" /></td>
			</if>
but that didnt work
Reply With Quote
  #165  
Old 06-18-2004, 11:59 AM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try removing the <if > condition.
<if condition="$show['basic_bbcode']">
</if>

Then make sure the form name is the same for both the quick edit form and the edit post form.
Reply With Quote
  #166  
Old 06-18-2004, 12:17 PM
sketch42's Avatar
sketch42 sketch42 is offline
 
Join Date: May 2004
Location: Brooklyn, NY
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EvilLS1
Try removing the <if > condition.
<if condition="$show['basic_bbcode']">
</if>

Then make sure the form name is the same for both the quick edit form and the edit post form.
no matter where i put the code the quick edit box gets all messed up.... should i put it at the very top of the quick edit template?
Reply With Quote
  #167  
Old 06-18-2004, 03:24 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 sketch42
no matter where i put the code the quick edit box gets all messed up.... should i put it at the very top of the quick edit template?
Sounds like misaligned table tags. No big deal. Tell ya what.. I should have some free time this weekend so I'll get it working on my test forum and then send you the code.
Reply With Quote
  #168  
Old 06-18-2004, 05:29 PM
sketch42's Avatar
sketch42 sketch42 is offline
 
Join Date: May 2004
Location: Brooklyn, NY
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EvilLS1
Sounds like misaligned table tags. No big deal. Tell ya what.. I should have some free time this weekend so I'll get it working on my test forum and then send you the code.
:classic:
Reply With Quote
  #169  
Old 06-21-2004, 08:57 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Evil,

I found the following blocks in the update post section of editpost.php. I think this might give a hint as to how to make quick edit update the moderator log properly, but I'm just guessing.

PHP Code:
        // if this is a mod edit, then log it
        
if ($bbuserinfo['userid'] != $postinfo['userid'] AND can_moderate($threadinfo['forumid'], 'caneditposts'))
        {
            
$string construct_phrase($vbphrase['post_edited_by_x_on_y_at_z'], $bbuserinfo['userid'], $date$time);
            
$modlogsql[] = "($bbuserinfo[userid], " TIMENOW ", $threadinfo[forumid]$threadinfo[threadid]$postid, '" addslashes($string) . "')";
        } 
Then a little below that:

PHP Code:
// moderator log
        
if (!empty($modlogsql))
        {
            
$DB_site->query("
                INSERT INTO " 
TABLE_PREFIX "moderatorlog (userid, dateline, forumid, threadid, postid, action)
                VALUES " 
implode(', '$modlogsql)
            );
        } 
Reminder, what's getting logged now is:

Post edited by 2 on at .
Reply With Quote
  #170  
Old 06-22-2004, 04:03 AM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PhoenixBB
Just thought I'd let you know, things are no longer subscribing. Everything seems peachy now.
I'm still having this problem too. Did you nail it down to something specific, Evil?
Reply With Quote
  #171  
Old 06-22-2004, 05:40 AM
Cold Steel's Avatar
Cold Steel Cold Steel is offline
 
Join Date: Nov 2001
Location: Manhattan
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me installs.

Another feature for my paying members.
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 01:41 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04892 seconds
  • Memory Usage 2,334KB
  • 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
  • (2)bbcode_php
  • (8)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