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
  #272  
Old 04-06-2002, 07:36 AM
banoota's Avatar
banoota banoota is offline
 
Join Date: Nov 2001
Location: UAE
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Sadie Frost


It's not in showthread.php, it's in the showthread template in teh admin cp And yes, after that code in the template, put $replybox on the next line

Hope that helps
oopth! i feel dumb :ermm:

thanks =)
Reply With Quote
  #273  
Old 04-06-2002, 11:40 AM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Jawelin
How could make this hack automatically subscribe to the just replied thread if the user config has subscription enabled ?
Is the proper hidden var enough ?

Thanks
As asked in Post #246 I put some addon to choose:
- subscribe to the thread (defaulted to 'no' in the original hack)
- add signature in quick-replied post (defaulted to 'yes' in the original hack)
Both are initially set to user's default values within UserCP:

In showthread.php
PHP Code:
// replace :
    
$textareacols gettextareawidth();
    eval(
"\$replybox = "".gettemplate('showthread_replybox')."";");

// with :
    
$textareacols gettextareawidth();
    if (
trim($bbuserinfo[signature])!= "")  $signaturechecked="checked";
    if (
$bbuserinfo[emailnotification]!=0)  $emailchecked="checked";
    eval(
"\$replybox = "".gettemplate('showthread_replybox')."";"); 
In showthread_quickreply template:
Code:
# remove two separate lines:

<input type="hidden" name="email" value="">
<input type="hidden" name="signature" value="yes">


# then add :

        	<td nowrap valign="bottom"><smallfont>
        	&nbsp;&nbsp;<input type="checkbox" name="email" value="yes" $emailchecked> Subscription<br>
        	&nbsp;&nbsp;<input type="checkbox" name="signature" value="yes" $signaturechecked> Signature<br>
        	&nbsp;&nbsp;<br>&nbsp;</smallfont></td>

# right after : 

	<smallfont><a href="javascript:checklength(document.vbform);">[check message length]</a><br><br></smallfont></td>
That's all, folks.
Thanks to FF for the great hack, again... but many users asked me such an enhancement.
Bye
Reply With Quote
  #274  
Old 04-06-2002, 11:45 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #275  
Old 04-06-2002, 12:01 PM
inetd inetd is offline
 
Join Date: Nov 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Jawelin, good addon :super:

P.S. FireFly, you edit only for 2.2.5?
Reply With Quote
  #276  
Old 04-06-2002, 12:03 PM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, of course.
Thanks for pointing it out.

P.S.: I wouldn't affect your code too much...

Even the resulting behavior of the table isn't too changed with those two little boxes... Otherwise, I moved the two buttons inside that table, btw.
Reply With Quote
  #277  
Old 04-07-2002, 08:23 AM
jeevsy jeevsy is offline
 
Join Date: Apr 2002
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

workd perfectly in vb2.2.5 BUT..............


i get this error when i try and edit any of the posts:

Fatal error: Call to undefined function: unindexpost() in /home/flashdo/public_html/board/editpost.php3 on line 264


but if you then press back, back a few times in ie then refrech on the page, the changes HAVE taken place.


any ideas what's up with this error message?

===========
www.flash-group.com/board
===========

thanks,
J
Reply With Quote
  #278  
Old 04-07-2002, 11:12 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nothing to do with this hack.
Reply With Quote
  #279  
Old 04-07-2002, 02:30 PM
Xube's Avatar
Xube Xube is offline
 
Join Date: Nov 2001
Location: private
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks (once again!) Chen. I've installed this hack and it is great, but I'm finding that when board members reply to messages using the quick reply box that this hack creates it doesn't automatically generate an email to members who have opted to receive email replies to the thread. :surprised: The automatic email continues to work when board members reply using the normal reply button. Is there a way to upgrade the coding for this hack so that it defaults to sending the auto emails out? Here are a couple of example posts from members on my board who have discovered this problem:

Quote:
email notification gone?
What happened to email notification when someone replies to a post you have participated in? I have it turned on in my profile, but I stopped getting them about the time the quick reply option went into effect.
Quote:
Re: email notification gone?
Maybe you replied using QuickReply box. In that case, email notification is NOT turned on. The only way I have gotten the emails to work when using the quick reply box is to go back in thread and edit your post. Make sure "Email Notification" is checked. Just did it for that particular post.
Reply With Quote
  #280  
Old 04-07-2002, 02:49 PM
Xube's Avatar
Xube Xube is offline
 
Join Date: Nov 2001
Location: private
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Jawelin
How could make this hack automatically subscribe to the just replied thread if the user config has subscription enabled ?
Is the proper hidden var enough ?
Thanks
...sorry, found this thread by searching & saw this fix after I posted.

Oopth! <==== what a great word banoota
Reply With Quote
  #281  
Old 04-08-2002, 10:05 AM
inetd inetd is offline
 
Join Date: Nov 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FireFly if not login to vB and to send the answer through Quick Reply Box the form for input login|password will appear. After input login&password there is a message: No thread specified. If you followed a valid link, please notify the webmaster. Having returned on two pages back any more you will not see the typed answer. Fix it 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 07:46 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,332KB
  • 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
  • (3)bbcode_code
  • (1)bbcode_php
  • (5)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