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
  #292  
Old 02-18-2005, 05:31 PM
MAK-upl MAK-upl is offline
 
Join Date: Feb 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works with 3,0,6 - good job - clicks install
Reply With Quote
  #293  
Old 02-20-2005, 08:43 AM
swantonio's Avatar
swantonio swantonio is offline
 
Join Date: Aug 2004
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

install ottimo 3.0.6 :squareeyed:
Reply With Quote
  #294  
Old 02-21-2005, 04:22 PM
Imperial Fritz Imperial Fritz is offline
 
Join Date: Dec 2003
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

seems to work fine with 3.0.7
Reply With Quote
  #295  
Old 02-26-2005, 03:52 AM
MichaelJM13k MichaelJM13k is offline
 
Join Date: Feb 2005
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey,
I'm a newb to vB and installing hacks so if someone could please help me out i would be very greatfull!

On one of the last parts when it says:

"##### In your postbit & postbit_legacy templates find:"

Where do i find those templates?
Also where it says:"

How do i make a new template?

Thanks,
MichaelJM
Reply With Quote
  #296  
Old 02-26-2005, 04:40 AM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MichaelJM13k
Hey,
I'm a newb to vB and installing hacks so if someone could please help me out i would be very greatfull!

On one of the last parts when it says:

"##### In your postbit & postbit_legacy templates find:"

Where do i find those templates?
Also where it says:"

How do i make a new template?

Thanks,
MichaelJM
Look in your admincp under Styles & Templates.
Reply With Quote
  #297  
Old 03-18-2005, 10:39 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've had this working for a long time, but since upgrading to 3.0.6 using quick edit on a post removes my subscription. Any ideas?
Reply With Quote
  #298  
Old 03-20-2005, 09:19 AM
TCM TCM is offline
 
Join Date: Dec 2004
Location: 3.6.8
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love it, and so do my users. Thanks.
Reply With Quote
  #299  
Old 04-04-2005, 04:55 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tmhall
I've had this working for a long time, but since upgrading to 3.0.6 using quick edit on a post removes my subscription. Any ideas?
Anyone...? Anyone...?

Here's my showthread_quickedit template:

(As you can see I've added a selection box at the bottom--shown commented out here--to temporarily solve this problem, but I'd rather not have to use that if possible.)

PHP Code:
<span id="quickedit_$post[postid]">
                <
img src="$stylevar[imgdir_button]/quickedit.gif" alt="Quick Edit" border="0" />
                <
script type="text/javascript"vbmenu_register("quickedit_$post[postid]"true); </script>
            </
span>
<
div class="vbmenu_popup" id="quickedit_$post[postid]_menu" style="display:none">
<
form enctype="multipart/form-data" name="vbulletinform" style="display:inline;" action="editpost.php" method="post">
<
input type="hidden" name="s" value="$session[sessionhash]/>
<
input type="hidden" name="do" value="updatepost" />
<
input type="hidden" name="p" value="$post[postid]/>
<
input type="hidden" name="posthash" value="$posthash/>
<
input type="hidden" name="poststarttime" value="$poststarttime/>
<
input type="hidden" name="disablesmilies" value="0" />
<
input type="hidden" name="parseurl" value="1" id="cb_parseurl" />
<
input type="hidden" name="iconid" value="$post[iconid]/>
<
input type="hidden" name="emailupdate" value="9999" />
<
table class="tborder" cellpadding="6" cellspacing="1" width="100%" border="0" align="left">
<
tr>
<
td class="tcat" align="left">
<
strong>$vbphrase[edit_post]</strong>
</
td>
</
tr>
<
tbody
<
tr valign="top">
<
td class="panelsurround" align="center">
<
div class="panel">
<
div align="left">
    <
div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
     <
div>$vbphrase[reason_for_editing]:</div>
     <
div><input type="text" class="bginput" name="reason" value="$newpost[reason]size="50" maxlength="200" tabindex="1" title="$vbphrase[optional]/><input type="hidden" name="reason_exists" value="$edit[reason_exists]/></div>
    </
