vQuoteSelection

Started by Valodim, May 12, 2007, 08:42:27 PM

Previous topic - Next topic

Valodim

Link to Mod

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

El Reclutador 2003

Wow, Big thanks friend! This is a good hack! :)
http://www.dr3team.net    http://www.dr3team.com


kaajee

This mod doesn't seem to work (for me).
The mod is for this quote button, isn't it?

Whatever i select and press (button or text), it always quotes everything, the whole message......
What went wrong?
(using SMF 1.1.2)

Valodim

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?

kaajee

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

kaajee


salguod

Does this work with 1.1.3?  It won't let me install.

njdevils28

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

58tbird

I would love to have this for 1.1.4 - any chance of it being updated?

LinuxFanatic

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 ?

[nofollow]

tripl3r

Would really like this mod for the lastest version of smf, anychance of an update it would? it would rock!

alfzer0

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.

NHWD

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

mp213

Echoing the posters above, this would be a useful update in the latest version of SMF. Any chances for an update? :)

Joshua Dickerson

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?
Come work with me at Promenade Group



Need help? See the wiki. Want to help SMF? See the wiki!

Did you know you can help develop SMF? See us on Github.

How have you bettered the world today?

vkot

It's a pity that this mod is abandoned...
For specialized SMF installation/customization, Web Development, Linux Server Administration, click here.
Για εξειδικευμένες υπηρεσίες στα παραπάνω, πατήστε εδώ.

Advertisement: