Advertisement:
GCWebhosting

Navigation

SMF Mod Site

Mod Name:
vQuoteSelection
Created By:
Valodim
Type:
Posting
First Created:
May 02, 2007, 10:45:49 AM
Last Modified:
May 02, 2007, 10:46:47 AM
Latest Version:
0.90
Compatible With:
1.1.2
Total Downloads:
29274

Download this mod

vQuoteSelection_0.90.zip (3kB) [29274]
Manual Install Instructions for SMF

Description:

This mod allows the user to quote only one part of a post, by selecting (highlighting) the desired text prior to clicking the quote button.

Important: You have to click on the quote button for selection quoting, clicking the text link will, at least in some browsers, count as selection (just like if you single click anywhere, the selection is cleared), so the script won't be able to know what was selected prior to the click.

However, the functionality provided by javascript is rather limited, the script is (especially in bbc-heavy parts) at times inaccurate, in these cases it will usually just fall back to just quoting the whole post.

Technically, the first and last 5 characters of the selected text are used to determine what parts of the quote to use, plus surrounding bbc tags are always preserved.

The important changes only affect xml_topic.js and Post.php, the changes in Display.template.php are merely a minor fix for users who don't have quick reply activated, since the template skips the doQuote function call here.

Tested with Opera, Firefox and IE6, with SMF 1.1 RC3 and 1.1.2 (meaning 1.1 and 1.1.1 should work just fine, too)

Props to shapeshifter, who gave me the original idea