Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 01-28-2002 Last Update: Never Installs: 1206
 
No support by the author.

Here's an easy one, it barely took 4 minutes to do. :china:
This hack will add a quick replying box at the bottom of all threads, only if the user has permission to reply, so when you need to reply to something real quickly you don't need to click the Post Reply button and wait for the page to load.

Instructions are in the attached .txt file, and if you want a demo... just look below.

NOTE: For the vB 2.3.2 version please see this post.

Extras:
  • If you want users who have the Use Email Notification option ON, to automatically subscribe to threads they reply to with this hack, see this post.
  • If you want to add an option for each user to turn this feature on and off, please see this post.
  • If you want smilies in your quick reply box please see this post.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #1162  
Old 09-09-2003, 02:40 PM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshot of the following from attachment in post #1160:

[check message length] [ ] Subscribe to Thread? [ ] Use Signature? Go
Reply With Quote
  #1163  
Old 09-09-2003, 02:41 PM
blakkboy's Avatar
blakkboy blakkboy is offline
 
Join Date: Aug 2003
Location: Baltimore
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #1164  
Old 09-09-2003, 02:45 PM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

<!-- first unread and next/prev -->
$replybox
<!-- /spacer -->
Reply With Quote
  #1165  
Old 09-09-2003, 02:49 PM
blakkboy's Avatar
blakkboy blakkboy is offline
 
Join Date: Aug 2003
Location: Baltimore
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeap i have and still nothing
Reply With Quote
  #1166  
Old 09-09-2003, 02:59 PM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #1167  
Old 09-09-2003, 03:04 PM
blakkboy's Avatar
blakkboy blakkboy is offline
 
Join Date: Aug 2003
Location: Baltimore
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #1168  
Old 09-09-2003, 03:15 PM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #1169  
Old 09-14-2003, 04:00 PM
fantasyten fantasyten is offline
 
Join Date: Jul 2003
Location: London, UK
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #1170  
Old 09-14-2003, 04:06 PM
fantasyten fantasyten is offline
 
Join Date: Jul 2003
Location: London, UK
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #1171  
Old 09-14-2003, 08:42 PM
Nathan_R Nathan_R is offline
 
Join Date: Aug 2003
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:42 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07169 seconds
  • Memory Usage 2,426KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete