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)

calorie 09-09-2003 02:40 PM

Screenshot of the following from attachment in post #1160:

[check message length] [ ] Subscribe to Thread? [ ] Use Signature? Go

blakkboy 09-09-2003 02:41 PM

Quote:

Today at 04:28 PM calorie said this in Post #1160
The vB 2.3.2 quickreplybox_v11.txt download from post #1099 produces a slight
JavaScript error. The attached has a fix.

Also, if you want to get this:

[check message length] [ ] Subscribe to Thread? [ ] Use Signature? Go

to appear below the vB 2.3.2 Quick Reply box, it is also included in the attached.

i did exactly what u said and i still dont get the freakin replybox

calorie 09-09-2003 02:45 PM

Have you added the replybox variable, like so, to the showthread template?

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

blakkboy 09-09-2003 02:49 PM

yeap i have and still nothing

calorie 09-09-2003 02:59 PM

What do you see when you view the HTML source - where the replybox is supposed to be on the showthread.php page? Also, just in case, the replybox only shows when you are logged into your board.

blakkboy 09-09-2003 03:04 PM

PHP Code:

{htmldoctype}
<
html>
<
head><title>$bbtitle $thread[title]</title>
$headinclude
<script language="javascript" type="text/javascript">
<!--
function 
aimwindow(aimid) {
    
window.open("member.php?s=$session[sessionhash]&action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,width=175,height=275,resizeable=yes,status=no")


}
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>
</
head>
<
body>
$header

<!-- breadcrumbnav links -->
<
table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextraalign="center">
<
tr>
    <
td>$navbar</td>
    
$ratingdisplay
</tr>
</
table>
<!-- /
breadcrumbnav links -->

<
a name="posttop"></a>

<!-- 
End content area table (CREATED IN HEADER!!) -->   
    </
td>
</
tr>
</
table>

<!-- 
spacer -->
<
table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0">
<
tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%">
<!-- /
spacer -->

$poll

<!-- first unread and next/prev -->
<
table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextraalign="center">
<
tr>
    <
td><smallfont>$pagenav $firstunread&nbsp;</smallfont></td>
    <
td align="right"><smallfont>
    <
img src="{imagesfolder}/prev.gif" alt="" border="0">
    <
a href="showthread.php?s=$session[sessionhash]&amp;threadid=$threadid&amp;goto=nextoldest">Last Thread</a>
    &
nbsp;
    <
a href="showthread.php?s=$session[sessionhash]&amp;threadid=$threadid&amp;goto=nextnewest">Next Thread</a>
    <
img src="{imagesfolder}/next.gif" alt="" border="0">
    </
smallfont></td>
</
tr>
</
table>
<!-- 
first unread and next/prev -->

<
table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextrawidth="{contenttablewidth}" align="center"><tr><td>
<
table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextrawidth="100%">
<
tr>
    <
td bgcolor="{tableheadbgcolor}" width="175" nowrap><smallfont color="{tableheadtextcolor}" class="thtcolor"><b>Author</b></smallfont></td>
    <
td bgcolor="{tableheadbgcolor}" width="100%">
    <!-- 
Thread nav and post images -->
    <
table width="100%" border="0" cellpadding="0" cellspacing="0">
    <
tr>
        <
td width="100%"><smallfont color="{tableheadtextcolor}" class="thtcolor"><b>Thread</b></smallfont></td>
        <
td><a href="newthread.php?s=$session[sessionhash]&amp;action=newthread&amp;forumid=$forum[forumid]"><img src="{newthreadimage}" border="0" alt="Post New Thread"></a></td>
        <
td><normalfont>&nbsp;&nbsp;</normalfont></td>
        <
td><a href="newreply.php?s=$session[sessionhash]&amp;action=newreply&amp;threadid=$threadid"><img src="$replycloseborder="0" alt="Post A Reply"></a></td>
    </
tr>
    </
table>
    <!-- /
Thread nav and post images -->
    </
td>
</
tr>
</
table>
</
td></tr></table>

