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.
I've got a modification that I wrote for my forums that allows users to turn the quickreply box on/off in their profile. If anyone's interesting, let me know, because otherwise I won't bother .
I want to be mature about this so...gimme, gimme, gimme, pweez!
Quote:
Originally posted by Darth Cow I've got a modification that I wrote for my forums that allows users to turn the quickreply box on/off in their profile. If anyone's interesting, let me know, because otherwise I won't bother .
ALTER TABLE user ADD showquickreply tinyint(1) DEFAULT '1' not null AFTER nosessionhash
EDIT: Corrected it to "AFTER nosessionhash" (I forgot I was basing the location after another hack I installed )
That will set the default to show the quickreply - changing "DEFAULT '1'" to "DEFAULT '0'" should set the default to no display.
Make a new template "modifyoptions_showquickreply" with the following contents:
Code:
<tr>
<td bgcolor="#13486D"><normalfont><b>Show QuickReply Box?</b></normalfont><br>
<smallfont>Disabling this option will hide the quickreply boxes at the end of
each thread. You can still reply by clicking on "Post Reply".</smallfont></td>
<td bgcolor="#13486D"><normalfont>
<input type="radio" name="showquickreply" value="yes" $showquickreplychecked> yes
<input type="radio" name="showquickreply" value="no" $showquickreplynotchecked> no
</normalfont></td>
</tr>
// Show QuickReply Option
$showquickreply=iif($showquickreply=="yes",1,0);
// Show QuickReply Option
Still in member.php, find:
PHP Code:
$DB_site->query("UPDATE user
SET ".$updatestyles."adminemail='$adminemail',
showemail='$showemail',invisible='$invisible',cookieuser='$cookieuser',
maxposts='".addslashes($umaxposts)."',daysprune='".addslashes($prunedays)."',
timezoneoffset='".addslashes($timezoneoffset)."',emailnotification='$emailnotification',
startofweek='".addslashes($startofweek)."',options='$options',receivepm='$receivepm',
emailonpm='$emailonpm',pmpopup='$pmpopup',usergroupid='$bbuserinfo[usergroupid]',
nosessionhash='$nosessionhash'
Add (continuing previous line):
Code:
,showquickreply='$showquickreply'
Finally, in showthread.php, after:
PHP Code:
} elseif (!$thread['open'] and !ismoderator($thread['forumid'],'canopenclose')) {
$replybox='';
(Note: you'll have to install the regular quickreply hack first to find this)
vB 2.2.6
Been trying to add the smilies to this with no luck...
I tried $vbcode_smilies as in the new reply,etc.. but it is not working. Anyone know the code?