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
  #572  
Old 08-06-2002, 12:44 PM
NexDog's Avatar
NexDog NexDog is offline
 
Join Date: Mar 2002
Location: Lost in the Nexus
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #573  
Old 08-06-2002, 12:50 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #574  
Old 08-06-2002, 02:43 PM
NexDog's Avatar
NexDog NexDog is offline
 
Join Date: Mar 2002
Location: Lost in the Nexus
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still doesn't work though.....
Reply With Quote
  #575  
Old 08-06-2002, 02:59 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.....
Reply With Quote
  #576  
Old 08-07-2002, 02:28 AM
NexDog's Avatar
NexDog NexDog is offline
 
Join Date: Mar 2002
Location: Lost in the Nexus
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #577  
Old 08-08-2002, 02:04 AM
LOD-squa's Avatar
LOD-squa LOD-squa is offline
 
Join Date: Aug 2002
Location: Orlando, Florida
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tryed to install it but nothing appeared can I get some help?
Reply With Quote
  #578  
Old 08-08-2002, 04:27 AM
LOD-squa's Avatar
LOD-squa LOD-squa is offline
 
Join Date: Aug 2002
Location: Orlando, Florida
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

n/m I got it.
Reply With Quote
  #579  
Old 08-08-2002, 07:28 AM
NexDog's Avatar
NexDog NexDog is offline
 
Join Date: Mar 2002
Location: Lost in the Nexus
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good for you.

Where am I going wong??
Reply With Quote
  #580  
Old 08-09-2002, 08:54 AM
NexDog's Avatar
NexDog NexDog is offline
 
Join Date: Mar 2002
Location: Lost in the Nexus
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #581  
Old 08-14-2002, 01:58 PM
Intex Intex is offline
 
Join Date: Apr 2002
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack Firefly .

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.
Reply With Quote
  #582  
Old 08-14-2002, 02:07 PM
NexDog's Avatar
NexDog NexDog is offline
 
Join Date: Mar 2002
Location: Lost in the Nexus
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #583  
Old 08-14-2002, 02:09 PM
NexDog's Avatar
NexDog NexDog is offline
 
Join Date: Mar 2002
Location: Lost in the Nexus
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #584  
Old 08-14-2002, 02:10 PM
Intex Intex is offline
 
Join Date: Apr 2002
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #585  
Old 08-14-2002, 02:13 PM
Intex Intex is offline
 
Join Date: Apr 2002
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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();
Reply With Quote
  #586  
Old 08-14-2002, 02:22 PM
NexDog's Avatar
NexDog NexDog is offline
 
Join Date: Mar 2002
Location: Lost in the Nexus
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!!!!!
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:45 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.09977 seconds
  • Memory Usage 2,376KB
  • Queries Executed 30 (?)
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
  • (3)bbcode_code
  • (2)bbcode_php
  • (4)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
  • (3)pagenav_pagelinkrel
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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