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)

Martin CX 08-03-2002 07:28 PM

Are you sure you've uploaded the files as ASCII?

Learner29 08-03-2002 07:34 PM

here is a gentleman willing to help

king sting 08-04-2002 02:40 AM

i'm having the same problem.. i followed the direcyions and no box showed up.. ???

king sting 08-04-2002 04:58 AM

ok i noticed the reply box showed up.. but only in one forum, and its at the top of the thread instead of at the bottom.. also what sucks is it showed up in a forum i keep locked.. does anyone know why?/

mauisun 08-04-2002 08:32 PM

I installed this hack, works perfect, my thanks for that. problem is the quick reply box is at the top instead of at the bottom of the thread when I enter it, can someone tell me where to change the code to put it at the bottom instead of the top?
thanks
....mauisun

Boofo 08-04-2002 08:36 PM

https://vborg.vbsupport.ru/showthrea...629#post279629

Quote:

Originally posted by mauisun
I installed this hack, works perfect, my thanks for that. problem is the quick reply box is at the top instead of at the bottom of the thread when I enter it, can someone tell me where to change the code to put it at the bottom instead of the top?
thanks
....mauisun


mauisun 08-04-2002 08:48 PM

totally right Boofo, thanks again bro, Man i apologize for not reading the whole friggin thread before asking for help, stupid newbie dumb pet trick! I should have known better then to fall into that trap. won't happen again. I appreciate the help bro
.....mauisun

Learner29 08-05-2002 12:43 AM

hmm. man you might be the 100th person asking THE SAME question over and
over.

Please spend two minutes looking for an answer to your question before
asking.

buurman 08-05-2002 09:27 PM

does it also add the signature ??
The one I use now, doesnt do that...I think that suckz...

NexDog 08-06-2002 10:31 AM

Okay, pure nightmare here. In showthread.php I have to find this code:
PHP 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; } 

But in mine (2.2.6), it's smaller:

PHP Code:

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

So I replace all that with this?

PHP Code:

if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) 
show_nopermission(); } if (($bbuserinfo['userid']!=$thread['postuserid']) and (!$getperms['canviewothers'
or !
$getperms['canreplyothers'])) { $replybox=''; } elseif (!$getperms['canview'] or (!$getperms['canreplyown'
and 
$bbuserinfo['userid']==$thread['postuserid'])) 
$replybox=''; } elseif (!$thread['open'] and
 !
ismoderator($thread['forumid'],'canopenclose')) { $replybox=''; } else { $textareacols gettextareawidth(); eval("\$replybox = \"".gettemplate
('showthread_replybox')."\";"); } if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") { $pagenumber=1; } 

Then I create a new template called showthread_replybox. Do I add the same code to this template?

Then the instructions say:
Quote:

3. In the "showthread" template add $replybox right after the following: // $pagenav
Does it mean the showthread_replybox template or the major Show Thread Templates > Expand > showthread ??

Anyhow, this: $pagenav, is in neither.

WTF??

NexDog 08-06-2002 12:44 PM

Okay, tripped slightly.

This is what I've done:

1) In showthread.php, added the necessary code.
2) Created a new template, with the name, "showthread_replybox" and added the same code in there.
3) Went to Show Thread Templates > Expand > showthread and added $replybox right after $pagenav.
4) Then I uploaded showthread.php.

The result is zilch, nada, zip. I know I've screwed up, just tell me where. :D

Boofo 08-06-2002 12:50 PM

In the showthread template, the $replybox goes after the SECOND $pagenav. ;)

Quote:

Originally posted by NexDog
Okay, tripped slightly.

This is what I've done:

1) In showthread.php, added the necessary code.
2) Created a new template, with the name, "showthread_replybox" and added the same code in there.
3) Went to Show Thread Templates > Expand > showthread and added $replybox right after $pagenav.
4) Then I uploaded showthread.php.

The result is zilch, nada, zip. I know I've screwed up, just tell me where. :D


NexDog 08-06-2002 02:43 PM

Still doesn't work though.....:(

Boofo 08-06-2002 02:59 PM

Ok, let's help you get this figured out. First, let's have you go through the showthread.php part and double check that you have added everything you are supposed to. Check that out and let me know what you find out. This is one of the easiest hacks to install so it must be messed up somewhere. :)

And just to be sure...make sure you add this:

Code:

