Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=782)
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
Wow, Big thanks friend! This is a good hack! :)
This mod doesn't seem to work (for me).
The mod is for this quote button, isn't it?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.xs4all.nl%2F%7Ejohonl%2Fkj%2Fdump%2Fquote.jpg&hash=011156293d0ca571f34838bdb2c1d4a36cecde4b)
Whatever i select and press (button or text), it always quotes everything, the whole message......
What went wrong?
(using SMF 1.1.2)
if you select text and click the button, the link in the address bar should be something like this
index.php?action=post;quote=483143;topic=54313.40;word1=Indee;word2=data.;
are the word1 and word2 parameters present?
No, I don't get the parameters word1 & word2......
When i 'click' the button or the text next to the button, the referal is also the same......
This is what i get (in both cases: click button or click text):
index.php?action=post;quote=3;topic=2.0;sesc=50bb6373b7c971e0a3c936ab07efe590
And? Any news?
Does this work with 1.1.3? It won't let me install.
Quote from: salguod on September 01, 2007, 03:40:59 PM
Does this work with 1.1.3? It won't let me install.
It wont install with 1.1.4 either
I would love to have this for 1.1.4 - any chance of it being updated?
Hi,
I can't install this mod. I get following message, during install:
Quote"Installations actions for "vQuoteSelection Mod":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
Are there any ideas ?
Would really like this mod for the lastest version of smf, anychance of an update it would? it would rock!
Quote from: tripl3r on December 04, 2008, 07:28:45 PM
Would really like this mod for the lastest version of smf, anychance of an update it would? it would rock!
ditto. also, it may make it easier for users to understand the functionality if a separate Quote Selected icon was shown in addition to the current Quote icon & text.
Quote from: alfzer0 on December 21, 2008, 04:23:27 AM
Quote from: tripl3r on December 04, 2008, 07:28:45 PM
Would really like this mod for the lastest version of smf, anychance of an update it would? it would rock!
ditto. also, it may make it easier for users to understand the functionality if a separate Quote Selected icon was shown in addition to the current Quote icon & text.
agree
Echoing the posters above, this would be a useful update in the latest version of SMF. Any chances for an update? :)
Do you know if there is something similar for jQuery that would allow you to use context menus or at least a div that looks like a context menu?
It's a pity that this mod is abandoned...