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)

bigdaddy04 01-17-2004 04:38 PM

Something is up here, I'm trying to install this on vB 2.3.3 and its just not working,
the showthread_replybox template is created, the $replybox in the showthread template is there, and i did infact upload the new showthread.php..

very weird, im kinda confused since it worked for everyone else...

bigdaddy04 01-17-2004 04:49 PM

installed this one:
https://vborg.vbsupport.ru/showpost....postcount=1180

works fine, but its on top of the page instead of the bottom :( in showthread.php

bigdaddy04 01-17-2004 05:15 PM

never mind, its all fine...

except i want the fields to be checkboxes, not hidden fields...how can i do that?

where is everyone??

Elyk X 01-17-2004 05:46 PM

Its not working at all for me..... im on 2.3.4 and its not working.... Ive done everything 3 times now and still nothing.

bigdaddy04 01-17-2004 06:02 PM

Here is my showthread_replybox template...everything works, except the signature, url parsing and email notification options..

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)">

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
        <td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Post Reply</b></normalfont></td>
</tr>
<tr>
        <td bgcolor="{secondaltcolor}">
                      <table cellpadding="0" cellspacing="0" border="0" align="center">
                <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><smallfont><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="checkbox" name="parseurl" value="yes">
                    Parse URLs?<br>
                    <input type="checkbox" name="email" value="">
                    Email Notification?<br>
                    <input type="hidden" name="disablesmilies" value="">
                    <input type="hidden" name="closethread" value="">
                    <input type="hidden" name="hiddenreply" value="">
                    <input type="checkbox" name="signature" value="yes">
                    Signature?<br>
                    <input type="hidden" name="rating" value="0"></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">
        </normalfont></td>
</tr>
</table>

</form>


bigdaddy04 01-17-2004 06:03 PM

Quote:

Originally Posted by Elyk X
Its not working at all for me..... im on 2.3.4 and its not working.... Ive done everything 3 times now and still nothing.

use this one :)
https://vborg.vbsupport.ru/showpost....postcount=1180

Elyk X 01-17-2004 06:38 PM

Quote:

Originally Posted by bigdaddy04

I did do that one =\

thats the one thats not working

bigdaddy04 01-17-2004 06:56 PM

where is everyone!?

Elyk X 01-17-2004 08:10 PM

to busy working on vb3, but the only reason i installed vb2 again was cause it has hacks that vb3 doesnt have yet. like..the rpg hacks.

I had a quick reply working on my old 2.2.8 version....but for some reason this ones just being stupid.

Solid-Snake 01-17-2004 10:25 PM

I cant find this bit in my showthread.php. I can find the first line of it but not the rest, its different. It says to find this
Code:

// ##################################################
if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
  show_nopermission();
}

if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
  $pagenumber=1;
}

Instead I have
Code:

        if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
          show_nopermission();
        }

        $bbcodeon=iif($forum[allowbbcode],$ontext,$offtext);
        $imgcodeon=iif($forum[allowimages],$ontext,$offtext);
        $htmlcodeon=iif($forum[allowhtml],$ontext,$offtext);
        $smilieson=iif($forum[allowsmilies],$ontext,$offtext);

        $post=$DB_site->query_first("
        SELECT
        post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,".iif($forum[allowicons],'icon.title as icontitle,icon.iconpath,','')."
        attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter
        ".iif($avatarenabled,",avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline","")."
        FROM post
        ".iif($forum[allowicons],'LEFT JOIN icon ON icon.iconid=post.iconid','')."
        LEFT JOIN user ON user.userid=post.userid
        LEFT JOIN userfield ON userfield.userid=user.userid
        ".iif ($avatarenabled,"LEFT JOIN avatar ON avatar.avatarid=user.avatarid
                              LEFT JOIN customavatar ON customavatar.userid=user.userid","")."
        LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
        WHERE post.postid = '$postid'
        ");

        if (!$getperms['cangetattachment']) {
                $viewattachedimages=0;
        }

and I also have this in the same code
Code:

if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
  show_nopermission();
}

if ($noshutdownfunc) {
  $DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
} else {
  $shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";
}

if ($bbuserinfo[cookieuser]) {
  set_bbarraycookie('threadview', $threadid, time());
}

Can someone tell me what to do I really want this its like a necessity.

I use 2.3.4 despite what it says to the left.


All times are GMT. The time now is 12:03 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.02447 seconds
  • Memory Usage 1,766KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_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