Firefox PHP

Module: Quick Reply

Posted by Maurice Makaay 
All files from this thread

File Name File Size   Posted by Date  
quick_reply-1.0.6.zip 16.2 KB open | download Maurice Makaay 11/17/2009 Read message
user_tagging-1.0.6.tar.gz 14.6 KB open | download Maurice Makaay 11/17/2009 Read message
Module: Quick Reply
July 20, 2009 07:25PM
This module implements a quick reply feature. Authenticated users can click
on "Quick Reply" in a message, which will bring up a very basic message
editor without any special features (editor tool buttons, attachments,
posting options, etc.) This editor can be used for quickly leaving a reply
in a thread.

To answer the obvious question: No, this module does not support quick reply
for anonymous users. The main reason for this is that the quick reply editor
interface should be kept as simple as possible. In my opinion, adding support
for anonymous users would add too much clutter to the editor, since it
would require:

- adding a field for the author name;
- adding a field for the author's mail address;
- adding some CAPTCHA to prevent automatic message posts by spam bots.

Additionally, I think that the quick reply feature is a nice feature to
offer to users as a bonus for taking the step of registering their account.

Changelog:
----------

2009-11-17 v1.0.6

   - Updated for compatibility with Spam Hurdles version 2.

2009-08-03 v1.0.5

   - Removed a </style> tag from the css template file. This one was
     a left behind from early development, when the stylesheet was not
     yet incorportated in Phorum's css structure.
     For me, this bug caused the color popup menu in the editor tools
     to fail, but depending on the installation, the effect of the bug
     might be different.

   - Modified the templates a bit, to fix a rendering issue in Firefox.
     The border around the quick reply editor would not always show up
     on all sides.

2009-07-27 v1.0.4

   - The Ajax call for setting up the reply form now transforms the
     reply "Re: ..." subject not HTML-encoded. For filling the form field
     using JavaScript, this is not neccessary. This fixes the bug where
     a subject like "This & that" would get "Re: This &amp; that" in the
     Quick Reply editor. Thanks to phorum.org user "noe" for reporting
     the bug!

2009-07-23 v1.0.2

   - Move the quick editor up if it is not completely visible in the browser.

   - Added Ajax request caching for Phorum 5.2 (for development version
     5.3 it was already working).

2009-07-21 v1.0.1

   - Fixed some MSIE JavaScript compatibility issues.
     Thanks to CBiLL for noticing the problem.

   - Added a classic template compatible module template.

   - Moved the bulk of the JavaScript code to a main JavaScript file.
     This way, we prevent having to copy over the full JavaScript file
     from the Emerald template when creating a new template.

2009-07-21 v1.0.0

   - Initial release.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce



Edited 7 time(s). Last edit at 11/17/2009 05:23PM by Maurice Makaay.
Attachments:
open | download - quick_reply-1.0.6.zip (16.2 KB)
open | download - user_tagging-1.0.6.tar.gz (14.6 KB)
Re: Module: Quick Reply
July 20, 2009 07:30PM
I enabled the quick reply module on phorum.org, so you can see what it looks like and how it works. If you want to actively test it, then please use this thread for it so we won't get testing messages all over these forums. I will cleanup the mess afterwards.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Quick Reply
July 20, 2009 07:43PM
Sorry I do not see a quick reply link anywhere in this post.

Can you point it out to me please? I am curious to try it out.

Thank you
Bill
Re: Module: Quick Reply
July 20, 2009 08:33PM
Your browser cache is a bit behind I guess.
Do a shift+reload or ctrl+shift+reload (I never remember what is the standard combo, so I normally hit all those buttons ;-). That should bring up the quick reply option.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Quick Reply
July 20, 2009 09:11PM
I already cleared the IE cache but same thing and still no link.

So I tried it Firefox and I see it working in Firefox so It just not working in IE





However in IE I do see an error script popping up so when I bring up the detail here what I get ..

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Tue, 21 Jul 2009 01:09:50 UTC


Message: Object doesn't support this property or method
Line: 2
Char: 32893
Code: 0
URI: [www.phorum.org]





Bill
Re: Module: Quick Reply
July 21, 2009 03:13AM
Cool ;-) I must admit that I don't have MSIE available here, since I'm on vacation on my Linux laptop. So I coded this with Firefox and did not do the regular "and what does MSIE think about it?" check yet. I'll see if I can think of the reason why MSIE refuses.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Quick Reply
July 21, 2009 03:32AM
MSIE does not support getElementsByClassName() in javascript. I think it should work now.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Quick Reply
July 21, 2009 03:47AM
Quote
Maurice Makaay
MSIE does not support getElementsByClassName() in javascript. I think it should work now.

It didn't fix it but produced more error.

It seem that fix you put in broke other javascript like tool editors etc.

Here are the error

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Tue, 21 Jul 2009 07:46:25 UTC


Message: Syntax error
Line: 55
Char: 8
Code: 0
URI: [www.phorum.org]


Message: 'thumbnailviewer' is undefined
Line: 33
Char: 1
Code: 0
URI: [www.phorum.org]


Message: 'editor_tools_lang' is undefined
Line: 64
Char: 1
Code: 0
URI: [www.phorum.org]


Message: 'editor_tools_lang' is undefined
Line: 1153
Char: 1
Code: 0
URI: [www.phorum.org]


Message: Object expected
Line: 1219
Char: 1
Code: 0
URI: [www.phorum.org]


Message: 'PhorumJumpMenu' is undefined
Line: 1238
Char: 1
Code: 0
URI: [www.phorum.org]


Message: 'PhorumJumpMenu' is undefined
Line: 1247
Char: 1
Code: 0
URI: [www.phorum.org]


Message: Object expected
Line: 1305
Char: 3
Code: 0
URI: [www.phorum.org]


Bill
Re: Module: Quick Reply
July 21, 2009 02:04PM
A friend lent me a hand by giving me access to a Windows terminal server. So I was able to debug the MSIE issue (I tested on MSIE7). The problems that I found were an extraneous comma (MSIE is always picky about that) and the fact that MSIE does not seem to like "var class = ...." (so using "class" as a variable name).

I'm now replying using the quick reply at phorum.org. I will upload a new version of the module in a minute.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Quick Reply
July 21, 2009 02:39PM
Yes I see the quick reply link now and it look good!

I am using it to reply to this post!

Thanks!
Bill
Sorry, only registered users may post in this forum.

Click here to login