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)

snyx 01-30-2002 03:15 AM

this is awesome man, I saw the hack awhile from someone else back but it wasnt complete, or somthing.... oh well, looks great, I plan to install it asap.

larryz 01-30-2002 08:58 AM

If you want the Quicky Reply Box to not appear when the thread is closed, you can simply wrap an if statement around it.

ORIGINAL:

Code:

if (($bbuserinfo['userid']!=$thread['postuserid']) and (!$getperms['canviewothers'] or !$getperms['canreplyothers'])) {
        $replybox='';
} elseif (!$getperms['canview'] or (!$getperms['canreplyown'] and $bbuserinfo['userid']==$thread['postuserid'])) {
        $replybox='';
} else {
        $textareacols = gettextareawidth();
        eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
}


New:

Code:

if ($thread[open]) {
    if (($bbuserinfo['userid']!=$thread['postuserid']) and (!$getperms['canviewothers'] or !$getperms['canreplyothers'])) {
            $replybox='';
    } elseif (!$getperms['canview'] or (!$getperms['canreplyown'] and $bbuserinfo['userid']==$thread['postuserid'])) {
            $replybox='';
    } else {
            $textareacols = gettextareawidth();
            eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
    }
}


SWFans.net 01-30-2002 09:46 AM

Worked great larryz. Thanks. :)

MikeWarner 01-30-2002 09:52 AM

nice - I'll install this later! :)

TurboFC3S 01-30-2002 12:45 PM

Great hack, and so easy! Works perfect for me ...

Admin 01-30-2002 12:51 PM

Updated the text file with new code to hide the box from non-mods in closed threads.
Add this:
Code:

if (!$thread['open'] and !ismoderator($thread['forumid'],'canopenclose')) {
        $replybox='';
} else

right after this:
Code:

        $replybox='';
} else


TurboFC3S 01-30-2002 01:05 PM

In your template, you have

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

Listed twice. I think you should have signatures tured off by default also ...

Admin 01-30-2002 01:21 PM

Fixed... if you want to have sigs turned of just delete that hidden field.

Gutspiller 01-30-2002 02:20 PM

Quote:

Originally posted by Psychdrone
hmmmm this is pretty neat indeed!

Yet are there any other people out there with me, that think this will increase spam, as how easy it is to reply?

thats probaly why I wouldn't install it, but none the less great hack chen!

I already noticed this on my board. You may want to increase the time between posts that's allowed. I had mine to 10 seconds, but I am setting it to 15 as we speak. (sorta an active board) ;)

ladyfyre 01-30-2002 03:08 PM

Just FYI:

This is a GREAT hack...and I am sure my members are going to love it. Only one complaint: In your instructions for the template creation, it would REALLY be great if you could set the templates to use the replacement values...the blues you used looked REALLY funky on my forums until I went in and reset them...and it would be nice to know that the table bg colors would change if/when the site templates are changed.

But again: Good job!


All times are GMT. The time now is 01:45 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.01481 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_code_printable
  • (1)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