Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x 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: 1.00, by EvilLS1 EvilLS1 is offline
Developer Last Online: May 2021 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-28-2003 Last Update: Never Installs: 69
 
No support by the author.

Hi,

This hack will allow your users to Edit their posts without having to load the editpost page..

How it works: In the bottom lefthand corner of all your posts will be a small "QuickEdit" radio button (users will only see it in posts which belong to them).. When you click it a small text box will instantly drop down below your post allowing you to edit it in the thread itself.
This will save you a lot of time when fixing those spelling mistakes, typos, or broken links.

Very easy to install.. One file edit, two template edits, and one template to add.

Credits: Thanks to T?Pau's javascript add-on this hack now works with Mozilla.


screenshots
View after clicking the QuickEdit radio button:
Screenshot #1

View before button is clicked:
Screenshot #2

Download Quick Edit (Click Here).

Update: For those who prefer an image button instead of a radio button use these instructions.
Note: Image button version does not work with mozilla browsers!

Screenshot of image button version

Also, added a check box for the signature to both versions.

Quick Edit for VB3 can be found here.




If you find this hack useful please click the install button.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 07-20-2003, 07:04 AM
Parker Clack Parker Clack is offline
 
Join Date: Oct 2001
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. I will give this a try. The error message that I have been getting is the one that you see at the bottom of your browser that says "Done. Errors on the page" and the script doesn't run.

I will try your suggestions and let you know.

Parker
Reply With Quote
  #63  
Old 07-20-2003, 07:19 AM
Parker Clack Parker Clack is offline
 
Join Date: Oct 2001
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I tried your suggestions but the script still fails to load and I get the "Error on page" line at the bottom left of my browser.

Parker
Reply With Quote
  #64  
Old 07-20-2003, 07:26 AM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm.. I don't know much about how the spellchecker works but if you'll open the page with a Mozilla browser then click tools, web development, & javascript console it will tell you the exact error and maybe you can get an idea of how to fix it. I suspect its something to do with the form names or textarea names not matching. Just out of curiousity where are you placing the spell checking form? I'm guessing either in the headinclude template or in the showthread_quickedit template?
Reply With Quote
  #65  
Old 07-21-2003, 01:29 AM
Parker Clack Parker Clack is offline
 
Join Date: Oct 2001
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using the showthread_quickedit template

So it looks like

<input name="r2" type="button" checked value=" Close Box " onClick="toggleT('e$post[postid]','h')" style="font-face:verdana;font-size:13px">
<form name="spell">
<script>
function sendtext() {
var semi = new RegExp("\;","g");
document.send.checkme.value = (document.vbulletin.message.value.replace(semi,"\; "));
document.send.form.value = "vbulletin;
document.send.field.value = "message";
window.open('','SpellChecker','width=640,height=48 0,scrollbars=1,location=true') ;
document.send.submit();
}
</script>
<input type="button" name="SpellCheck" value="Spell Check" onclick="sendtext()" class="bginput" tabindex="5" accesskey="c">
</form>
<form name="send" action="/cgi-bin/spell.pl" method="POST" target="SpellChecker">
<input type="hidden" name="checkme">
<input type="hidden" name="form">
<input type="hidden" name="field">
<input type="hidden" name="spell" value="check">
</form>
</td>

That is the way that I have it incorporated in my newthread, newreply templates and it works great.

Thanks
Reply With Quote
  #66  
Old 08-01-2003, 05:55 AM
Pikok Pikok is offline
 
Join Date: Jul 2002
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello there, I have QuickQuote II installed, all fine. but I cant get the QuickEdit shown up correctly 'cus of my style set. It's the vbulletin exposed. I'll add a pic + my code. If you guys could help me out I'd appreciate it alot

PHP Code:
<TABLE height=0 cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD>$quickedit </td>
<
TD align=right><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Warn</a></smallfont></TD></TR></TBODY></TABLE
Reply With Quote
  #67  
Old 08-01-2003, 11:53 PM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try placing the $quickedit variable somewhere below the signature in the postbit template. I haven't used or even seen that style but its just simple html, so if you'll experiment with it a little I'm sure you can find a good place to put it.
Reply With Quote
  #68  
Old 08-02-2003, 12:36 AM
Larry@IOG Larry@IOG is offline
 
Join Date: May 2002
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I save the changes my page goes to http://www.impulseownersgroup.com/vb/newreply.php and does not reload the changes. Also it does not make any changes


Larry
Reply With Quote
  #69  
Old 08-02-2003, 12:54 AM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Larry,
This is most likely due to a conflict with another hack that you've installed. Do you by chance have the "quote multiple posts" hack by xiphoid installed on your board? If so, thats whats causing your problem.

Try this:

At the top of your "showthread_quickedit" template add this:
Code:
</form>
Still in the showthread_quickedit template, add this at the bottom:
Code:
<form action="newreply.php" method="POST">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="threadid" value="$threadid">
That should make this hack compatible with the other one.
Reply With Quote
  #70  
Old 08-02-2003, 03:02 AM
Larry@IOG Larry@IOG is offline
 
Join Date: May 2002
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That was the problem thanks a ton

Larry
Reply With Quote
  #71  
Old 08-02-2003, 04:38 AM
Pikok Pikok is offline
 
Join Date: Jul 2002
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 01:53 AM EvilLS1 said this in Post #66
Try placing the $quickedit variable somewhere below the signature in the postbit template. I haven't used or even seen that style but its just simple html, so if you'll experiment with it a little I'm sure you can find a good place to put it.

thanks, I added the whole code where the $quickedit was right under the $signature and it works fine
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 09:45 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.05487 seconds
  • Memory Usage 2,317KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (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
  • (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