<!-- /
spacer -->
</
td><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td></tr></table>
<!-- /
spacer -->

$postbits

<!-- spacer -->
<
table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0">
<
tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%">
<!-- 
spacer -->

<
table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextrawidth="{contenttablewidth}" align="center"><tr><td>
<
table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextrawidth="100%">
<
tr>
    <
td bgcolor="{tableheadbgcolor}" width="100%">
    <!-- 
time zone and post buttons -->
    <
table border="0" cellspacing="0" cellpadding="0" bgcolor="{tableheadbgcolor}">
    <
tr>
        <
td width="100%"><smallfont color="{tableheadtextcolor}"><b>$timezone</b></smallfont></td>
        <
td><a href="newthread.php?s=$session[sessionhash]&amp;action=newthread&amp;forumid=$forum[forumid]"><img src="{newthreadimage}" border="0" alt="Post New Thread"></a></td>
        <
td><normalfont>&nbsp;&nbsp;</normalfont></td>
        <
td><a href="newreply.php?s=$session[sessionhash]&amp;action=newreply&amp;threadid=$threadid"><img src="$replycloseborder="0" alt="Post A Reply"></a></td>
    </
tr>
    </
table>
    <!-- /
time zone and post buttons -->
    </
td>
</
tr>
</
table>
</
td></tr></table>

<!-- 
first unread and next/prev -->
<
table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextraalign="center">
<
tr>
    <
td><smallfont>$pagenav&nbsp;</smallfont></td>
    <
td align="right"><smallfont>
    <
img src="{imagesfolder}/prev.gif" alt="" border="0">
    <
a href="showthread.php?s=$session[sessionhash]&amp;threadid=$threadid&amp;goto=nextoldest">Last Thread</a>
    &
nbsp;
    <
a href="showthread.php?s=$session[sessionhash]&amp;threadid=$threadid&amp;goto=nextnewest">Next Thread</a>
    <
img src="{imagesfolder}/next.gif" alt="" border="0">
    </
smallfont></td>
</
tr>
</
table>
<!-- 
first unread and next/prev -->
$replybox
<!-- /spacer -->
</
td><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td></tr></table>
<!-- /
spacer -->

<!-- 
restart content table from header -->
<
table cellpadding="10" cellspacing="0" border="0" width="{tablewidth}" bgcolor="{pagebgcolor}" align="center">
<
tr>
    <
td>

<!-- 
thread options links -->
<
table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra}  align="center"><tr><td>
<
table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextrawidth="100%">
<
tr>
    <
td bgcolor="{firstaltcolor}" align="center"><smallfont>
    <
img src="{imagesfolder}/printer.gif" alt="" border="0" align="absmiddle">
    <
a href="printthread.php?s=$session[sessionhash]&amp;threadid=$threadid">Show Printable Version</a> |
    <
img src="{imagesfolder}/sendtofriend.gif" alt="" border="0" align="absmiddle">
    <
a href="sendtofriend.php?s=$session[sessionhash]&amp;threadid=$threadid">Email this Page</a> |
    <
img src="{imagesfolder}/subscribe.gif" alt="" border="0" align="absmiddle">
    <
a href="member2.php?s=$session[sessionhash]&amp;action=addsubscription&amp;threadid=$threadid">Subscribe to this Thread</a>
    </
smallfont></td>
</
tr>
</
table>
</
td></tr></table>
<!-- /
thread options links -->
    
<
br>

<!-- 
forum jump and rate thread -->
<
table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextraalign="center">
<
tr>
    <
td>$forumjump</td>
    <
td align="right">$threadrateselect</td>
</
tr>
</
table>
<!-- /
Rate this thread -->

<
br>

<!-- 
forum rules and admin links -->
<
table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextraalign="center">
<
tr valign="bottom">
    <
td><smallfont><b>Forum Rules:</b>$forumrules</smallfont></td>
    <
td align="right">
    
$adminoptions
    
</td>
</
tr>
</
table>
<!-- /
forum rules and admin links -->

$footer

</body>
</
html


calorie 09-09-2003 03:15 PM

Thanks, but I meant on the actual webpage, when you right click and view source, right after the following, what do you see?

Code:

<!-- first unread and next/prev -->
<table cellpadding="2" cellspacing="0" border="0" width="100%"  align="center">
<tr>
        <td><font face="verdana,arial,helvetica" size="1" >&nbsp;</font></td>
        <td align="right"><font face="verdana,arial,helvetica" size="1" >
        <img src="images/prev.gif" alt="" border="0">
        <a href="showthread.php?s=&amp;threadid=59&amp;goto=nextoldest">Last Thread</a>
        &nbsp;
        <a href="showthread.php?s=&amp;threadid=59&amp;goto=nextnewest">Next Thread</a>
        <img src="images/next.gif" alt="" border="0">
        </font></td>
</tr>
</table>
<!-- first unread and next/prev -->

Also, do you have any other hacks installed? What's your board URL - PM it if wanted?

Edit: The problem blakkboy was having has been fixed. :)

fantasyten 09-14-2003 04:00 PM

what am I doing wrong! What is meant to go in the new template? Just the words:
Post Reply
Your Reply: [check message length]

??My computer may not be showing this up right?

fantasyten 09-14-2003 04:06 PM

think it may be that my reader of the code is showing up the insert code to put in template: showthread_replybox
What should I put in this template?

Nathan_R 09-14-2003 08:42 PM

sweet! Thanks for the hack (and javascript fix); it's beautiful

legendarysk8er 09-16-2003 01:04 AM

I've installed the rpg integration hack, lesane's store, the arcade, but this has been the hack I've had most trouble with. Maybe it was because I was tired and kept making simple mistakes.

Installed on vB 2.3.2.

Thanks FireFly!

Blindchild02 09-16-2003 08:50 PM

hahaha loser :p

Gary King 09-16-2003 09:12 PM

Quote:

Originally Posted by Blindchild02
hahaha loser :p

:rolleyes:

Blindchild02 09-16-2003 09:17 PM

ahhaha dont worry, i know him lol

legendarysk8er 09-17-2003 01:44 AM

Yeah, we're friends.

I don't know why, but for some reason it takes a bit before the quick reply shows up at the bottom of a thread.

Gary King 09-17-2003 01:49 AM

Quote:

Originally Posted by legendarysk8er
Yeah, we're friends.

I don't know why, but for some reason it takes a bit before the quick reply shows up at the bottom of a thread.

Because of WYSIWYG editor to load.

Blindchild02 09-17-2003 05:37 PM

that used to happen to me. its cuz of ur expanded style, try ur style fixed. and it wont take so long.

copyninja 09-17-2003 07:19 PM

Does this work with vB 2.3.2 ???

legendarysk8er 09-17-2003 11:37 PM

Yes, I just got done installing it on vB 2.3.2.

TheComputerGuy 09-18-2003 12:58 AM

Hi...

I am putting the 2.3.2 version out there...

This is the version that Chen originally created...and I just got it working.

I got it working on www.runaked.com if you need to see it to believe it.

Rock on!

copyninja 09-18-2003 01:57 AM

yeah i forgot to post back.. i got it to work on my vb 2.3.2

Red Blaze 09-18-2003 06:10 PM

Quote:

Originally Posted by TheComputerGuy
Hi...

I am putting the 2.3.2 version out there...

This is the version that Chen originally created...and I just got it working.

I got it working on www.runaked.com if you need to see it to believe it.

Rock on!

PHP Code:

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


There are two of them in showthread.php. Do I replace both codes? o.o;

Reverend 09-18-2003 10:03 PM

Quote:

Originally Posted by TheComputerGuy
Hi...
I am putting the 2.3.2 version out there...
I got it working on www.runaked.com if you need to see it to believe it.

Your footer shows you are still using 2.3.0. :confused:

ry@n 09-23-2003 05:51 AM

I'm having a problem finding the first part of the code in showthread.php

Am I looking in the correct place?

Show Thread Templates [expand] > showthread [change original]

Before I get to frustrated with this, maybe someone could point me in the right direction? This is my first attempt of adding a hack to my board. Thanks.

ryan@chicagovelocity.com

ry@n 09-23-2003 06:41 AM

nevermind, I found it :p

RPGXtreme 09-24-2003 05:41 PM

I got a bit of trouble.

The quick Reply box is at the top of the thread, can someone please help me to move it down to the bottom. Thanks.

Dean C 09-24-2003 06:28 PM

Just look for the next chunk of code - you added it at the first instance - not the second :)

klaattu 09-25-2003 02:36 PM

After 3 months of leaving my forum as is, I returned to hacking it and stalled some hacks, but hands down the best is this one
THANKS FireFly !!!

Now I have a weird Problem, I installed it tested it and as you can see it I translated it, but even when I did not make any changes the Qreply apperared in the TOP of thew page, I have broken my Skull figuring out why, I even reinstale dit and the same thing happens...any hints?

ehere is a Screen of the problem

Thanks again!

Gary King 09-25-2003 06:42 PM

Quote:

Originally Posted by klaattu
After 3 months of leaving my forum as is, I returned to hacking it and stalled some hacks, but hands down the best is this one
THANKS FireFly !!!

Now I have a weird Problem, I installed it tested it and as you can see it I translated it, but even when I did not make any changes the Qreply apperared in the TOP of thew page, I have broken my Skull figuring out why, I even reinstale dit and the same thing happens...any hints?

ehere is a Screen of the problem

Thanks again!

Add the quick reply variable to the bottom of the showthread template, to the second instance of where you're supposed to put it.

patriciafrankie 09-25-2003 10:27 PM

I have a question... I don't know if it has been answered or not as I haven't looked through the entire thread.. lol, but where it says:

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

I cannot find the second part in the php file. Will this work with v2.3.2?

TIA
Patricia

Gary King 09-25-2003 11:22 PM

Quote:

Originally Posted by patriciafrankie
I have a question... I don't know if it has been answered or not as I haven't looked through the entire thread.. lol, but where it says:

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


I cannot find the second part in the php file. Will this work with v2.3.2?

TIA
Patricia

Yes, should work with 2.3.2

patriciafrankie 09-25-2003 11:28 PM

Thank you :)

Another question, if you don't mind.

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

What 'showthread' template is this referring to?

Thanks,
Patricia

Gary King 09-25-2003 11:43 PM

The template in the admin cp, named showthread :rolleyes:

patriciafrankie 09-25-2003 11:56 PM

n/m I got it :)

lol.. I'm a newbie at this. I'm full of questions. How do I get rid of the second quick reply? I have two for some reason.

Gary King 09-26-2003 12:24 AM

Quote:

Originally Posted by patriciafrankie
n/m I got it :)

lol.. I'm a newbie at this. I'm full of questions. How do I get rid of the second quick reply? I have two for some reason.

Find the $quickreply variable (or something similiar to that that you inserted for this hack), and remove one of them.

ViewMy.biz 09-29-2003 04:32 PM

If I can't find the second part in showthread what do I replace?

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;

ViewMy.biz 09-29-2003 04:38 PM

I should have said I am in 2.3.2 In the first instance this follows:

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


IN the second instance this follows:

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'";
}

klaattu 09-29-2003 05:57 PM

Thanks a lot Its ok now, by the way you can put banners inside those quick reply with the hack ehere in the Vbulletin.org, I am testing it if its ok Ill post the hack later!

tsmith025 09-30-2003 03:55 PM

I installed this hack on 2.3.2. I cant get the Reply Box to show up. But when I add a line of text where the box should beI can see the text. I follewed the directions very carefully and I have done it 3 times now. Can anybody help me please???

My url is: www.offshoremuscle.com

tsmith025 09-30-2003 04:36 PM

I have attached a screenshot for you to view.


All times are GMT. The time now is 10:30 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.02474 seconds
  • Memory Usage 1,954KB
  • 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
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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