Topic: the quote-button doesn't seem to work in google's chrome. |
|
---|---|
Author | Thread |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 10-08-2008 18:25 |
Maniac (V) Inmate From: there...no..there..... |
posted 10-08-2008 18:45
what's "the quote button" ?? |
Maniac (V) Inmate From: there...no..there..... |
posted 10-08-2008 18:56
eigh....never mind. I gotcha The quote button right up there ^^ |
Paranoid (IV) Inmate From: Norway |
posted 10-08-2008 18:56 |
Paranoid (IV) Inmate From: Florida |
posted 10-08-2008 21:56
s/google's chrome/WebKit/ |
Paranoid (IV) Mad Librarian From: ber/ger |
posted 10-09-2008 02:06
quote:
code: /* * * * Quote (part of) a post */ // Inspired by Emperor, http://www.the-emperor.org/ function quotePost(quoteID) { quoteAuthor = stripHTML(getObj("post_" + quoteID + "_author").innerHTML); quoteText = stripHTML(getObj("post_" + quoteID).innerHTML); // Get selection (if any) var userSelection; if (window.getSelection) { // Mozilla way userSelection = window.getSelection(); } else if (document.selection) { // Microsoft way (should come last; Opera!) userSelection = document.selection.createRange(); } var selectedText = userSelection; if (userSelection.text) selectedText = userSelection.text; // Check if the selection is part of the post if (selectedText && filterWhitespace(quoteText).indexOf(filterWhitespace(selectedText)) != -1) { quoteText = selectedText; } quoteText = trim(decodeHTMLEntities(quoteText)); quoteUBB = "[quote]\n[b]" + quoteAuthor + " said:[/b]\n\n" + quoteText + "\n[/quote]\n"; insertCode(quoteUBB); } |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 10-09-2008 09:52
changed to kuckus code - seems to break in opera though. |
Paranoid (IV) Inmate From: Florida |
posted 10-19-2008 17:54
Yeah, Quote doesn't work in Firefox now, either. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 10-20-2008 11:51
got another version for me kuckus? Or shall I revert to the old code for now? |
Maniac (V) Mad Librarian From: Seoul, Korea |
posted 10-23-2008 03:03
Can we please revert until we get something that works in FF and Opera? |
Paranoid (IV) Inmate From: Florida |
posted 10-23-2008 05:36
I'm glad you said it, Suho, so I didn't have to. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 10-23-2008 10:26
Well, I've been waiting for kuckus to reply. Sorry, should have reverted sooner. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 10-27-2008 12:17
all right, finally got access again - we're back to the original (working) quote code. |
Lunatic (VI) Mad Scientist From: The Happy Hunting Grounds... |
posted 10-27-2008 14:42
Thanks, TP! |
Paranoid (IV) Mad Librarian From: ber/ger |
posted 12-04-2008 00:29
I'm sorry, totally forgot about this |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 08-07-2009 13:14
any luck with this, kuckus? |