PDA

View Full Version : Quick answer form


10-07-2001, 10:00 PM
This hack add answer form on bottom page with thread :cool:

kamrad.ru
10-08-2001, 09:27 AM
This is a vB on screenshot :)

RobAC
10-08-2001, 12:26 PM
Can you be more specific and explain a little more what this hack does? What's the purpose of an "answer form"??

floleb7
10-08-2001, 01:09 PM
you have the the textarea et the attach file option directly in post you can create directly without using post reply

kamrad.ru
10-08-2001, 03:25 PM
Can you be more specific and explain a little more what this hack does? What's the purpose of an "answer form"??
This form add`s in thread page and you can answer on the this thread don`t opening page with answer form

you have the the textarea et the attach file option directly in post you can create directly without using post reply
No, sorry. It`s QUICK answer form :)

Lesane
12-02-2001, 02:05 PM
Pretty cool, Thanks :)

fineclicks
12-16-2001, 11:48 PM
Great hack!
Also, if you want to be able to support smilies with the quick reply form you can by:

1. Add this to the head tags of your showthread template:

<SCRIPT LANGUAGE="JavaScript"><!--
function win(fileName) {
myFloater = window.open('','myWindow','scrollbars=yes,status=n o,width=300,height=250')
myFloater.location.href = fileName;
}
//--></SCRIPT>


2. Then simply add this wherever you would like the link to show up at on the form:

<A HREF="javascript:win('http://www.YOUR-LINK-TO/misc.php?action=getsmilies')">Smilie Codes</A>

Be sure to change YOUR-LINK-TO to the correct path to your misc.php file.

This will bring up a small popup with all of your smilies that the users can simply click ont to add to their reply just like they can do in the regular reply form.

nuno
12-16-2001, 11:52 PM
indeed nice hack
:stupid: this thread is almost 2 months old :stupid:

fineclicks
12-16-2001, 11:53 PM
Oh, I'm sorry...
Was there a time limit you have to reply to old posts here?
:D

TheComputerGuy
12-17-2001, 09:01 AM
this is sweet!!

I am glad someone pointed it out even if it was 2 months old!!!!:)

Lesane
12-22-2001, 10:18 AM
Originally posted by fineclicks
Great hack!
Also, if you want to be able to support smilies with the quick reply form you can by:

1. Add this to the head tags of your showthread template:

<SCRIPT LANGUAGE="JavaScript"><!--
function win(fileName) {
myFloater = window.open('','myWindow','scrollbars=yes,status=n o,width=300,height=250')
myFloater.location.href = fileName;
}
//--></SCRIPT>


2. Then simply add this wherever you would like the link to show up at on the form:

<A HREF="javascript:win('http://www.YOUR-LINK-TO/misc.php?action=getsmilies')">Smilie Codes</A>

Be sure to change YOUR-LINK-TO to the correct path to your misc.php file.

This will bring up a small popup with all of your smilies that the users can simply click ont to add to their reply just like they can do in the regular reply form.

Thanks for the addon!

fineclicks
12-22-2001, 04:30 PM
No problem :)
You can pretty much add anything else by simply copy and pasting from the newreply template. I also added the 3 checkboxes below the reply form to support signatures, email notifications and url parsing.

tony
03-04-2002, 12:30 AM
Nice I like it.
and there is a but
I have a win xp so i get an error when I submit a reply
line 356
error object expected

CHNoodles
04-10-2002, 04:34 PM
As the man from Mars used to say, "I am only an egg". I tried looking at the proposed change to the showthread template, and when I unzipped the attachment mentioned in the OP, I saw two lines that had "extended ASCII" characters:
<td width="18%" bgcolor="#DFDFDF" valign="top"><normalfont><b>??? ?????:</b></normalfont>
and

<input type="submit" class="bginput" value="?????????"
accesskey="s" tabindex="3"></normalfont> </td>


Those are because the OP was displaying text in a Russian Font I guess? They should be something like "Your reply" and "Submit reply"?

wooolF[RM]
04-10-2002, 06:39 PM
1st mean Your reply
2nd mean Send or Submit

CHNoodles
04-12-2002, 01:10 AM
Thank you very much.

bandersen
04-15-2002, 01:33 PM
Thank you for a nice hack!

I am using Windows Me... and also get an error when I submit a reply... something like "line 325..error, object expected".

Did anyone else get this message and managed to fix it?

I have been around this error message before on another page, and not for vb stuff (it was a geocities page) I then got rid of the error as I had chosen an image, but not included it (there was an empty box showing when looking at the html coding).

I dare not change anything here tho... as I am not a pro!

CHNoodles
04-17-2002, 07:36 PM
Yes, the HTML expert at our site managed to fix it. It seems like there is a call to a javascript function called "validate" and she added the validate function to the template. She found the source code of the validate function by looking at the page source for a post reply page, IIRC. If you need more information I can look it up for you.

bandersen
04-17-2002, 08:16 PM
Thanks, that would have been nice :)
I was almost thinking about un-installing this one until someone else took over!

Appreciate it.

CHNoodles
04-19-2002, 01:48 PM
Sorry, I don't check this forum every day. Here's the change made in a template, to avoid the javascript error caused by applying the template change suggested in the original post:

=============
In Templates -> Show Thread Templates -> showthread

Added

<script language="javascript">
<!--
var postmaxchars = 20000;
function validate(theform) {
if (theform.message.value=="") {
alert("Please complete the message field.");
return false; }
if (postmaxchars != 0) {
if (theform.message.value.length > 20000) {
alert("Your message is too long.\n\nReduce your message to 20000 characters.\nIt is currently "+theform.message.value.length+" characters long.");
return false; }
else { return true; }
} else { return true; }
}
function checklength(theform) {
if (postmaxchars != 0) { message = "\nThe maximum permitted length is 20000 characters."; }
else { message = ""; }
alert("Your message is "+theform.message.value.length+" characters long."+message);
}
//-->
</script>

After the other </script> tag in the head
=============

Replace 20000 by the maximum post size at your board.

Moegames
04-20-2002, 03:14 AM
Thanks........i will give it a try

bandersen
04-21-2002, 06:57 PM
Thank You !!!!! worked like a charm..

Boofo
05-08-2002, 10:13 AM
Is there any way we could get the code for the smilies and add-ons you put in it? :-)


Originally posted by fineclicks
No problem :)
You can pretty much add anything else by simply copy and pasting from the newreply template. I also added the 3 checkboxes below the reply form to support signatures, email notifications and url parsing.

cain
05-29-2002, 08:54 AM
thats good :)

DanIAm
08-04-2002, 06:14 AM
When I install this hack, it puts the quick reply box on the top of the threads... how can I get it to show on the bottom after the threads?

thanks in advance

DanIAm
08-14-2002, 12:29 AM
bump

vkrazzy
09-13-2002, 12:57 AM
wow

king sting
10-02-2002, 12:26 PM
for some reason i cant allign the table with the rest of the threads, here is an example

http://illstylez.com/board/showthread.php?s=&threadid=2243

anybody want to help me out?

king sting
10-02-2002, 09:40 PM
up

digitalJE5U5
10-04-2002, 05:32 AM
Originally posted by DanIAm
When I install this hack, it puts the quick reply box on the top of the threads... how can I get it to show on the bottom after the threads?

thanks in advance

I did this too, its a simple mistake.

In showthread template there are 4 instances of
<!-- first unread and next/prev -->

put where you want the box right after that 4th instance. For example,

<!-- first unread and next/prev -->
$replybox

Hope that helps.

/DJ

digitalJE5U5
10-04-2002, 05:36 AM
Originally posted by fineclicks
No problem :)
You can pretty much add anything else by simply copy and pasting from the newreply template. I also added the 3 checkboxes below the reply form to support signatures, email notifications and url parsing.

Can you tell me how to do this also? Im a mook when it comes to figuring this stuff out on my own.

Thanks alot,
/DJ

MacKenzie
10-30-2002, 05:53 PM
This hack looks good. Nice work :)

xXoOmegaoXx
11-03-2002, 08:58 AM
One problem.

When I close a thread, people can still reply with the quick answer form.

xXoOmegaoXx
11-03-2002, 09:14 AM
And of course I never noticed that since I'm admin I can reply. I got a normal user to try and reply, and it said "sorry closed thread" so disregard that last one.

sparky1969
11-11-2002, 10:42 PM
Hi there (from a newbie)

I get this error

No thread specified. If you followed a valid link, please notify the webmaster.

Can you help?

Xenon
11-12-2002, 04:22 PM
the hacker wasn't around since nearly one year, also fireflys hack does the same, you should install this one:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=34597

i'll close this thread here