vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Quick answer form (https://vborg.vbsupport.ru/showthread.php?t=29829)

Lesane 12-22-2001 10:18 AM

Quote:

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 03: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:
Code:

<td width="18%" bgcolor="#DFDFDF" valign="top"><normalfont><b>??? ?????:</b></normalfont>
and
Code:

<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 05:39 PM

1st mean Your reply
2nd mean Send or Submit

CHNoodles 04-12-2002 12:10 AM

Thank you very much.

bandersen 04-15-2002 12: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 06: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 07: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 12: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.


All times are GMT. The time now is 02:27 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01527 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete