Help - Search - Members - Calendar
Full Version: IPB Quick Reply
ieXbeta Board > Tech > Developer Center
The Nonentity
Anyone know how to turn this on?

Looks like I need a hack for this... where can I get one?
fretster
ibresource.com
The Nonentity
Thanks wink2.gif
jakYro
QUOTE
Open source/topic.php
find :
$this->output .= $this->html->TableFooter( array( 'TOPIC' => $this->topic, 'FORUM' => $this->forum ) );
after that add


//-------------------------------------


// hack easy quick reply


//-------------------------------------


if ($this->topic['poll_state'] == 'closed' and $ibforums->member['g_is_supadmin'] != 1)
{ $allow = 0; }

if ($this->topic['starter_id'] == $ibforums->member['id'])
{ $allow = 0; }

if ($this->topic['starter_id'] != $ibforums->member['id'])
{ if (! $ibforums->member['g_reply_own_topics']) { $allow = 0; } }

$this->m_group = $ibforums->member['mgroup'];

if ($class->forum['reply_perms'] != '*') { if ( !preg_match( "/(^|,)$this->m_group(,|$)/", $this->forum['reply_perms'] ) ) { $allow = 1; }}

if ($this->forum['reply_perms'] == '*')
{ $allow = 1;  }

if ($this->topic['state'] != 'open')
{  $allow = 0; }

if ($ibforums->member['id'] == "" AND $allow != 1)
{ $allow = 0;}

if($allow == 1)
{
  if (!$ibforums->member['id'])
  {
  $data['guest_box'] = "<input type='text' size='40' maxlength='50' name='UserName' value='Enter your name' tabindex='1' class='forminput' onMouseOver='this.focus()'>";
  }
 
  $data['f'] = $this->forum['id'];
  $data['t'] = $this->topic['tid'];
 
  $this->output .= $this->html->quickreply($data);
}

//////////////////////////////


open file skins/x/skin_topic.php


under class skin_topic {

add :





function quickreply($data) {
global $ibforums;
return <<<EOF
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}' method='POST' name='REPLIER'>
<input type='hidden' name='st' value='0'>
<input type='hidden' name='act' value='Post'>
<input type='hidden' name='f' value='$data[f]'>
<input type='hidden' name='CODE' value='03'>
<input type='hidden' name='t' value='$data[t]'>
<input type='hidden' name='enableemo' value='yes'>
<input type='hidden' name='enablesig' value='yes'>

<table cellpadding='0' cellspacing='1' border='0' width='500' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
    <tr>
        <td>
            <table cellpadding='4' cellspacing='1' border='0' width='100%' class='row1'>
            <tr>
            <td align='center' colspan='2' class='titlemedium'>Quick Reply</td>
            </tr>
            <tr>
            <td class='category' align='left' colspan='2'>Enter your reply below:</td>
            </tr>
<tr>
  <td class='row1' align='center' colspan='2'>$data[guest_box]</td>
  </tr>
<tr><td class='row1' align='center'><textarea cols='60' rows='6' wrap='soft' name='Post'

tabindex='3' class='textinput'></textarea></td></tr>
                <tr>
            <td class='row2' align='center' colspan='2'>
            <input type="submit" name="submit" value="Submit" tabindex='4' class='forminput'>&nbsp;
            <input type="submit" name="preview" value="Go Advanced!" tabindex='5' class='forminput'>
            </td>
            </tr>
        </table>
        </td>
      </tr>
      </table>
  </form>
<br>

EOF;
}


Same as here in iexbeta wink2.gif
ml20
I have never used this, does anyone? tongue.gif
theKore
all the time biggrin.gif
The Nonentity
It's gonna be standard in IPB 1.2
No more Quick Reply hack! laugh.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.