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)

Nupraptor 02-04-2002 01:58 PM

Quote:

How about throwing a switch in the User CP so the user can toggle it on/off?
I'd really like this, if it isn't too much trouble (and if someone didn't already post how to do this - I just skimmed the thread). The quick reply box is very handy (I'm using it now, in fact :p), but it looks a bit cluttersome.

Craig Antill 02-04-2002 03:01 PM

This is really going down well with our users... excellent stuff - thanks again!

They are all asking for one thing though... is this possible ? Sorry to keep on :D

Quote:

Any way that I can allow users to subscribe to the topic with the quick reply ? Ideally by way of a hidden field which simply subscribes the user if they have set their options to subscribe by default...?

SgtSling 02-04-2002 09:34 PM

is there anyway that we can make this work with the "post comprised in time" hack?
That is my only complaint is that it posts times that are screwey.
Thanks

Lucky 02-05-2002 04:04 AM

You the man!

Works perfect on 2.2.2 with vbportal3.0pr7

A switch for users to turn on or off in the user cp would really compliment it though, as maybe some users don't want it.

Amasov 02-05-2002 07:04 AM

I just reviewed this thread and this looks very interesting. Besides, I would like to test it for a time only for Moderators and Admins.

May I change the code like this :

Code:

if (($bbuserinfo['usergroupid']=="5") or ($bbuserinfo['usergroupid']=="6")) {
 
  /*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;
}

And will this work only for mod's and admins ???
(I'm tryin' very hard with php but I'm not so experienced with coding for the vb :( )

Admin 02-05-2002 07:09 AM

Amasov - Yes that's fine, but if I were you I'd add an else part that sets $replybox to an empty string (like the original string). Otherwise your users can do some pretty nasty stuff!

Amasov 02-05-2002 07:15 AM

hmm...ah... you mean like this :

Code:

$textareacols = gettextareawidth();
        eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");

} else {
  $replybox=''
}

right ?

Admin 02-05-2002 07:19 AM

With a ; at the end, but yeah.

Amasov 02-05-2002 07:22 AM

:) :)

Many thanks for your help.

inetd 02-05-2002 05:29 PM

Hi.
In string
<form enctype="multipart/form-data" action="newreply.php" name="vbform" method="post" onSubmit="return validate(this)"> java bug. How about fix this?


All times are GMT. The time now is 11:13 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.02962 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
  • (2)bbcode_code_printable
  • (2)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