DESCRIPTION: Adds a quick reply box to the bottom of a thread. Version 3.0 adds a Pulldown Menu for Post Icons, a Preview Post Button, a Spellcheck button and a popup Graemlin Panel (thanks JustDave)
BY: JoshPet, Allen Ayres, Gardener and JustDave for bug fixes
DATE: 12.26.2002
CREDITS: Allen Ayres for version 1, Gardener for Javascript, JustDave for bug fixes and Graemlin Popup, JoshPet for bug fixes and enhancements. German translation by jluerken.
VERSION: 3.0 for UBB.Threads 6.2
REQUIREMENTS: A full version of UBB.Threads 6.2 COMPATIBILITY: UBB.Threads 6.2
DEMO: login at www.measurection.com with username: testing and password: testing
NEW FILES: graemlinpanel.php (thanks JustDave!) NOTE: If you are using JustDave's Popup Graemlin modification already, you don't need to add this file. The script is the same.
Version history:
Version 1.0: released (08/10/2002)
Version 1.1: ubbcode parsed and post icons fixed (08/11/2002)
Version 1.2: Quick Reply only avail. to Logged in User Correctly adds the "Re:" (only once) to reply. (08/12/2002
Version 1.3: Languages settings added (08/12/2002)
Version 1.4: Fix added to remove box if thread is closed (08/13/2002)
Version 1.5: User can select which post to reply to. (08/14/2002)
Version 1.6: Fixed "Re:" issue with Javascript and added code so quick reply link does not appear if the user is not logged in or the thread is closed (08/17/2002)
Version 1.7: Javascript adds the quote instead of replacing. (08/18/2002) "Re:" checking added to javascript. Added a quick reply box to threaded view as well.
Version 1.8: Quick Reply now works with Mozilla, Opera won't break. Fixed a bug when replying to anonymous posts. Now adds the username correctly. *
Version 2.0: Updated for UBB.Threads 6.2 (12/26/2002) by JoshPet. This simply does a quick reply and not a quick quote as the Auto Quote is now a standard function of Threads
Version 2.1: With JustDave's help we've finally licked the problem voting in polls when Quick Reply was installed.
Version 2.2: Fixes a bug which allowed a reply to a moved post pointer and created some wacky results. 1/12/03
Version 3.0: Adds a pulldown menu for Post Icons, a preview Post Button, a Spell Check Button, and a popup Graemlin Panel (thanks JustDave ) 2/1/03
I was wondering if the bug where it caused Polls not to work properly in showflat was fixed or was ever tracked down? I useed to use this on my site and it was great but I am leary of reinstalling it since we use a lot of Polls. Thanks
I had the poll issue on my site in 6.2 in testing and prior to installing the quick reply mod.
Myself and Navaho experienced the poll bug at our development board. Not sure what exactly makes polls work for some and not for others.
So since polls weren't working right for all my users anyway, I went ahead and installed the quick reply mod.
I'm going to do some more testing with the poll thing. But I don't think it's quick reply related. I still can't vote in a poll here at threadsdev... and we don't have quick reply installed.
One poll for me it works... one poll for me it doesn't. I always use flat. I have threaded users who get the "not found" error too. So I haven't really found the common factor yet.
Now if I come back here and contradict myself, that'll probably cause troubles. Anyway, I had a couple of users early on complain about the poll. But it must have been something else.
I've had a good number of users testing a couple of polls, and no trouble. We've also tested at our development board.
<shrug>
Time will tell if it surfaces again.
Let me know if you use this mod and see any trouble.
I will, I havent upgraded yet to 6.2 and plan on testing this weekend on an offline server (so I can clean up any other Mods that may go haywire) I will definately keep you updated on the results
Just to update. The issue of polls seems to be cleared up in a "clean" install of threads.
I had one or two errors reported when I was on a clean copy. There may still be something lingering, but it was very isolated. Might have been a browser thing.
I added in Quick Reply, and the problem seemed better. Some errors did pop up though. It seems that if the poll is the first in the thread, it doesn't work right for everyone if quick reply is installed. But if the poll is in a reply, it seems to work better. Go figure.
I'm determined to solve this so it's totally bug free if it kills me. LOL I'll go through this again, and make sure there are no conflicting variables. When I try to validate the page with quick reply, it says there's an extra </form> tag. That could be the culprit...since a poll is a form, that could goof things up.
If I can't nail it down, plan B would be to redesign it so it doesn't appear at all if there's a poll in the thread. Might be the best way around it.
So if you use alot of polls, hold off on the quick reply.
Just a thought... What seemed to be happening was that dopoll.php wasn't getting all of the values of the variables that are passed to it when a person votes. Check for additional <form> tags of course and in the case of javascript being used make sure that the forms have specific names so that only one can be referenced.
Josh I was about to add this here when I noticed what may be the cause of the poll problems. Do you have a site I can see this up and running at? I can't say completely sure by looking at the code. I need to see the html it's generating.
Ok I believe the problem is that there are forms within forms. This must be messing with the values that get sent to dopoll.php
I'll go over the code tomorrow some when I get a change and see how to fix it.
I kinda have an idea how since I noticed the possible error while reading your instructions. What your doing is placing a new <form name="posts".... before the body ($printbody)? of the post being displayed. Then closing the form after the body is displayed. Any post inside that contains a poll may be impaired.
That whole FORM thing kind of confused me. I really didn't "create" it as you know. Allen started and Gardener did the JavaScript stuff. But it seemed to be an extra </form> in the HTML when I validated the page (or tried to) but I couldn't figure out what it was doing.
Dave will win the UBB.Threads Noble Prize for sure if he fixes Quick Reply.
I just tried it again to make sure I wasn't crazy and it told me that my post already exists......hehe I just hit the Continue button without entering anything......
Some people read their stars..... I choose to write my own
I posted a test here and asked my members to give it a test. I gave you credit for the fix.
I tested from several of my usernames, and all seems fine.
Hey, you know what. Note in my instructions I had tagged that step as (not sure)..... that's because I didn't think it was needed. But somehow when I left it out before, I had trouble. Probably because the </form> tag was still in there. Guess I was on the right track. Since I didn't "create" it, I really didn't fully understand all of it. Will let you know how I made out.
Probably if we can get it working well and show it doesn't cause problems, we can get Rick to come near it. I don't think he'd touch it with a 10 foot poll, considering what was happening to the polls.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.