View Full Version : 2 Suggestions :
Iori Yagami
06-06-2002, 02:56 AM
1) Could you make the reply box wider? It`s rather small, and it`s hard to distinguish between paragraphs.
2)I`ve seen a hack on another VB board, that lets you reply to the thread without loading the "reply to thread" page. It is basically done by having a text area on the thread page. Very useful if your bandwith isn`t powerful. If you want, I`ll look for it.
mishkan
06-06-2002, 09:18 AM
Originally posted by Iori Yagami
1) Could you make the reply box wider? It`s rather small, and it`s hard to distinguish between paragraphs.
2)I`ve seen a hack on another VB board, that lets you reply to the thread without loading the "reply to thread" page. It is basically done by having a text area on the thread page. Very useful if your bandwith isn`t powerful. If you want, I`ll look for it.
Iori, thanks for offering to look for that hack... I would really appreciate your sharing it, as I have a vBulletin board... and I would consider using it there. It sounds like a worthwhile hack. Thanks in advance!
mishkan :)
Iori Yagami
06-06-2002, 10:47 AM
==============
// ########################################
##########
// ################ Quick Reply Box #################
// ########### Hack version 1.0 (01.29.02) ##########
// ############## for vBulletin v2.2.2 ##############
// ########################################
##########
// ########### by Chen 'FireFly' Avinadav ###########
// ########## (chen.avinadav@vbulletin.com) #########
// ########################################
##########
1. In showthread.php find this bit of code:
// ########################################
##########
if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['user
id']) {
show_nopermission();
}
if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
$pagenumber=1;
}
// ########################################
##########
And replace it with the following:
// ########################################
##########
if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['user
id']) {
show_nopermission();
}
if (($bbuserinfo['userid']!=$thread['postus
erid']) and (!$getperms['canviewothers'] or !$getperms['canreplyothers'])) {
$replybox='';
} elseif (!$getperms['canview'] or (!$getperms['canreplyown'] and $bbuserinfo['userid']==$thread['postuser
id'])) {
$replybox='';
} elseif (!$thread['open'] and !ismoderator($thread['forumid'],'canopen
close')) {
$replybox='';
} else {
$textareacols = gettextareawidth();
eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
}
if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
$pagenumber=1;
}
// ########################################
##########
2. Create a new template, with the name "showthread_replybox":
// ########################################
##########
<script language="javascript">
<!--
var postmaxchars = $postmaxchars;
function validate(theform) {
if (theform.message.value=="") {
alert("Please complete the message field.");
return false; }
if (postmaxchars != 0) {
if (theform.message.value.length > $postmaxchars) {
alert("Your message is too long.\n\nReduce your message to $postmaxchars characters.\nIt is currently "+theform.message.value.length+" characters long.");
return false; }
else { return true; }
} else { return true; }
}
function checklength(theform) {
if (postmaxchars != 0) { message = "\nThe maximum permitted length is $postmaxchars characters."; }
else { message = ""; }
alert("Your message is "+theform.message.value.length+" characters long."+message);
}
//-->
</script>
<form enctype="multipart/form-data" action="newreply.php" name="vbform" method="post" onSubmit="return validate(this)">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="action" value="postreply">
<input type="hidden" name="threadid" value="$threadid">
<input type="hidden" name="title" value="">
<input type="hidden" name="iconid" value="0">
<input type="hidden" name="parseurl" value="yes">
<input type="hidden" name="email" value="">
<input type="hidden" name="disablesmilies" value="">
<input type="hidden" name="closethread" value="">
<input type="hidden" name="hiddenreply" value="">
<input type="hidden" name="signature" value="yes">
<input type="hidden" name="rating" value="0">
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#000000" width="100%" align="center"><tr><td>
<table cellpadding="4" cellspacing="1" border="0" width="100%">
<tr>
<td bgcolor="#336699" colspan="2"><normalfont color="#EEEEFF" class="thtcolor"><b>Post Reply</b></normalfont></td>
</tr>
<tr>
<td bgcolor="#eeeeee" valign="top" nowrap><normalfont><b>Your Reply:</b></normalfont></td>
<td bgcolor="#eeeeee">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td><textarea name="message" rows="7" cols="$textareacols" wrap="virtual" tabindex="1"></textarea><br>
<smallfont><a href="java script:checklength(document.vbform);">[check message length]</a></smallfont></td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr></table>
<br>
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td align="center"><normalfont>
<input type="submit" class="bginput" name="submit" value="Submit Reply" accesskey="s" tabindex="2">
<input type="reset" class="bginput" name="reset" value="Reset Form" accesskey="r" tabindex="3">
</normalfont></td>
</tr>
</table>
</form>
// ########################################
##########
3. In the "showthread" template add $replybox right after the following:
// ########################################
##########
<!-- first unread and next/prev -->
<table cellpadding="2" cellspacing="0" border="0" width="95%" align="center">
<tr>
<td><smallfont>$pagenav </smallfont></td>
<td align="right"><smallfont>
<img src="http://www.vbulletin.org/forum/images/prev.gif" alt="" border="0">
<a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=nextoldest">Last Thread</a>
<a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=nextnewest">Next Thread</a>
<img src="http://www.vbulletin.org/forum/images/next.gif" alt="" border="0">
</smallfont></td>
</tr>
</table>
<!-- first unread and next/prev -->
// ########################################
##########
You're all done, now upload showthread.php back to your server and enjoy this hack. :-)
Chen
=============
There you go, that`s the hack... Apparently, it was actually done by an Israeli : Chen Aminadav :)
mishkan
06-06-2002, 01:01 PM
There you go, that`s the hack... Apparently, it was actually done by an Israeli : Chen Aminadav
:o Oh my! All this time, I thought Chen was Asian! Is Chen a popular Israeli name, too?
Thank you so much for the hack... :cool:
mishkan :)
Iori Yagami
06-06-2002, 10:21 PM
Well, the "Ch" isn`t pronounced the same way as it supposed to be in English, it`s pronounced as a "h", as "Hen".
Mediocrates
11-07-2002, 06:59 PM
GMT -5 is not correct you are running GMT -2 right now it is ~10pm that's 22:00 EST
chrisjohn316
02-20-2003, 11:26 PM
Great Forum !
chrisjohn316
02-20-2003, 11:27 PM
How many posts is it anyway before a thread can be started ?
12 ;)
Evgeny
08-26-2003, 12:19 AM
chems surname sounds tatar
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.