2
   

Quick Reply box

 
 
abcdef
 
Reply Mon 29 Nov, 2004 05:46 pm
How do u insert a quick reply box?
wut is the tag for it?
thank you!!!!
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 2 • Views: 1,613 • Replies: 4
No top replies

 
hingehead
 
  1  
Reply Tue 30 Nov, 2004 12:28 am
The simplest way is to use <a href="mailto:[email protected]">quick reply</a>

This only works if a mail client is configured on the browsing computer.

If you're talking about a text box where people type in a comment and submit then it gets a little trickier.

You have to create a form that submits to a script that creates and sends an email. I can do this in ASP but I don't know what server environment you're working in. The actual textbox for the comment is just <input type="text"> or <textarea></textarea> depending on how much of a message you want them to send. But without a script to build and send the email the reply box won't work.
0 Replies
 
abcdef
 
  1  
Reply Tue 30 Nov, 2004 02:40 pm
actually wut im tryin to find out is how to insert the quick reply in a forum, just like the one we have below!! because im workin on it for skool. im using phpbb format. maybe this should help a lot! thnx in advance
0 Replies
 
hingehead
 
  1  
Reply Tue 30 Nov, 2004 04:11 pm
Sorry - I'm an ASP programmer - haven't done any PHP and not sure how you customise PHP BB, but I reckon a simple search of Google will give you the answer - give it a shot.

And welcome to A2K
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 30 Nov, 2004 08:33 pm
There are many mods that add a quick reply box. Here is an example of one. You should search and find the one you think is best for you.

Code:##############################################################
## MOD Title: Quick Reply MOD
## MOD Author: morpheus2matrix < [email protected] > (Morpheus) http://morpheus.2037.biz
## MOD Primary Author : Smartor and Ralendil
## MOD Description: This MOD will allow you to add a quick reply box on your Forum
## MOD Version: 1.0.0
## Compatibility: 2.0.6
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: 4
## viewtopic.php
## language/lang_english/lang_main.php
## templates/subSilver/viewtopic_body.tpl
## templates/subSilver/subSilver.cfg
##
## Included Files: quick_reply.gif
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##
##
##############################################################
## MOD History:
##
## 2003-11-07 - Version 1.0.0
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------------
#
'U_POST_REPLY_TOPIC' => $reply_topic_url)
);

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Quick Reply MOD
if ( ( $is_auth['auth_reply'] ) or ( $forum_topic_data['forum_status'] <> FORUM_LOCKED ) or ( $forum_topic_data['topic_status'] <> TOPIC_LOCKED ) )
{
$quick_reply_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $images['reply_locked'] : $images['quick_reply'];
$quick_reply_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['Quick_Reply_To_Topic'];

if ( !$userdata['session_logged_in'] )
{
$template->assign_block_vars('switch_username_field', array());
}

$template->assign_block_vars('quick_reply', array(
'QUICK_REPLY_IMG' => $quick_reply_img,
'L_QUICK_REPLY_TOPIC' => $quick_reply_alt,
'L_EMPTY_MESSAGE' => $lang['Empty_message'],

'U_QUICK_REPLY' => append_sid('posting.' . $phpEx),
'S_HIDDEN_FORM' => ( ( $userdata['user_attachsig'] ? '<input type="hidden" name="attach_sig" value="1" />' : "" ) . ( $userdata['user_notify'] ? '<input type="hidden" name="notify" value="1" />' : "" ) . '<input type="hidden" name="mode" value="reply" /><input type="hidden" name="post" value="1"><input type="hidden" name="' . POST_TOPIC_URL . '" value="' . $topic_id . '" /> <input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />' ) )
);
}
// Quick Reply MOD

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------------
#
{S_TOPIC_ADMIN}</td>

#
#-----[ AFTER, ADD ]------------------------------------------
#

<!-- BEGIN quick_reply -->
</tr>
</table>

<table width='100%' cellspacing='2' border='0' align='center'>
<tr>
<td valign='top' align='left'>
<form name='quick_reply' action='{quick_reply.U_QUICK_REPLY}' method='post'>
<!-- END quick_reply -->
<!-- BEGIN switch_username_field -->
<span class='gensmall'><b>{L_USERNAME}</b></span><br />
<span class='genmed'><input type='text' class='post' tabindex='1' name='username' size='25' maxlength='25' value='' /></span><br />
<!-- END switch_username_field -->
<!-- BEGIN quick_reply -->
<textarea name="message" rows="7" cols="35" wrap="virtual" style="width:425px" class="post" onclick="{if(document.quick_reply.message.value=='{L_QUICK_REPLY_TOPIC}') document.quick_reply.message.value=''}">{L_QUICK_REPLY_TOPIC}</textarea><br />
{quick_reply.S_HIDDEN_FORM}
<input type='image' src='{quick_reply.QUICK_REPLY_IMG}' border='0' alt="{quick_reply.L_QUICK_REPLY_TOPIC}" onClick="if(document.quick_reply.message.value == '{quick_reply.L_QUICK_REPLY_TOPIC}' || document.quick_reply.message.value == ''){ alert('{quick_reply.L_EMPTY_MESSAGE}'); return false;}else{ return true;}" />
</form>
</td>
<!-- END quick_reply -->

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/subSilver.cfg

#
#-----[ FIND ]------------------------------------------
#

$board_config['privmsg_graphic_length'] = 175;

#
#-----[ AFTER, ADD ]------------------------------------------
#

$images['quick_reply'] = "$current_template_images/quick_reply.gif";

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#

?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#

$lang['Quick_Reply_To_Topic'] = 'Post a Quick Reply';

#
#-----[ COPY ]-------------------------------------------------
#
copy quick_reply.gif to templates/subSilver/images/

#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------------
#
# EoM
0 Replies
 
 

Related Topics

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » Quick Reply box
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/24/2024 at 09:43:27