Quick Reply

Problems with forum installation, administration, moderation and other phpBB related support.

Moderator: Moderators

Quick Reply

Postby crofter on Tue Apr 04, 2006 6:28 am

Can you please tell me how i set this up so it shows at the bottom of the messages, so people can type in the reply without having to click the reply button before they can type message.

Many thanks
crofter
Registered User
Registered User
 
Posts: 25
Joined: Tue Apr 04, 2006 6:25 am

Postby UseLess on Tue Apr 04, 2006 7:42 am

Greetings,

Search here: http://www.phpbb.com or here http://www.phpbbhacks.com for a quick reply mod, or use one of the styles from here that already includes the feature such as Aphrodite, MorpheusX etc..
Movie Quote:
It's not the years honey, it's the mileage...

I do not provide any install services for phpBB, Mods or Styles.
Please do not pm me for support/scripting help - you won't get any reply. If you have a question then make a post in the appropriate forum.
User avatar
UseLess
Registered User
Registered User
 
Posts: 6220
Joined: Mon Sep 27, 2004 2:14 am
Location: North East, UK

Postby dickibobboy on Sun Jul 09, 2006 11:23 pm

hi, i dont know if he hi talking about the samething as me. I use the same skin as this forum uses and i know it has quick reply but you have to click on the button for it to show. Is there anyway i can make it show on each thread auto without haveing to click anything?
dickibobboy
Registered User
Registered User
 
Posts: 78
Joined: Sun Jul 09, 2006 8:52 pm

Postby dickibobboy on Mon Jul 10, 2006 8:27 pm

can anyone help me please
dickibobboy
Registered User
Registered User
 
Posts: 78
Joined: Sun Jul 09, 2006 8:52 pm

Postby dickibobboy on Sat Jul 15, 2006 5:54 pm

bump please, anyone?
dickibobboy
Registered User
Registered User
 
Posts: 78
Joined: Sun Jul 09, 2006 8:52 pm

Postby UseLess on Sun Jul 16, 2006 12:04 am

Greetings,

Open 'xs/xs_topic.tpl' and remove the '<div></div>' tags that are wrapped around the quick reply table. If you also want to remove the button then either remove or comment the line where it's set... 4 lines above the first 'div' you need to remove.
Movie Quote:
It's not the years honey, it's the mileage...

I do not provide any install services for phpBB, Mods or Styles.
Please do not pm me for support/scripting help - you won't get any reply. If you have a question then make a post in the appropriate forum.
User avatar
UseLess
Registered User
Registered User
 
Posts: 6220
Joined: Mon Sep 27, 2004 2:14 am
Location: North East, UK

Postby dickibobboy on Sun Jul 16, 2006 1:47 pm

thankyou, now automatically there
dickibobboy
Registered User
Registered User
 
Posts: 78
Joined: Sun Jul 09, 2006 8:52 pm

ESM mod

Postby moonwarp on Sun Jul 16, 2006 11:57 pm

I want to install the easy scrolling message mod which I found thanks to the link that UseLess posted above, but my config.php has the following lines in it:-

// phpBB 2.x auto-generated config file
// Do not change anything in this file!


I'm not at all sure what to do here, do I just add the following regardless?:-

INSERT INTO phpbb_config (config_name, config_value) values ('ESMM', 'This is a test message please edit me.');
INSERT INTO phpbb_config (config_name, config_value) values ('ESMS', '300');
INSERT INTO phpbb_config (config_name, config_value) values ('ESMD', 'left');


Thanks again

Joe
moonwarp
Registered User
Registered User
 
Posts: 66
Joined: Sat Jul 01, 2006 7:42 pm
Location: UK

Postby UseLess on Mon Jul 17, 2006 12:05 am

Greetings,

Those are SQL statements and need to be applied to the db, as the db table 'phpbb_config' needs updating, not the file 'config.php'.

Edit: and as your question has nothing at all to do with the original post you would be better off making a new thread. As questions added to already solved questions can be missed...
Movie Quote:
It's not the years honey, it's the mileage...

I do not provide any install services for phpBB, Mods or Styles.
Please do not pm me for support/scripting help - you won't get any reply. If you have a question then make a post in the appropriate forum.
User avatar
UseLess
Registered User
Registered User
 
Posts: 6220
Joined: Mon Sep 27, 2004 2:14 am
Location: North East, UK

Sorry about that

Postby moonwarp on Mon Jul 17, 2006 7:17 am

HI UseLess,

Sorry about that wilco :D

Thanks

Joe
moonwarp
Registered User
Registered User
 
Posts: 66
Joined: Sat Jul 01, 2006 7:42 pm
Location: UK

Postby dickibobboy on Wed Mar 14, 2007 7:30 pm

Hello, I am wanting to do the same but i cant find the tags to do this

Code: Select all
<?php

// check if quick reply is enabled
global $userdata, $board_config, $topic_id, $is_auth, $forum_topic_data, $lang, $phpEx;

