Version: 1.00, by Admin (Coder)
Developer Last Online: Nov 2024
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.
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 ), but it looks a bit cluttersome.
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
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...?
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
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 )
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!