vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Easier Quoting in QR (https://vborg.vbsupport.ru/showthread.php?t=66653)

IceFanatic 06-28-2004 08:48 PM

Easier Quoting in QR
 
I have been unable to find a mod that does this, so if anyone knows of one, please point me in the right direction.

What I'm looking for is an addition to the quick reply feature that allows you to highlight text on that page and click a "Quote" button that immediately adds the quote into the QR box. Hopefully I explained this properly.

Is there a way to do this? Or does this feature already exist somewhere?

Any help would be appreciated. The members on my board (which used to be phpbb) would love for this feature to be implemented.

Thank you.

EvilLS1 06-28-2004 09:03 PM

1 Attachment(s)
Attached are one template mod (Quote Selected) and one hack (Quick Quote III).

The Quote Selected mod does exactly what you requested. It adds a button under your quick reply box and when you highlight text with your mouse & click the button it'll insert it into your QR box. The known limitations are that it doesn't work with the wysiwyg toolbar or require click for QR enabled and it only works with internet explorer. But when those options are enabled or the user isn't using an IE browser the button won't be displayed.

The Quick Quote hack adds a checkbox to each postbit. When the checkbox is ticked it instanly inserts the text from the post into the QR box. You can also quote multiple posts with it. However, to use it "Require Click for Quick Reply" must be set to no. Also, it does not work when the WYSIWYG quick reply toolbar is enabled. You can turn it on and off in the admincp under vboptions.

IceFanatic 06-28-2004 09:55 PM

Dude, you rock! Thanks a lot!

EvilLS1 06-29-2004 05:00 PM

Quote:

Originally Posted by Mark.B
Is there any way to make this 'strip' the nested quotes like the normal quote facility does?

It already does.

EvilLS1 06-29-2004 07:18 PM

Hmm.. Try replacing this:
Code:

  $quotetext= htmlspecialchars_uni($post['pagetext']);
With this:
Code:

  $quotetext= htmlspecialchars_uni(strip_quotes($post['pagetext']));

EvilLS1 06-29-2004 09:06 PM

N/P. Glad it works for you. :) I've been meaning to clean this hack up a bit and post it but never got around to it.

EvilLS1 06-29-2004 09:11 PM

Thanks for the suggestions. Those are good ones. If I can ever get past this lazy streak I'll look into it. :)


All times are GMT. The time now is 11:00 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.01040 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete