PDA

View Full Version : Quick answer form


kamrad.ru
08 Oct 2001, 11:20
This hack add answer form on bottom page with thread :cool:

kamrad.ru
08 Oct 2001, 11:27
This is a vB on screenshot :)

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

floleb7
08 Oct 2001, 15:09
you have the the textarea et the attach file option directly in post you can create directly without using post reply

kamrad.ru
08 Oct 2001, 17:25
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
02 Dec 2001, 16:05
Pretty cool, Thanks :)

fineclicks
17 Dec 2001, 01:48
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=no,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
17 Dec 2001, 01:52
indeed nice hack
:stupid: this thread is almost 2 months old :stupid:

fineclicks
17 Dec 2001, 01:53
Oh, I'm sorry...
Was there a time limit you have to reply to old posts here?
:D

TheComputerGuy
17 Dec 2001, 11:01
this is sweet!!

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

Lesane
22 Dec 2001, 12:18
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=no,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
22 Dec 2001, 18:30
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
04 Mar 2002, 02:30
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
10 Apr 2002, 18:34
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]
10 Apr 2002, 20:39
1st mean Your reply
2nd mean Send or Submit

CHNoodles
12 Apr 2002, 03:10
Thank you very much.

bandersen
15 Apr 2002, 15:33
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
17 Apr 2002, 21:36
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
17 Apr 2002, 22:16
Thanks, that would have been nice :)
I was almost thinking about un-installing this one until someone else took over!

Appreciate it.

CHNoodles
19 Apr 2002, 15:48
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
20 Apr 2002, 05:14
Thanks........i will give it a try

bandersen
21 Apr 2002, 20:57
Thank You !!!!! worked like a charm..

Boofo
08 May 2002, 12:13
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
29 May 2002, 10:54
thats good :)

DanIAm
04 Aug 2002, 08:14
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
14 Aug 2002, 02:29
bump

vkrazzy
13 Sep 2002, 02:57
wow

king sting
02 Oct 2002, 14:26
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
02 Oct 2002, 23:40
up

digitalJE5U5
04 Oct 2002, 07:32
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
04 Oct 2002, 07:36
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
30 Oct 2002, 19:53
This hack looks good. Nice work :)

xXoOmegaoXx
03 Nov 2002, 10:58
One problem.

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

xXoOmegaoXx
03 Nov 2002, 11:14
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
12 Nov 2002, 00:42
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
12 Nov 2002, 18:22
the hacker wasn't around since nearly one year, also fireflys hack does the same, you should install this one:

http://www.vbulletin.org/forum/showthread.php?s=&threadid=34597

i'll close this thread here