Very easy forum quoting!

If you have any 'mechanical' forum or Joomla! sites related issues/suggestions, please contact the Sites & Infrastructure Workgroup here.

Moderators: brad, Tonie

Forum rules
Forum Rules
READ ME <-- please read before posting, this means YOU.
Post Reply
marlar
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Aug 18, 2005 12:21 pm

Very easy forum quoting!

Post by marlar » Thu Nov 24, 2005 9:56 pm

Hi,

I have become tired of copy & paste when I want to quote a few words or lines from a previous post. The built-in quote function is not very helpful either.

So I created this bookmarklet to make quoting VERY easy!

Create a bookmark with the following URL:

Code: Select all

javascript:(function(){ if(!document.forms.postmodify){alert('This bookmarklet only works when posting in Joomla Forum!');return;}var txt = ''; if (window.getSelection) { txt = window.getSelection(); } else if (document.getSelection) { txt = document.getSelection(); } else if (document.selection) { txt = document.selection.createRange().text; } else return; replaceText('[quote]' + txt + '[/quote]', document.forms.postmodify.message); })()


When you later want to quote something, all you have to do is:

  • Place the cursor where you want the quote
  • Select the piece of text you want to quote. You must select outside the textfield you're writing in, ie. down the page where the rest of the thread is!
  • Click on the bookmarklet!

Now, that is quite cool, uh? 8)

Ps. It probably doesn't work in IE.
Last edited by marlar on Thu Nov 24, 2005 11:04 pm, edited 1 time in total.
"The Mambot Creator" - MultiThumb, Mosif, Htmlfix, MosHide...
http://kreacom.dk/mambot

User avatar
benedikt
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Mon Aug 22, 2005 2:29 pm
Location: Gent - Belgium

Re: Very easy forum quoting!

Post by benedikt » Thu Nov 24, 2005 10:57 pm

It Works!
Now, that is quite cool, uh? Cool

Inceredibly cool, indeed!

Thanks Marlar


Post Reply