Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
7 - 6 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Quote comment(s) button?
by marcionline on 2007/6/18 21:28:34

Well, I have found a javascript that can be used to do something like I want but I don't know to integrate it into XOOPS comments form.

Here is the code:

le="color: #000000"><?php <script> var isNav4Min = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4) var isIE4Min = (navigator.appName.indexOf("Microsoft") != -1 && parseInt(navigator.appVersion) >= 4) function quoteSelection() { var userSelection = false; var textarea = document.postform.message; if (isNav4Min && window.getSelection() != '') { userSelection = window.getSelection(); } else if (isIE4Min && document.selection) { userSelection = document.selection.createRange().text; } if (userSelection) { insert_text( '[quote]n' + userSelection + 'n[/quote]n', true, false); textarea.focus(); userSelection = ''; return; } else { alert('Select a text in page and try again'); } } </script>


To use it is just to create a link like this:

le="color: #000000"><?php <a href="#" onclick="quoteSelection(); return false;">Quote Selected</a>


How could I use it with XOOPS comments?

Thanks in advance.
Re: Quote comment(s) button?
by giba on 2007/5/25 15:08:47

Hi Marcio.

You is member team http://www.xoops.net.br , look in forum privative.

Thanks
Quote comment(s) button?
by marcionline on 2007/5/25 13:59:38

Is there a way to include a "quote comment" button to comments, like in many others CMS ??

Thanks

Who's Online

202 user(s) are online (165 user(s) are browsing Support Forums)


Members: 0


Guests: 202


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits