Welcome, Guest. Please Login or Register.
May 04, 2025, 06:07:56 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  quick reply « previous next »
Pages: [1] Reply Ignore Print
Author Topic: quick reply  (Read 3001 times)
trevsweb
Noobie
*
Posts: 31


EVILness is inside me

WWW
quick reply
« on: June 10, 2002, 04:21:12 PM »
Reply with quote

i have done a search on it but cant seem to find one
Vbulletin has a mod that allows you to do a quick reply under the last post can or has someone made a mod that would work on v.1.40
i have the txt file for the vb mod if you want it
// ##################################################
// ################ Quick Reply Box #################
// ########### Hack version 1.0 (01.29.02) ##########
// ############## for vBulletin v2.2.2 ##############
// ##################################################
// ########### by Chen 'FireFly' Avinadav ###########
// ########## ([email protected]) #########
// ##################################################

1. In showthread.php find this bit of code:
// ##################################################
if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
  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['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;
}
// ##################################################

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="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
   <td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Post Reply</b></normalfont></td>
</tr>
<tr>
   <td bgcolor="{secondaltcolor}" valign="top" nowrap><normalfont><b>Your Reply:</b></normalfont></td>
   <td bgcolor="{secondaltcolor}">
      <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="javascript: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="{contenttablewidth}" {tableinvisibleextra} 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&nbsp;</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>
   &nbsp;
   <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
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:quick reply
« Reply #1 on: June 10, 2002, 05:12:06 PM »
Reply with quote

Not to be discouraging but do you know how many times this has been disscussed?
Logged

Broomop
Noobie
*
Posts: 34


I'm a llama!

Re:quick reply
« Reply #2 on: June 10, 2002, 05:45:36 PM »
Reply with quote

do u know also that yabb gold has it and its wicked...
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:quick reply
« Reply #3 on: June 10, 2002, 05:46:44 PM »
Reply with quote

Do a search and find the threads about it on this board.
Logged

trevsweb
Noobie
*
Posts: 31


EVILness is inside me

WWW
Re:quick reply
« Reply #4 on: June 10, 2002, 06:48:30 PM »
Reply with quote

i did and it said no posts found
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:quick reply
« Reply #5 on: June 10, 2002, 06:59:11 PM »
Reply with quote

Search for "quick reply" as a phrase and set it for like 50 days.
Logged

trevsweb
Noobie
*
Posts: 31


EVILness is inside me

WWW
Re:quick reply
« Reply #6 on: June 10, 2002, 07:19:50 PM »
Reply with quote

rite so this quick reply button does what i asked
Logged

itswheelie
Jr. Member
**
Posts: 88


I love YaBB SE!

Re:quick reply
« Reply #7 on: June 13, 2002, 05:12:36 AM »
Reply with quote

well I just did a search of the whole board for "quick reply" from now to the past 50, 100, 500 and 700 days and only got one hit.  The post above.

I can see the quick reply button at the bottom but when I click on that nothing happens.

How does the quick reply button work?

[EDIT:  forget that last bit.  it wasn't a quick reply button but rather the topic "Quick Reply" doh.

could someone post a link to the quick reply topic please[/edit]
« Last Edit: June 13, 2002, 06:23:51 AM by itswheelie » Logged
Broomop
Noobie
*
Posts: 34


I'm a llama!

Re:quick reply
« Reply #8 on: June 13, 2002, 07:43:11 AM »
Reply with quote

on yabb gold u do a template string.. and its as simple as that.... and if u want to know where the post goes it changes depending on the thread so....... you will have to use a template... Im not sure if php coding for templates is simalar or teh same but thats the way to do it.. one draw back it quests can use it but u can add some coding to stop this.
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  quick reply « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.059 seconds with 20 queries.