UBB.Dev
Posted By: Gizmo [6.6] [finished] Quick Reply - 09/02/2003 1:59 AM
Author: Gizzy
Original Authors: Greg Hard and LK

Date: 09.01.2003
Requirements: Valid UBB License, UBB 6.6, Wordlets Mods

Demo: Here (see below) and just about every other UBB
Download: here

Thanks: Thanks to my little buddy Weird Al
Notes: There are only minor code modifications, and also added code for quick reply in PM's.
Posted By: AllenAyres Re: [6.6] [finished] Quick Reply - 09/02/2003 6:31 AM
Thanks gizzy, one of my favorites laugh
Posted By: Gizmo Re: [6.6] [finished] Quick Reply - 09/02/2003 6:46 AM
smile ... I won't be doin that many ports this coming version due to me not understanding the cp and me starting a new job tomorrow...
Posted By: RandyM Re: [6.6] [finished] Quick Reply - 09/26/2003 6:15 AM
i've redone this hack at least ten times and for some reason users can't change their choice in their profile. Mine is set to yes and I see the box. If I change it to no, it rights a 0 to line 62 (field 61 I believe) of my member file but I still see the box. When I re-enter my profile it says yes again, and if I save my profile it does in fact write a 1 to that line. I still see the box no matter what. One of the other members has the opposite problem, his is always set to no.

Any ideas?
Posted By: RandyM Re: [6.6] [finished] Quick Reply - 09/26/2003 7:00 AM
Well, I got it to save the preference in the profile. I removed this from public_edit_profile.pl

Code
my $quickreply_yes = $user_profile[61] ne '0' ? ' checked="checked"' : '';
my $quickreply_no = $user_profile[61] eq '0' ? ' checked="checked"' : '';
Then I added this to ubb_profile.cgi

Code
# calibrate quick reply
if ($user_profile[61] eq '1') { $quickreply_yes = 'checked="checked"'; $quickreply_no = ''; }
else { $quickreply_no = 'checked="checked"'; $quickreply_yes = ''; }
after

Code
# calibrate mass mail
if ($user_profile[14] eq 'yes') { $mm_yes = 'checked="checked"'; $mm_no = ''; }
else { $mm_no = 'checked="checked"'; $mm_yes = ''; }
The bos is still ignoring the choice though. It disappears if I log out though.
Posted By: Ian Spence Re: [6.6] [finished] Quick Reply - 09/26/2003 7:06 AM
try the obvious choice smile


change
Code
my $quickreply_yes = $user_profile[61] ne '0' ? ' checked="checked"' : '';
my $quickreply_no = $user_profile[61] eq '0' ? ' checked="checked"' : '';
to

Code
if($user_profile[61] = 1){
my $quickreply_no = '';
my $quickreply_yes = qq( checked="checked");
} else {
my $quickreply_no = qq( checked="checked");
my $quickreply_yes = '';
}
that worked for me
Posted By: RandyM Re: [6.6] [finished] Quick Reply - 09/26/2003 7:30 AM
When I did that I get neither radio button *lit*.
Posted By: Ian Spence Re: [6.6] [finished] Quick Reply - 09/26/2003 4:53 PM
then instead of = 1, try eq '1', etc

It doesn't work the same way for some people
Posted By: LK Re: [6.6] [finished] Quick Reply - 09/26/2003 6:23 PM
Actually =1 doesn't work for anyone, it has to be with == tipsy
Posted By: Gizmo Re: [6.6] [finished] Quick Reply - 09/26/2003 6:27 PM
tell me if it works and i'll update the text :x...
Posted By: Ian Spence Re: [6.6] [finished] Quick Reply - 09/27/2003 12:29 AM
Quote
quote:
Originally posted by LK:
Actually =1 doesn't work for anyone, it has to be with == tipsy
frown I've been coding for 7 years, I can't believe I did that
Posted By: Ian Spence Re: [6.6] [finished] Quick Reply - 10/03/2003 4:04 AM
I found a bug smile

If you're in a private forum, and have permission to reply, but not make topics, the preview post function tells you you don't have permission
Posted By: Saturn_Kindred Re: [6.6] [finished] Quick Reply - 10/03/2003 6:19 PM
Quote
quote:
Originally posted by Weird Al:
try the obvious choice smile