$can_reply = $userdata['session_logged_in'] ? true : false;
if($can_reply)
{
   $is_auth_type = 'auth_reply';
   if(!$is_auth[$is_auth_type])
   {
      $can_reply = false;
   }
   elseif ( ($forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED) && !$is_auth['auth_mod'] )
   {
      $can_reply = false;
   }
}
if($can_reply)
{
   $this->assign_block_vars('xs_quick_reply', array());
}

$prev_id = false;
$postrow_count = ( isset($this->_tpldata['postrow.']) ) ?  sizeof($this->_tpldata['postrow.']) : 0;
for ($postrow_i = 0; $postrow_i < $postrow_count; $postrow_i++)
{
   $postrow_item = &$this->_tpldata['postrow.'][$postrow_i];
   // set profile link and search button
   if(!empty($postrow_item['PROFILE']) && strpos($postrow_item['POSTER_NAME'], '<') === false)
   {
      $postrow_item['SEARCH_IMG2'] = str_replace('%s', htmlspecialchars($postrow_item['POSTER_NAME']), $postrow_item['SEARCH_IMG']);
      $search = array($lang['Read_profile'], '<a ');
      $replace = array($postrow_item['POSTER_NAME'], '<a class="post-name" ');
      $postrow_item['POSTER_NAME'] = str_replace($search, $replace, $postrow_item['PROFILE']);
   }
   // check for new post
   $new_post = strpos($postrow_item['MINI_POST_IMG'], '_new') > 0 ? true : false;
   $postrow_item['XS_NEW'] = $new_post ? '-new' : '';
   // fix text
   $search = array('  ', "\t", "\n ");
   $replace = array('&nbsp;&nbsp;', '&nbsp;&nbsp;&nbsp;&nbsp;', "\n&nbsp;");
   $postrow_item['MESSAGE'] = str_replace($search, $replace, $postrow_item['MESSAGE']);
   // set prev/next post links
   $next_id = $postrow_i == ($postrow_count - 1) ? false : $this->_tpldata['postrow.'][$postrow_i + 1]['U_POST_ID'];
   if($next_id !== false || $prev_id !== false)
   {
      $str = '<div style="width: 10px; height: 9px; float: left; margin-right: 3px; margin-top: 1px;">';
      if($prev_id)
      {
         $str .= '<a href="#' . $prev_id . '"><img src="templates/ca_aphrodite/images/post_prev.gif" width="9" height="5" alt="" /></a>';
      }
      else
      {
         $str .= '<img src="templates/ca_aphrodite/images/spacer.gif" width="9" height="5" alt="" />';
      }
      $str .= '<br />';
      if($next_id)
      {
         $str .= '<a href="#' . $next_id . '"><img src="templates/ca_aphrodite/images/post_next.gif" width="9" height="5" alt="" /></a>';
      }
      else
      {
         $str .= '<img src="templates/ca_aphrodite/images/spacer.gif" width="9" height="5" alt="" />';
      }
      $str .= '</div>';
      $postrow_item['ARROWS'] = $str;
   }
   $prev_id = $postrow_item['U_POST_ID'];
}   

