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 Quote II -Quote posts instantly in your Quick Reply box Details »»
Quick Quote II -Quote posts instantly in your Quick Reply box
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: 07-01-2003 Last Update: Never Installs: 50
 
No support by the author.

Hi,

This is not an update to my other Quick Qoute hack. The other hack is a stand alone feature which works with or without the Quick Reply box.. This one does not..

To use this hack you MUST already have the Quick Reply box hack installed.

What does it do? This hack will allow you to instantly quote any post or multiple posts in your Quick Reply Box.

How it works: In the upper righthand corner of each post will be a small "QuickQoute" checkbox.. When you click it the text from that post and the original poster's username will automatically be inserted into your Quick Reply box with quote tags around it.

Improvements over the other "Quote Selected" add-on:
  • Works with all browsers
  • You can quote multiple posts
  • No need to highlight any text. Posts are quoted instantly.
  • Includes original poster's username

Very easy to install.. 1 file edit, 1 template edit, and 1 template to add.

Works with vB versions 2.2.X and 2.3.X.

Screenshot:

Screenshot1


If you find this hack useful please click install.

Show Your Support

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

Comments
  #72  
Old 08-10-2003, 10:55 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 01:54 PM PurpleCow said this in Post #69
Oblivion Knight - I tried the new text file instructions. But, no its not working again . This is what happens :

1. When i click on the image that appears, the page just refreshes. When i click on the image again, it gives me javascript errors in the status bar and this time, it doesn't refresh at all.

But nothing towards the required effect happens, that is to quote.

Thanks for your help again.

Cheers
Very strange..
I've just tested the code and it's working perfect for me.

It even anchors without my original anchor code.! :surprised:
Reply With Quote
  #73  
Old 08-11-2003, 12:52 AM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

leesa,
Thanks for the feedback. Glad you like it.
Reply With Quote
  #74  
Old 08-11-2003, 02:43 AM
PurpleCow PurpleCow is offline
 
Join Date: Mar 2003
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oblivion Knight - Actually, I already have the checkbox version installed on my forums. Now with your instructions, i just changed the quickquote template ( complete template ) replaced with your code.

But, it still doesn't work for me.

Am i missing something ?? Do i have to make changes or remove any code from the initially installed checkbox version ??

Thanks for any help.

Cheers
Reply With Quote
  #75  
Old 08-11-2003, 10:03 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope, originally you'd have needed to add a bit of java to your postbit template (found in the anchor instructions). With the code I've just posted, that java is no longer required..
Reply With Quote
  #76  
Old 08-11-2003, 12:25 PM
PurpleCow PurpleCow is offline
 
Join Date: Mar 2003
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Andrew - Unfortunatly, it still doesn't work for me.

I am not sure, whts wrong with me. I have followed the instructions, given very clearly and yet, i get the same errors, i mentioned in my previous post.

Okay, I have also installed quick edit, does that make any difference ? Also, whats the anchor instructions, you mentioned for your previous version. where can i find that ??

Thanks much for your valuable time.
Reply With Quote
  #77  
Old 08-11-2003, 12:47 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If there was no conflict between the checkbox version and the QuickEdit mod, there shouldn't be a problem between the second image version and QuickEdit since they're based on the same java structure..

The Anchor instructions can be found HERE.

No problem, I hope that we can eventually get this working for you.



Thankyou for the feedback leesa .
Reply With Quote
  #78  
Old 08-11-2003, 01:27 PM
PurpleCow PurpleCow is offline
 
Join Date: Mar 2003
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello OBK,

I placed the anchor instructions at the top of my postbit template : this was the anchor instruction :

Quote:
<script language="JavaScript">
<!--

function insertAtCaret (textEl, text) {
if (textEl.createTextRange && textEl.caretPos) {
var caretPos = textEl.caretPos;
caretPos.text =
caretPos.text.charAt(caretPos.text.length - 1) == ' ' ?
text + ' ' : text;
} else {
textEl.value = textEl.value + text; // for non MSIE browsers just append it
}

return true;
}// fn

//-->
</script>
And then, I replaced the entire contents of quick quote template with this code :

Quote:
<FORM name="p$post[postid]" style="display:inline;">
<div style="position:absolute; z-index:1; visibility: hidden">

<textarea name="message" rows="7" cols="1" wrap="virtual" tabindex="1">
Quote:
Originally posted by $post[username]
$quotetext
</textarea>
</div>
<a href="#vbform" onclick="document.vbform.message.value = document.vbform.message.value + document.p$post[postid].elements[0].value"><img src="{imagesfolder}/quick_quote.gif" border="0"></a>
</FORM>
However, in your anchor instructions file, you had made a mention of this :

Quote:
Find:

code:
onclick="document.vbform.message.value = document.vbform.message.value + document.p$post[postid].elements[0].value"



Replace with:

code:
onclick="insertAtCaret(document.vbform.message, document.p$post[postid].elements[0].value); document.vbform.message.focus();"
which template do i find and replace this last step. I checked it the postbit and quickquote template, but i don't have any such code to replace.

Also, previously, i didn't have any conflict between quick quote and quick edit hacks. they are qorking individually very fine. One more to mention is that, I have installed quote selected also for my boards, does that affect anyway ??

Thanks for all the help and sorry to trouble you soo much.


Cheers
Reply With Quote
  #79  
Old 08-30-2003, 07:10 AM
Aaron1's Avatar
Aaron1 Aaron1 is offline
 
Join Date: Oct 2002
Location: Amsterdam
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack!

Just a thought: Wouldn't it be nice if the quotes have this information aswell:

Originally posted by $originalposter on $postdate at $posttime

But the question is, how do i get the $postdate at $posttime in the quote?

Best regards,
Reply With Quote
  #80  
Old 08-30-2003, 04:42 PM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Aaron1,

In your quickquote template replace this:
Code:
Originally posted by $post[username]
with this:
Code:
Originally posted by $post[username] on $post[postdate] at $post[posttime]
Later,
Dewayne
Reply With Quote
  #81  
Old 08-30-2003, 05:36 PM
Aaron1's Avatar
Aaron1 Aaron1 is offline
 
Join Date: Oct 2002
Location: Amsterdam
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dewayne thanks for replying!
I already tried that. But it won't work.

I might be wrong, but i think $post[postdate] and $post[posttime] are functions(?) that are defined in newreply.php only, and not in Showthread.php. I guess that's why it won't be displayed.

Maybe the showthread.php needs some additional hacking to show the postdate & time?
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 10:38 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.05066 seconds
  • Memory Usage 2,315KB
  • 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
  • (5)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