change
Code
my $quickreply_yes = $user_profile[61] ne '0' ? ' checked="checked"' : '';
my $quickreply_no = $user_profile[61] eq '0' ? ' checked="checked"' : '';
to

Code
if($user_profile[61] = 1){
my $quickreply_no = '';
my $quickreply_yes = qq( checked="checked");
} else {
my $quickreply_no = qq( checked="checked");
my $quickreply_yes = '';
}
that worked for me
I tried this fix and it still doesn't take the quick reply out if they select no.
Posted By: Ian Spence Re: [6.6] [finished] Quick Reply - 10/03/2003 6:28 PM
That wouldn't be the code I posted, that would be in the cookies. Look over the lines that resemble
Code
-value   => [$user_profile[0], md5_hex($new_password), $public_name, $daysprune, $in{u}, $pntf_hidden, $avhide, $new_date_format, $new_time_format, $tzoffset, "", "", "", $quickreply],
and if you've applied any other hacks that change it, just make sure that quick reply is the 4th one after $tzoffset. Personlly, I just don't let people disable it, then all I have to do is hide it to Anonymous users
Posted By: RandyM Re: [6.6] [finished] Quick Reply - 10/03/2003 11:51 PM
I've verified the hack numerous times, and also verified the cookie code you posted and it still disregards the profile choice. It disappears for users that aren't logged in so I count it as a win.
Posted By: Gizmo Re: [6.6] [finished] Quick Reply - 10/07/2003 12:25 AM
I can't re-create the error with users not being able to disable the QR, or the one where it's viewable to everyone when not logged in (on 6.6).

As for the private topics where you can reply in the first place, i'll look at it a little later.
Posted By: LK Re: [6.6] [finished] Quick Reply - 10/07/2003 12:42 AM
xpert, make sure the user who chose to hide quickreply has set a timezone, etc.. also don't forget to also replace "= 1" with "== 1".
Posted By: Trekkie Re: [6.6] [finished] Quick Reply - 10/07/2003 7:16 AM
Now about making QuickReply CSS savvy...
Posted By: RandyM Re: [6.6] [finished] Quick Reply - 10/14/2003 3:33 AM
It seems that the preview button returns a permissions error in forums where the members are allowed to reply but not start threads. The error is;

Quote
quote:

FYI You do not have permission to enter this area.
Edit: the error can be duplicated in the announcements forum here.
Posted By: Charles Capps Re: [6.6] [finished] Quick Reply - 10/14/2003 5:11 AM
That might be a problem in the preview code itself.
Posted By: RandyM Re: [6.6] [finished] Quick Reply - 10/14/2003 5:32 AM
The regular reply preview works fine, do you think the code being added to the topic page itself for the quick reply is the issue?
Posted By: Ian Spence Re: [6.6] [finished] Quick Reply - 10/14/2003 5:49 AM
try changing
Code
earl = earl + ";type=topic" + ";disable_smilies=" + disabled + ";Signature=" + siggy;
to

Code
earl = earl + ";type=reply" + ";disable_smilies=" + disabled + ";Signature=" + siggy;
Posted By: RandyM Re: [6.6] [finished] Quick Reply - 10/14/2003 6:16 AM
That was it, thanks!
Posted By: Gizmo Re: [6.6] [finished] Quick Reply - 10/27/2003 8:26 PM
Ok, I went through (finally) to verify this hack on a clean version of 6.6.1.

Errors I've found that I can recreate:
Users can't turn off QR.

Errors that i cannot recreate:
QR shows when not logged in.

I'm error checking now for the best way to get it to work *as planned* and I believe Randy's route is so. Will work on other reported errors as I get time.
Posted By: RandyM Re: [6.6] [finished] Quick Reply - 10/28/2003 10:08 AM
I don't see the QR box when logged out, I do see the first error though. I don't consider it to be a deal breaker though, it's a fantastic add-on.
Posted By: Gizmo Re: [6.6] [finished] Quick Reply - 10/28/2003 8:46 PM
Agreed, i'm tempted to take off the option to disable it, i don't know anyone who disables it in the first place lol...
Posted By: PhillipBurum Re: [6.6] [finished] Quick Reply - 12/05/2003 4:28 AM
I'm getting a registration error, and I think this mod might be related, could someone possibly see an error in my ubb_registration? Here is the code about where I think the problem is...


