Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Valodim on May 12, 2007, 08:42:27 PM

Title: vQuoteSelection
Post by: Valodim on May 12, 2007, 08:42:27 PM
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
Title: Re: vQuoteSelection
Post by: El Reclutador 2003 on May 13, 2007, 06:09:49 AM
Wow, Big thanks friend! This is a good hack! :)
Title: Re: vQuoteSelection
Post by: kaajee on June 12, 2007, 07:06:09 AM
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)
Title: Re: vQuoteSelection
Post by: Valodim on June 12, 2007, 01:50:41 PM
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?
Title: Re: vQuoteSelection
Post by: kaajee on June 12, 2007, 02:27:09 PM
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
Title: Re: vQuoteSelection
Post by: kaajee on July 02, 2007, 05:22:18 PM
And? Any news?
Title: Re: vQuoteSelection
Post by: salguod on September 01, 2007, 03:40:59 PM
Does this work with 1.1.3?  It won't let me install.
Title: Re: vQuoteSelection
Post by: njdevils28 on December 05, 2007, 08:51:07 AM
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
Title: Re: vQuoteSelection
Post by: 58tbird on March 26, 2008, 05:22:54 PM
I would love to have this for 1.1.4 - any chance of it being updated?
Title: Re: vQuoteSelection
Post by: LinuxFanatic on July 18, 2008, 06:10:17 AM
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 ?
Title: Re: vQuoteSelection
Post by: 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!
Title: Re: vQuoteSelection
Post by: 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.
Title: Re: vQuoteSelection
Post by: NHWD on December 21, 2008, 04:29:18 AM
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
Title: Re: vQuoteSelection
Post by: mp213 on January 30, 2010, 04:56:08 AM
Echoing the posters above, this would be a useful update in the latest version of SMF. Any chances for an update? :)
Title: Re: vQuoteSelection
Post by: Joshua Dickerson on July 03, 2011, 08:22:43 PM
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?
Title: Re: vQuoteSelection
Post by: vkot on October 17, 2011, 03:14:56 AM
It's a pity that this mod is abandoned...