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
  #312  
Old 05-28-2005, 12:53 PM
Snitz Snitz is offline
 
Join Date: Sep 2004
Location: Lebanon
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I thought this hack will allow also the mods and admins to use it on all the posts, but I was wrong.....
anyway update it to make it work for mods and admins ?
Reply With Quote
  #313  
Old 05-28-2005, 02:30 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snitz
I thought this hack will allow also the mods and admins to use it on all the posts, but I was wrong.....
anyway update it to make it work for mods and admins ?
All your answers can be found in this thread, Snitz. But if you don't want to read it...

I have it configured so that mods and admins can edit all posts, and with a 'preview' button that opens the advanced editor. I also fixed the subscription bug.

Here's what I have in functions_showthread.php
PHP Code:
    // Quick Edit hack 
        
if (($bbuserinfo['usergroupid'] == 6) or (can_moderate($foruminfo['forumid'])) or ($post['userid'] == $bbuserinfo['userid'])) 
        { 
                
$edittext htmlspecialchars_uni($post['pagetext']); 
                eval(
'$quickedit = "' fetch_template('showthread_quickedit') . '";'); 
        } 
        else 
        { 
                
$edittext=""
                
$quickedit=""
        } 
    
// End Quick Edit hack 
And my showthread_quickedit template:

HTML 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>
</div>
</td>
</tr>
</tbody>
</table>
</form>
</div>
You might have to tweak it some for your style... can't remember if I did.
Reply With Quote
  #314  
Old 06-03-2005, 03:57 PM
Crapaddict Crapaddict is offline
 
Join Date: Oct 2004
Location: the Netherlands
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tmhall
All your answers can be found in this thread, Snitz. But if you don't want to read it...

I have it configured so that mods and admins can edit all posts, and with a 'preview' button that opens the advanced editor. I also fixed the subscription bug.

Here's what I have in functions_showthread.php

[...]

You might have to tweak it some for your style... can't remember if I did.
Cool, I wanted something like this too
Reply With Quote
  #315  
Old 06-27-2005, 05:10 AM
fordkiller fordkiller is offline
 
Join Date: Jul 2004
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im haveing this problem with the hack i am running vb 3.0.3 and i keep getting this error every time i try ti install the code in the templates ok any help that would be great thanks again

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_IF in public_html/Forums/includes/adminfunctions_template.php(3055) : eval()'d code on line 176

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

and if i click on continue then the posts go away and you cant even see the posts and a block comes across the top of the tread page above the header ??
Reply With Quote
  #316  
Old 06-27-2005, 12:21 PM
ben_erhan ben_erhan is offline
 
Join Date: Dec 2004
Location: Kastamonu/TURKEY
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it is a marvelleous hack.thanks friend.
Reply With Quote
  #317  
Old 06-28-2005, 04:00 PM
Strike3ForumsMH Strike3ForumsMH is offline
 
Join Date: May 2005
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I thought I followed the instructions perfectly. I have received no errors with anything that I can see but the quick edit button is not appearing. And the button is titled and located in the correct area.

Anyone have any idea of what I need to do?

Sorry for the lack of details but that's all I got.

Edit: To avoid confusion I have tested it on both IE and Firefox browsers.
Reply With Quote
  #318  
Old 07-12-2005, 03:55 AM
Borimikan Borimikan is offline
 
Join Date: Apr 2005
Location: Brooklyn, NY
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can we have the posibility to be able the quick edit button not just in our own post and also have it in other users post,

(knowing that we are administrators of the forum) NOT REALLY IMPORTANT BUT I FELT TO TELL IT SO...
Reply With Quote
  #319  
Old 07-30-2005, 02:11 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Briliant hack EvilLS1. Your original hack is working just fine in vB3.0.8.

However I used the edit in Post 103 so that moderator and admins can use it. None of my users/staff have complained of any problems except for one. He has tried both IE and fireFox.

Here are two screen shoots in one. The top shot is the error that he gets when he is at the index. The one below is the error he gets when viewing a thread.

Any ideas on how i might be able to fix that?
Thanks.
Reply With Quote
  #320  
Old 08-22-2005, 03:56 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

None of the code in this file is mine. I simply added all of the fixes that this thread has in it for quick reference, and I decided to zip it up and post it here to make it easier for folks. I also added the "reason for editing" option mentioned in this thread as well.

Thanks to everyone for all of the fixes/help, and thanks to EvilLS1 for making such a great hack!

As I said, none of the work is mine, I just compiled it to make it easier for me to follow, so I didn't have to install it, and then go through all of the fixes mentioned in this thread. Instead I just read the thread, and updated the install info, and it works fine in vb 3.0.8 for me.
Reply With Quote
  #321  
Old 09-02-2005, 04:02 AM
slim cutty slim cutty is offline
 
Join Date: May 2005
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why as an Admin when I quick edit my posts... the post shows that I posted as a guest? It works for all other users except me?..lol

If I started a thread and quick edit it I become a guest (my post shows me as guest), when I leave the post it will dissappear

can someone help?

thanks
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 08:24 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.06452 seconds
  • Memory Usage 2,345KB
  • 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_html
  • (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
  • (2)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