my @thismemarray = (
$user_name, $password, $email, $homepage, $permission, #0

&CensorCheck($in{occupation}), &CensorCheck($in{location}), '0', $this_status, &CensorCheck($in{interests}), #5

$GotTime{HyphenDate}, $in{EmailView}, $sig_html, $in{icq}, $in{AllowMassMail}, #10

$public_name, &CensorCheck($in{customfield1}), &CensorCheck($in{customfield2}), &CensorCheck($in{customfield3}), #15

&CensorCheck($in{customfield4}), $picture, $in{DaysPrune}, $in{aim}, '', '', $in{user_ratings}, #19

$mod_q, $in{private_message}, $in{private_message_notify}, 'yes', '', $new_title, #26

$birthdate, $ipaddy, $in{parent_email}, $pntf_hide, $poll_ban, $avatar_url, # 32

$avline, $tzline #38
$thismemarray[61] = $quickreply;
);

&WriteMemberProfile($next_number, @thismemarray);

# Update the memberslist indexes
# &UpdateOLIdexLine($next_number, join("|#|", map { $_ =~ s/|[#*]|//g; $_; } @thismemarray[5,6,9,16,17,18,19]));
# &UpdatePCdexLine($next_number, 0);
# &UpdatePermsdexLine($next_number, (($mod_q eq "Q" ? 1 : 0) . "|&|" . ($permission =~ m/COPPA/ ? 1 : 0)
# . "|&|" . ($mod_q eq "Q" ? 0 : 1) . "|&|Junior Member|&||&|$GotTime{HyphenDate}"));

# update associated files
my $total_members = scalar(@members) + 1; #the total number of registered users
Posted By: PhillipBurum Re: [6.6] [finished] Quick Reply - 12/05/2003 4:31 AM
I added a comma after $tzline and before the #38, now half the error is gone. My website is at

http://4.3.203.28/tin_benders/ and from there you can access the UBB and try to register. I'd really apprecaite the help, my club wants to go public with our site soon, and I fear it isn't ready.

TIA!

--Phillip
Posted By: Ian Spence Re: [6.6] [finished] Quick Reply - 12/05/2003 4:36 AM
take

$thismemarray[61] = $quickreply;


and move it until after the

);

but before the

&WriteMemberProfile($next_number, @thismemarray);
Posted By: PhillipBurum Re: [6.6] [finished] Quick Reply - 12/05/2003 5:52 AM
To you, I owe my life. Thank you!!!!!
Posted By: Gizmo Re: [6.6] [finished] Quick Reply - 12/06/2003 12:06 AM
Wow, i missed a lot :x...
Posted By: Digital Boy Re: [6.6] [finished] Quick Reply - 12/15/2003 10:29 PM
OK, I'm not sure if I'm the only one lost here, BUT:

1) Did we solve the problem of the user not being able to turn off the QR? I think that this is an important feature.

2) Were we able to get one of the radio buttons to show a response? Mine are still both blank.

3) If I have not choice but to disable this option in the user profile, how do I go about doing so?

Thanks,

- MT
Posted By: Gizmo Re: [6.6] [finished] Quick Reply - 12/16/2003 5:15 AM
1. No
2. No
3. If it eludes us, we have not a clue how to tell you to disable it...

Pretty much, with my messed up code for this version :choff:, you'll pretty much need to not even bother with the code for the profile code's since they dont work...

Since QR is stock code in 6.7 which should be released next month (beta this month, final is usually out a month or so after beta) this code is almost obsolete smirk...
Posted By: Digital Boy Re: [6.6] [finished] Quick Reply - 12/16/2003 4:13 PM
Hmmm... OK.
Posted By: AllenAyres Re: [6.6] [finished] Quick Reply - 12/17/2003 9:24 AM
quick reply is standard in 6.7... coming soon to a website near you wink

https://www.ubbdev.com/test/ubb/ultimatebb.php
Posted By: Digital Boy Re: [6.6] [finished] Quick Reply - 12/17/2003 4:32 PM
Do we know when this is being released? This isn't going to be like the old days where they say it's going to be released and it takes months, is it?

- MT
Posted By: Ian Spence Re: [6.6] [finished] Quick Reply - 12/17/2003 6:08 PM
the first public beta should be out any day now, and the final version depends on how many bugs are found
Posted By: Digital Boy Re: [6.6] [finished] Quick Reply - 12/17/2003 9:51 PM
Just out of curiosity, how much time elapses between releases? Is it worth even modifying them if two months later there's a release?

