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)

banoota 04-06-2002 07:36 AM

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 =)

Jawelin 04-06-2002 11:40 AM

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

Admin 04-06-2002 11:45 AM

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). :)

inetd 04-06-2002 12:01 PM

Jawelin, good addon :) :super:

P.S. FireFly, you edit only for 2.2.5?

Jawelin 04-06-2002 12:03 PM

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.

jeevsy 04-07-2002 08:23 AM

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

Admin 04-07-2002 11:12 AM

Nothing to do with this hack.

Xube 04-07-2002 02:30 PM

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.

Xube 04-07-2002 02:49 PM

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 :D

inetd 04-08-2002 10:05 AM

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!


All times are GMT. The time now is 04:06 AM.

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.01690 seconds
  • Memory Usage 1,756KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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