// show quick reply
if($can_reply)
{
   // quick reply button
   global $images;
   $this->vars['CA_QUICK_REPLY_BUTTON'] = '<a href="javascript:ShowHide(\'quick_reply\',\'quick_reply2\');"><img src="' . $images['quick_reply'] . '" alt="' . $lang['Post_a_reply'] . '" /></a>';
   // quick reply form
   ob_start();
   ?>
<div id="quick_reply" style="display: none; position: relative; "><form action="<?php echo append_sid('posting.'.$phpEx); ?>" method="post" name="post" style="display: inline;">{S_HIDDEN_FIELDS}<table class="forumline" width="100%" cellspacing="0">
<tr>
   <td class="row-header" colspan="2"><span><?php echo $lang['Post_a_reply']; ?></span></td>
</tr>
<tr>
   <td class="row1" align="left" width="200" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Subject']; ?>:</b></span></td>
   <td class="row2" align="left" width="100%"><input type="text" name="subject" size="45" maxlength="60" style="width:98%" tabindex="2" class="post" value="" /></td>
</tr>
<tr>
   <td class="row1" align="left" width="200" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Message_body']; ?>:<br /><img src="{T_TEMPLATE_PATH}/images/spacer.gif" width="200" height="1" border="0" alt="" /></b></span></td>
   <td class="row2" align="left" width="100%"><textarea name="message" rows="15" cols="35" style="width:98%" tabindex="3" class="post"></textarea><br />
           <img src="templates/ca_aphrodite/images/icon_reply.gif" alt="" /> <a href="javascript:void(0);" onclick="window.open('http://www.postimage.org/index.php?mode=phpbb&tpl=' + 'ca_aphrodite' + '&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;">Add image to post</a></td>
</tr>
<tr>
   <td class="row1" align="left" valign="top" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Options']; ?>:</b></span></td>
   <td class="row2" align="left"><span class="genmed">
   <?php
      $user_sig = ( $userdata['user_sig'] != '' && $board_config['allow_sig'] ) ? $userdata['user_sig'] : '';
      $html_on = $board_config['allow_html'] ? $userdata['user_allowhtml'] : 1;
      $bbcode_on = $board_config['allow_bbcode'] ? $userdata['user_allowbbcode'] : 0;
      $smilies_on = $board_config['allow_smilies'] ? $userdata['user_allowsmile'] : 0;
   ?>
   <?php if($board_config['allow_html']) { ?>
   <label><input type="checkbox" name="disable_html" <?php echo ($html_on ? '' : 'checked="checked"'); ?> /> <span class="genmed"><?php echo $lang['Disable_HTML_post']; ?></span></label><br />
   <?php } else { ?><input type="hidden" name="disable_html" value="checked" /><?php } ?>
   <?php if($board_config['allow_bbcode']) { ?>
   <label><input type="checkbox" name="disable_bbcode" <?php echo ($bbcode_on ? '' : 'checked="checked"'); ?> /> <span class="genmed"><?php echo $lang['Disable_BBCode_post']; ?></span></label><br />
   <?php } else { ?><input type="hidden" name="disable_bbcode" value="checked" /><?php } ?>
   <?php if($board_config['allow_smilies']) { ?>
   <label><input type="checkbox" name="disable_smilies" <?php echo ($smilies_on ? '' : 'checked="checked"'); ?>  /> <span class="genmed"><?php echo $lang['Disable_Smilies_post']; ?></span></label><br />
   <?php } else { ?><input type="hidden" name="disable_smilies" value="checked" /><?php } ?>
   <?php if($user_sig) {  ?>
   <label><input type="checkbox" name="attach_sig" <?php echo ($userdata['user_attachsig'] ? 'checked="checked"' : ''); ?> /> <span class="genmed"><?php echo $lang['Attach_signature']; ?></span></label><br />
   <?php } else { ?><input type="hidden" name="attach_sig" value="" /><?php } ?>
   <label><input type="checkbox" name="notify" <?php echo ($userdata['user_notify'] ? 'checked="checked"' : ''); ?> /> <span class="genmed"><?php echo $lang['Notify']; ?></span></label><br />
   </span></td>
</tr>
<tr>
   <td class="catBottom" colspan="2"> <input type="hidden" name="mode" value="reply" /><input type="hidden" name="t" value="<?php echo $topic_id; ?>" /><input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="<?php echo $lang['Submit']; ?>" />&nbsp;<input type="submit" tabindex="5" name="preview" class="liteoption" value="<?php echo $lang['Preview']; ?>" /></td>
</tr>
</table></form></div>
   <?php
   $str = ob_get_contents();
   ob_end_clean();
   $this->vars['CA_QUICK_REPLY_FORM'] = $str;
}

?>
<!-- INCLUDE viewtopic_body.tpl -->
dickibobboy
Registered User
Registered User
 
Posts: 78
Joined: Sun Jul 09, 2006 8:52 pm

Postby DooBDee on Wed Mar 14, 2007 7:58 pm

Look at lines 73 -> 128. THose lines build reply box. If you want to alter appearance of quick reply, the code is in between those lines.
DooBDee
Website Ninja
DooBDee.net
User avatar
DooBDee
Moderator
Moderator
 
Posts: 3530
Joined: Tue Mar 01, 2005 6:28 pm
Location: DooBDee.net

Postby dickibobboy on Wed Mar 14, 2007 9:33 pm

I have dont this and it opens the box but the reply button doest work

i removed

<div id="quick_reply" style="display: none; position: relative; "><form action="<?php echo append_sid('posting.'.$phpEx); ?>" method="post" name="post" style="display: inline;">{S_HIDDEN_FIELDS}<table class="forumline" width="100%" cellspacing="0">

and

</div>
dickibobboy
Registered User
Registered User
 
Posts: 78
Joined: Sun Jul 09, 2006 8:52 pm

Postby UseLess on Wed Mar 14, 2007 10:15 pm

Greetings,

You removed too much.

Removing...
Code: Select all
<div id="quick_reply" style="display: none; position: relative; ">

and
Code: Select all
</div>

should do it, aswell as the instructions given previously.
Movie Quote:
It's not the years honey, it's the mileage...

I do not provide any install services for phpBB, Mods or Styles.
Please do not pm me for support/scripting help - you won't get any reply. If you have a question then make a post in the appropriate forum.
User avatar
UseLess
Registered User
Registered User
 
Posts: 6220
Joined: Mon Sep 27, 2004 2:14 am
Location: North East, UK

Postby dickibobboy on Wed Mar 14, 2007 10:24 pm

looks better and not streched.. but once i do this and try and post i get an error saying invalid session.
dickibobboy
Registered User
Registered User
 
Posts: 78
Joined: Sun Jul 09, 2006 8:52 pm

Next

Return to phpBB Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron