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)

enginethatcan't 01-02-2004 03:08 PM

I have a problem...it says to find
Quote:

3. In the "showthread" template add $replybox right after the following:
with XXX

but I don't have the code it says to look for.. this is what I have in my showthread tamplate:

Quote:

{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=n o,location=no,menubar=no,scrollbars=no,width=175,h eight=275,resizeable=yes,status=no")


}
// -->
</script>
</head>
<body>
$header

<!-- breadcrumb, nav links -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td>$navbar</td>
$ratingdisplay
</tr>
</table>
<!-- /breadcrumb, nav 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}" {tableinvisibleextra} align="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">La st Thread</a>
&nbsp;
<a href="showthread.php?s=$session[sessionhash]&amp;threadid=$threadid&amp;goto=nextnewest">Ne xt 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}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="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"><i mg src="$replyclose" border="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}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="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"><i mg src="$replyclose" border="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}" {tableinvisibleextra} align="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">La st Thread</a>
&nbsp;
<a href="showthread.php?s=$session[sessionhash]&amp;threadid=$threadid&amp;goto=nextnewest">Ne xt Thread</a>
<img src="{imagesfolder}/next.gif" alt="" border="0">
</smallfont></td>
</tr>
</table>
<!-- first unread and next/prev -->

<!-- /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" {tableinnerextra} width="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}" {tableinvisibleextra} align="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}" {tableinvisibleextra} align="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>
what do I do???

MindTrix 01-02-2004 04:07 PM

It tells you to find this code

PHP Code:

<!-- 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="[url="https://vborg.vbsupport.ru/images/prev.gif"]https://vborg.vbsupport.ru/images/prev.gif[/url]" 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="[url="https://vborg.vbsupport.ru/images/next.gif"]https://vborg.vbsupport.ru/images/next.gif[/url]" alt="" border="0">
 
</smallfont></td>
</
tr>
</
table>
<!-- 
first unread and next/prev --> 

and i can clearly see it in the template you just showed us ;)

Look again mate ;)

Infopro 01-03-2004 10:26 AM

LOL..

Upgrade to VB3

MindTrix 01-03-2004 11:27 AM

No need to free post mate ;)
And not everyone wants to upgrade to vB3 yet.

KAC 01-03-2004 03:53 PM

Ok heres my question. I tried to install this on version 2.3.2. I did not install the VB. I was just asked to install the hack. When in the FTP I see a showthread.php file and a showthread.php3 file. Is this normal as I have never worked with this version. Also in the showthread template it calls out to this php3 file but yet in the txt doc for this version it says nothing about it. Any help would be greatly appreciated.

Keith 01-08-2004 04:50 AM

From Post 273 found here


Quote:

Originally Posted by Chen
Good addition, only one thing.
You should really replace this:
Code:

if (trim($bbuserinfo[signature])!= "")  $signaturechecked="checked";
    if ($bbuserinfo[emailnotification]!=0)  $emailchecked="checked";

With this:
Code:

    if (trim($bbuserinfo[signature]) != '') {
        $signaturechecked = 'checked';
    } else {
        $signaturechecked = '';
    }

    if ($bbuserinfo['emailnotification'])
        $emailchecked = 'checked';
    } else {
        $emailchecked = '';
    }

So people can't add stuff to the $emailchecked variable through the URL (this is why 2.2.5 was released). :)

Generates a parse error. Looks like it's missing a { after emailnotification. Made this change to get it working.
Code:

if ($bbuserinfo['emailnotification']) {
Great hack Chen, one of my favorites.

jaliam 01-09-2004 06:15 AM

I followed all the steps in adding smilies but nothing showed up. Can anyone help me with this problem? Thanks, guys!

tHe Rk 01-14-2004 02:34 PM

Terrific, Super easy to install hack, even for us vB and html n00b's:D

tHe Rk 01-14-2004 02:37 PM

Quote:

Originally Posted by jaliam
I followed all the steps in adding smilies but nothing showed up. Can anyone help me with this problem? Thanks, guys!

Did you put:

$clickysmilies = getclickysmilies();

in twice on showthread.php?

" $textareacols = gettextareawidth(); "shows up twice in the script (for newer vB versions anyway). You have to add "$clickysmilies = getclickysmilies(); " after both of the times its in the script. Hope that helps, it worked for me on 2.3.4

jaliam 01-15-2004 03:55 AM

It's working now. Thanks, Rk!


All times are GMT. The time now is 08:27 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.02604 seconds
  • Memory Usage 1,797KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)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