- MT
Posted By: Charles Capps Re: [6.6] [finished] Quick Reply - 12/17/2003 10:34 PM
The schedule has been sorta odd lately with all the work that went into 6.6, but we generally try to do a major release every few months.
Posted By: Digital Boy Re: [6.6] [finished] Quick Reply - 12/24/2003 10:12 PM
I don't mean to undermine your creativity, BUT...

I fixed the problem... sort of. See, if the problem is that little crap about allowing people to have a decisiion in the matter, simply take it out. That's all I did and it worked beautifully. Granted, I've got some clean up to do, but I just tested it with perfect success...
Posted By: Digital Boy Re: [6.6] [finished] Quick Reply - 12/24/2003 10:21 PM
Also, I think everyone is somewhat missing the point of the "Quck Reply." I mean, if you have basically the same options here as you have when you hit REPLY how is that any different?

What I'm doing now is getting rid of every option BUT the submit buttons. THAT is a quick reply....
Posted By: Mrs.B Re: [6.6] [finished] Quick Reply - 01/17/2004 11:18 PM
Gizzy

One more old problem laugh

Your site is blocked from our ISP shocked

Can any one upload it for me, please smash
Posted By: Gizmo Re: [6.6] [finished] Quick Reply - 01/18/2004 12:22 AM
I just love ISP's that block security news sites... love love love lol...
Posted By: Mrs.B Re: [6.6] [finished] Quick Reply - 01/18/2004 1:11 AM
Quote
Originally posted by Gizzy:

I just love ISP's that block security news sites... love love love lol...
LOL laugh

Okay We love them too shocked but we want the hack plz mad

tipsy
Posted By: Gizmo Re: [6.6] [finished] Quick Reply - 01/18/2004 3:52 AM
I don't have any other servers to upload them to...
Posted By: Ian Spence Re: [6.6] [finished] Quick Reply - 01/18/2004 4:26 AM
*cough* flareupload *cough*
Posted By: Mrs.B Re: [6.6] [finished] Quick Reply - 01/18/2004 11:28 AM
Oh shocked

the upload file in ubbdev, isn't working?
Posted By: Gizmo Re: [6.6] [finished] Quick Reply - 01/18/2004 3:57 PM
https://www.ubbdev.com/ubb/upload/00017811/QuickReply6.6.txt wink
Posted By: Mrs.B Re: [6.6] [finished] Quick Reply - 01/18/2004 7:16 PM
Thanks Gizzy, im working on it now smile
Posted By: radrico Re: [6.6] [finished] Quick Reply - 09/24/2004 1:26 PM
Wow it took an hour but i did it right... and it works. after messing up 2 other versions lol smile Awesome.
Posted By: God Re: [6.6] [finished] Quick Reply - 10/02/2005 10:38 PM
I've installed it and it's working. Does anyone know how to add the graemlins to the window of the QR?

Is there also a way to make that spell check button actually say (SP) on it?
Posted By: Trekkie Re: [6.6] [finished] Quick Reply - 10/09/2005 1:44 AM
How does one go about making the qdown icon be theme settable for Colorforums like the edit/quote/report icons?
Posted By: Ian Spence Re: [6.6] [finished] Quick Reply - 10/09/2005 3:59 AM
Replace
Code
				document.write('<a href="javascript:return false;" onclick="insertAtCaret(document.replier.message, unescape(\''+quote+'\')); document.replier.message.focus(); return false;"><img border="0" src="$vars_config{NonCGIURL}/qdown.gif" alt="Quick Reply w/quote" /></a> ');
with
Code
				document.write('<a href="javascript:return false;" onclick="insertAtCaret(document.replier.message, unescape(\''+quote+'\')); document.replier.message.focus(); return false;"><img border="0" src="$vars_config{NonCGIURL}'+style+'/qdown.gif" alt="Quick Reply w/quote" /></a> ');
Posted By: Trekkie Re: [6.6] [finished] Quick Reply - 10/09/2005 5:13 AM
Thanks as always Al.
Posted By: Trekkie Re: [6.6] [finished] Quick Reply - 10/09/2005 6:40 AM
Oh wait, you forgot something.

Add
Code
/graphics/
before
Code
'+style+'
© UBB.Developers