div>
    <
div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
     <
div>$vbphrase[title]:</div>
     <
div><input type="text" class="bginput" name="title" value="$post[title]size="60" maxlength="85" tabindex="1" /></div>
    </
div>
    <
div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
     <
div>$vbphrase[message]:</div>
     <
div><textarea name="message" class="bginput" style="width:433px; height:125px;" wrap="virtual" tabindex="1">$edittext</textarea></div>
    </
div>
    <
fieldset class="fieldset">
     <
legend>$vbphrase[miscellaneous_options]</legend>
     <
div style="padding:3px">
     <if 
condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" checked />$vbphrase[show_your_signature]</label></div></if>
     <
div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" checked />$vbphrase[automatically_parse_links_in_text]</label></div>
     <
div><label for="cb_disablesmilies"><input type="checkbox" name="disablesmilies" value="1" id="cb_disablesmilies" tabindex="1" />$vbphrase[disable_smilies_in_text]</label></div>
     </
div>
    </
fieldset>
</
div>
</
div>
<
div style="margin-top:6px">
    <
input type="submit" class="button" name="sbutton" value="Save Changes" accesskey="s" tabindex="1" />
    <
input type="submit" class="button" name="preview" value="Preview Changes" accesskey="p" tabindex="1" />
<!-- <
input type="checkbox" name="emailupdate" value="1" checked /><span class="smallfont">Subscribe</span> -->
     <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>
</
div>
</
td>
</
tr>
</
tbody>
</
table>
</
form>
</
div
Reply With Quote
  #300  
Old 04-10-2005, 04:17 AM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well in case anyone else wants to solve this problem, Google led me to an answer someone posted at the Tivo forums.

Edit editpost.php and add the red lines (two on top, close bracket on bottom):

Code:
		
// ### DO THREAD SUBSCRIPTION ###
// We use $postinfo[userid] so that we update the user who posted this, not the user who is editing this
	if ($edit['emailupdate'] != 9998)
	{ // when quickedit is used, 9998 means to skip doing anything to the subscription
		if (!$threadinfo['issubscribed'] AND $edit['emailupdate'] != 9999)
		{ // user is not subscribed to this thread so insert it
			$DB_site->query("
				REPLACE INTO " . TABLE_PREFIX . "subscribethread (userid, threadid, emailupdate, folderid)
				VALUES ($postinfo[userid], $threadinfo[threadid], $edit[emailupdate], $edit[folderid])
			");
		}
		else
		{ // User is subscribed, see if they changed the settings for this thread
			if ($edit['emailupdate'] == 9999)
			{	// Remove this subscription, user chose 'No Subscription'
				$DB_site->query("
					DELETE FROM " . TABLE_PREFIX . "subscribethread
					WHERE threadid = $threadinfo[threadid]
						AND	userid = $postinfo[userid]");
			}
			else if ($threadinfo['emailupdate'] != $edit['emailupdate'] OR $threadinfo['folderid'] != $edit['folderid'])
			{
				// User changed the settings so update the current record
				$DB_site->query("
					REPLACE INTO " . TABLE_PREFIX . "subscribethread (userid, threadid, emailupdate, folderid)
					VALUES ($postinfo[userid], $threadinfo[threadid], $edit[emailupdate], $edit[folderid])
				");
			}
		}
	}
Then edit the showthread_quickedit template and change emailupdate=9999 to emailupdate=9998

This will prevent quickedit from messing with the users subscription.
Reply With Quote
  #301  
Old 04-16-2005, 03:04 PM
TCM TCM is offline
 
Join Date: Dec 2004
Location: 3.6.8
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, but I don't like any of the existing icons, so here's the one I made.

For the default and vB_Greenish skin that we use.
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 06:48 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.04836 seconds
  • Memory Usage 2,370KB
  • 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)bbcode_php
  • (2)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