$replybox
After the SECOND instance of this in the showthread template.

Code:

</tr>
</table>
<!-- first unread and next/prev -->

Quote:

Originally posted by NexDog
Still doesn't work though.....:(

NexDog 08-07-2002 02:28 AM

I PMed you my showthread template. Originally I put it here:
PHP Code:

<!-- first unread and next/prev -->
<
table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextraalign="center">
<
tr>
    <
td><smallfont>$pagenav $replybox
$firstunread
&nbsp;</smallfont></td

But after your instructions, I put it here:
PHP Code:

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

Which is right after that previous code. Still doesn't work.

LOD-squa 08-08-2002 02:04 AM

I tryed to install it but nothing appeared can I get some help?

LOD-squa 08-08-2002 04:27 AM

n/m I got it.

NexDog 08-08-2002 07:28 AM

Good for you. :)

Where am I going wong??

NexDog 08-09-2002 08:54 AM

Whimper....

I got vbhacker now. Can I use that to do this? It doesn't show up though. Would I have to reupload or something.

Firefly, where for art thou and all that malarkey. :D

Intex 08-14-2002 01:58 PM

Great hack Firefly :cool:.

Just another thought, how do I use graphic buttons for the Reply and Reset forms? I'd like to change it for the quick reply and the usual reply.

Cheers.

NexDog 08-14-2002 02:07 PM

I can't work out what is supposed to go in the showthread_replybox template. FireFly's txt file looks too weird. Please check out the screenshot to see what I'm seeing.

NexDog 08-14-2002 02:09 PM

When I actually download the text file and open it in NotePad, I see this:
Quote:

2. Create a new template,
with the name "showthread_replybox": //
##################################################
Post Reply
Your Reply:
[check message length]





// ################################################## 3. In the "showthread"
template add $replybox right after the following: //
################################################## $pagenav Last Thread
Next Thread
// ################################################## You're all done, now
upload showthread.php back to your server and enjoy this hack. :-) Chen
Nothing appears for me even if I put that weird text in the template. :(

Intex 08-14-2002 02:10 PM

Looking at the screenshot you've sent in, it looks like you've cut and paste too much of the text from his readme. Check carefully that you've only selected the bits he has indicated. I've just introduced this hack and it works perfectly and the text was pretty straight forward.

It maybe as simple as you've forgotten an { or something like that, but from what I see you've copied in a large section of the text including his actual comments.

Intex 08-14-2002 02:13 PM

I just submitted an answer just as you posted that.

Anyway, that definitely isn't right. Looks like you had a corrupted download or something. Try it again. Like I say I know it works because I only downloaded it myself 30 mins ago.

The text file should look like this at the beginning (this isn't all of it btw):

Code:

// ##################################################
// ################ Quick Reply Box #################
// ########### Hack version 1.0 (01.29.02) ##########
// ############## for vBulletin v2.2.2 ##############
// ##################################################
// ########### by Chen 'FireFly' Avinadav ###########
// ########## (chen.avinadav@vbulletin.com) #########
// ##################################################

1. In showthread.php find this bit of 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;
}
// ##################################################
And replace it with the following:
// ##################################################
if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
  show_nopermission();


NexDog 08-14-2002 02:22 PM

In my showthread.php I have ntered this code in the right place:
Quote:

if
(!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
show_nopermission(); } if (($bbuserinfo['userid']!=$thread['postuserid']) and
(!$getperms['canviewothers'] or !$getperms['canreplyothers'])) { $replybox=''; }
elseif (!$getperms['canview'] or (!$getperms['canreplyown'] and
$bbuserinfo['userid']==$thread['postuserid'])) { $replybox=''; } elseif
(!$thread['open'] and !ismoderator($thread['forumid'],'canopenclose')) {
$replybox=''; } else { $textareacols = gettextareawidth(); eval("\$replybox =
\"".gettemplate('showthread_replybox')."\";"); } if ((!isset($pagenumber) or
$pagenumber==0) and $pagenumber!="lastpage") { $pagenumber=1; }
The showthread template is all good. I just don't know what to put in the showthread_replybox template. Please paste FireFly's instructions for Step 2. PLEASE!!!!!!

Intex 08-14-2002 02:26 PM

You really should sort out your problems with the file download because it certainly ok. Anyway, just to help out here is the rest of it. Apologies for unnecessariy text hogging Admins :rolleyes:.


Code:

2. Create a new template, with the name "showthread_replybox":
// ##################################################
<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="">
<input type="hidden" name="disablesmilies" value="">
<input type="hidden" name="closethread" value="">
<input type="hidden" name="hiddenreply" value="">
<input type="hidden" name="signature" value="yes">
<input type="hidden" name="rating" value="0">

<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}" 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>
                </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>
