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 Reply Box (https://vborg.vbsupport.ru/showthread.php?t=34597)

Lucrecia 06-11-2002 02:54 PM

I saw on this site that they also have a drop down option to choose a smilie. What would be the code to put that in?

http://www.ffimpulse.com/forum/showt...?threadid=7900

Sal Collaziano 06-12-2002 02:31 AM

How exactly do you get the EMAIL and SIGNATURE feature in there? Is there simply something in the code you must turn on? Or is it a recent addition? When I installed this hack, I never saw these options anywhere. But now, I'm seeing them...

rharbison 06-13-2002 02:12 AM

Your members will love this one!

I installed it and traffic has probably doubled...

Pabs 06-15-2002 08:39 AM

I'm getting script errors after installing this hack.

It says this:


Line: 1388
Char: 63
Error: Unterminated String Constant
Code: 0

N.B. 06-16-2002 12:37 PM

Thanks, nice work :)

BigJohnson 06-17-2002 09:02 AM

Very great hack but having one problem here though. My checj message length button doesnt work and my smilies when i click on them dont work. What could be the prob? I am so lost i think it is something with the java or something i don't know so i diced to ask the professionals ;)

Here is my Template for ReplyBox

Code:

<script language="javascript">
<!--
var postmaxchars = $postmaxchars;
function validate(theform) {
        if (theform.message.value=="") {
                alert("Please complete the message field.");
                return false; }
        if (postmaxchars != 0) {
                if (theform.message.value.length > $postmaxchars) {
                        alert("Your message is too long.\n\nReduce your message to $postmaxchars 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 $postmaxchars characters."; }
        else { message = ""; }
        alert("Your message is "+theform.message.value.length+" characters long."+message);
}
//-->
</script>

<form enctype="multipart/form-data" action="newreply.php" name="vbform" method="post" onSubmit="return validate(this)">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="action" value="postreply">
<input type="hidden" name="threadid" value="$threadid">
<input type="hidden" name="title" value="">
<input type="hidden" name="iconid" value="0">
<input type="hidden" name="parseurl" value="yes">
<input type="hidden" name="email" value="$emailbox">
<input type="hidden" name="disablesmilies" value="">
<input type="hidden" name="closethread" value="">
<input type="hidden" name="hiddenreply" value="">
<input type="hidden" name="rating" value="0">
<script language="Javascript" src="vbcode.js"></script>
<script language="Javascript" src="vbcode_language.js"></script>

<tr>
        <td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Post Reply</b></normalfont></td>
</tr>
<tr>
        <td bgcolor="{secondaltcolor}" valign="top" nowrap><normalfont><b>Your Reply:</b></normalfont></td>
        <td bgcolor="{secondaltcolor}">
                <table cellpadding="0" cellspacing="0" border="0">
                <tr valign="top">
                        <td><textarea name="message" rows="7" cols="$textareacols" wrap="virtual" tabindex="1"></textarea><br>
                        <smallfont><a href="javascript:checklength(document.vbform);">[check message length]</a></smallfont></td>
                <td nowrap valign="bottom"><smallfont>
                  <input type="checkbox" name="email" value="yes" $emailchecked> Subscribe to thread<br>
                  <input type="checkbox" name="signature" value="yes" $signaturechecked> Show signature<br>
                  <br> </smallfont></td>
                </tr>
                </table>
        </td>
</tr>
</table>
</td></tr></table>

<br>

<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
        <td align="center"><normalfont>
        <input type="submit" class="bginput" name="submit" value="Submit Reply" accesskey="s" tabindex="2">
        <input type="reset" class="bginput" name="reset" value="Reset Form" accesskey="r" tabindex="3">
<input type="submit" class="bginput" name="preview" value="Preview Reply" accesskey="p" tabindex="4">
        </normalfont></td>
</tr>
</table>

</form>

Please help thanks so much. I took out the smilies just for now because they were causing to much hassle. thanks.

mentalblocks 06-17-2002 04:14 PM

just tried to install this. Didn't work. I'm not sure on the #3 in the instructions,

I've put $replybox into the template just as that. Does it need to be in {} or some other syntatic supports?

BigJohnson 06-17-2002 07:46 PM

Please help. If i cant get the smilies to work then i dont think I am going to keep this hack then. Please help i really enjoy this feature.

RobP 06-17-2002 08:16 PM

This hack worked with vb version 2.2.5 but after we upgraded to 2.2.6 this has now stopped working, the code is in place where it should, the reply box doesn't appear :(

BigJohnson 06-18-2002 08:35 AM

^^^BUMP^^^


All times are GMT. The time now is 11:08 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.02257 seconds
  • Memory Usage 1,757KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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