// ##################################################

3. In the "showthread" template add $replybox right after the following:
// ##################################################
<!-- first unread and next/prev -->
<table cellpadding="2" cellspacing="0" border="0" width="95%"  align="center">
<tr>
        <td><smallfont>$pagenav&nbsp;</smallfont></td>
        <td align="right"><smallfont>
        <img src="https://vborg.vbsupport.ru/images/prev.gif" alt="" border="0">
        <a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=nextoldest">Last Thread</a>
        &nbsp;
        <a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=nextnewest">Next Thread</a>
        <img src="https://vborg.vbsupport.ru/images/next.gif" alt="" border="0">
        </smallfont></td>
</tr>
</table>
<!-- first unread and next/prev -->
// ##################################################

You're all done, now upload showthread.php back to your server and enjoy this hack. :-)

Chen


NexDog 08-14-2002 02:52 PM

Dude, you rock! That's all I needed. I've been banging my head against the wall for days.

How do I change the colors. Where are the variables and how do I find out the variable names for the forum headers etc so I can match it up?

Intex 08-14-2002 02:55 PM

To my knowledge you don't change anything in his actual code. You do all this from your Admin CP, where you change the colours for everything else.

If you want that to appear differently, then I think you'll need to add additional code to firefly's coding.

NexDog 08-14-2002 03:15 PM

Worked it out. The colors can be changed in this part of the showthread_replybox template:

Code:

<table cellpadding="4" cellspacing="1" border="0"  width="100%">
<tr>
        <td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF" class="thtcolor"><b>Post Reply</b></normalfont></td>
</tr>
<tr>
        <td bgcolor="#1C5780" valign="top" nowrap><normalfont><b>Your Reply:</b></normalfont></td>
        <td bgcolor="#1C5780">
                <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="java script:checklength(document.vbform);">[check message length]</a></smallfont></td>
                </tr>
                </table>


Jean147 08-15-2002 03:42 PM

hmmmm....does anyone know how to add the attachement option? If it is already written here I am sorry, but I have a really bad internet connection and to search 40 sites would take years. Maybe anyone knows the page?

Boofo 08-15-2002 06:55 PM

Here you go. :)

https://vborg.vbsupport.ru/showthrea...206#post278206

Quote:

Originally posted by Jean147
hmmmm....does anyone know how to add the attachement option? If it is already written here I am sorry, but I have a really bad internet connection and to search 40 sites would take years. Maybe anyone knows the page?

Jean147 08-15-2002 11:53 PM

thx a lot Boofo. Really apreciated :)

Boofo 08-15-2002 11:58 PM

No problem. If you need anything else, just hollar. :)

Quote:

Originally posted by Jean147
thx a lot Boofo. Really apreciated :)

Jean147 08-16-2002 12:17 AM

okey dokey. One Pizza please :D :p

Boofo 08-16-2002 04:57 AM

Sorry, pepperoni was all that was left. Was it still hot when you got it? :)

Quote:

Originally posted by Jean147
okey dokey. One Pizza please :D :p

mewgood 08-17-2002 09:17 PM

how do you add smile box to the quick reply?

Boofo 08-17-2002 11:49 PM

https://vborg.vbsupport.ru/showthrea...326#post279326

Quote:

Originally posted by mewgood
how do you add smile box to the quick reply?

curley 08-18-2002 01:58 AM

Is there a reason why the reply box is on top of my threads?

Thanks for the help!!

Joe

Boofo 08-18-2002 02:01 AM

Because you need to put $replybox after the SECOND instance of the code in the showythread template.

cka 08-18-2002 07:40 AM

I'm enjoying this mod for my forum; specifically due to the fact that the webserver is a pile of garbage and I like anything that helps cease page loads. ;)


All times are GMT. The time now is 06:37 PM.

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.03807 seconds
  • Memory Usage 1,876KB
  • 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
  • (5)bbcode_code_printable
  • (5)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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