[BETA] Quick Reply For phpBB 2.0.6

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
User avatar
morpheus2matrix
Former Team Member
Posts: 9171
Joined: Wed Apr 10, 2002 7:31 pm
Location: France
Contact:

[BETA] Quick Reply For phpBB 2.0.6

Post by morpheus2matrix » Fri Nov 07, 2003 9:54 pm

Here is a version of this MOD compatible for phpBB 2.0.6

Enjoy.

Download (needed for the image file) : http://morpheus.2037.biz/download.php?id=54

Code: Select all

############################################################## 
## MOD Title:          Quick Reply MOD
## MOD Author:         morpheus2matrix < morpheus@2037.biz > (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

Last edited by morpheus2matrix on Mon Nov 10, 2003 12:58 pm, edited 2 times in total.
Former phpBB MOD-Team Member -

Forgive my bad English :(

No support by PM/Email - Thanks - You can thanks me here :) - Pay me for installing MOD's :lol:

ThE DrAgOn'S
Registered User
Posts: 376
Joined: Mon Dec 23, 2002 8:56 pm
Location: israel
Contact:

Post by ThE DrAgOn'S » Sat Nov 08, 2003 3:38 pm

will it work with emc ?

User avatar
GPHemsley
Registered User
Posts: 1475
Joined: Fri Apr 18, 2003 3:12 am
Location: Long Beach, NY
Name: Gordon Hemsley
Contact:

Post by GPHemsley » Sun Nov 09, 2003 2:36 am

ThE DrAgOn'S wrote: will it work with emc ?

The word is EasyMOD, and yes it will.

(Apparently this is my 1500th post. Go me!)
Last edited by GPHemsley on Mon Nov 10, 2003 11:54 pm, edited 1 time in total.

ThE DrAgOn'S
Registered User
Posts: 376
Joined: Mon Dec 23, 2002 8:56 pm
Location: israel
Contact:

Post by ThE DrAgOn'S » Sun Nov 09, 2003 12:04 pm

GPHemsley wrote:
ThE DrAgOn'S wrote:will it work with emc ?

The word is EasyMOD, and yes it will.

sry i ment WILL IT BE and tryd with em dident work

User avatar
morpheus2matrix
Former Team Member
Posts: 9171
Joined: Wed Apr 10, 2002 7:31 pm
Location: France
Contact:

Post by morpheus2matrix » Sun Nov 09, 2003 2:07 pm

ThE DrAgOn'S wrote: tryd with em dident work


what was the problem ? have you other MOD's installed ?
Former phpBB MOD-Team Member -

Forgive my bad English :(

No support by PM/Email - Thanks - You can thanks me here :) - Pay me for installing MOD's :lol:

eXoR
Registered User
Posts: 2
Joined: Sat Feb 02, 2002 10:10 pm
Location: The lowlands
Contact:

Post by eXoR » Sun Nov 09, 2003 11:34 pm

Installed it with EasyMod, works like a charm.

Thanks! :)

User avatar
morpheus2matrix
Former Team Member
Posts: 9171
Joined: Wed Apr 10, 2002 7:31 pm
Location: France
Contact:

Post by morpheus2matrix » Mon Nov 10, 2003 8:56 am

Glad to know that :wink:
Former phpBB MOD-Team Member -

Forgive my bad English :(

No support by PM/Email - Thanks - You can thanks me here :) - Pay me for installing MOD's :lol:

cisiodon
Registered User
Posts: 15
Joined: Tue Aug 19, 2003 10:33 am

Quick

Post by cisiodon » Mon Nov 10, 2003 9:27 am

Installed and working fine in subblack theme modified.

Where can i insert a TXT before Quick Reply field ?

Ex: " Quick Reply"


Mike

User avatar
morpheus2matrix
Former Team Member
Posts: 9171
Joined: Wed Apr 10, 2002 7:31 pm
Location: France
Contact:

Post by morpheus2matrix » Mon Nov 10, 2003 11:02 am

you can tried to insert it before :

Code: Select all

<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 />
in viewtopic_body.tpl
Former phpBB MOD-Team Member -

Forgive my bad English :(

No support by PM/Email - Thanks - You can thanks me here :) - Pay me for installing MOD's :lol:

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Mon Nov 10, 2003 11:53 am

I think Smartor and RustyDragons will be glad to see their name mentioned, at least for the first realisations of this mod :roll:

User avatar
morpheus2matrix
Former Team Member
Posts: 9171
Joined: Wed Apr 10, 2002 7:31 pm
Location: France
Contact:

Post by morpheus2matrix » Mon Nov 10, 2003 12:56 pm

Ptirhiik - RPGnet-fr wrote: I think Smartor and RustyDragons will be glad to see their name mentioned, at least for the first realisations of this mod :roll:


Yes, this have been already done in the readme file which will be uploaded to the MOD db with the final version of the MOD. And it's not Smartor and RustyDragons but Smartor and Ralendil which are named in the file ( i don't know RustyDragons :oops: ) :)

But you're right, i will add their name to the MOD Header

Edit : ok, i've change the content of the download with the latest files for the MOD (it include a quick reply image, the MOD install and a Readme file). I will submit this MOD to the MOD db if ithere is no bugs report.
Former phpBB MOD-Team Member -

Forgive my bad English :(

No support by PM/Email - Thanks - You can thanks me here :) - Pay me for installing MOD's :lol:

User avatar
GPHemsley
Registered User
Posts: 1475
Joined: Fri Apr 18, 2003 3:12 am
Location: Long Beach, NY
Name: Gordon Hemsley
Contact:

Post by GPHemsley » Mon Nov 10, 2003 11:37 pm

morpheus2matrix wrote: if ithere is no bugs report.

It worked fine for me when I went to check EM compatibility. 8)

User avatar
adzyboy
Registered User
Posts: 215
Joined: Fri Jun 20, 2003 8:50 pm
Location: Burnley, England
Contact:

Post by adzyboy » Tue Nov 11, 2003 10:28 am

Installed it manually onto a slightly modded forum.. including themes:: FiAppleblue and smartDark. Both work fine... nice work ;)

User avatar
morpheus2matrix
Former Team Member
Posts: 9171
Joined: Wed Apr 10, 2002 7:31 pm
Location: France
Contact:

Post by morpheus2matrix » Tue Nov 11, 2003 12:00 pm

Good news, so i will submitted to the MOD db :wink:
Former phpBB MOD-Team Member -

Forgive my bad English :(

No support by PM/Email - Thanks - You can thanks me here :) - Pay me for installing MOD's :lol:

bcs10
Registered User
Posts: 1525
Joined: Mon Jul 14, 2003 4:45 am
Location: Chicago, IL

Post by bcs10 » Thu Nov 13, 2003 4:03 am

i installed this mod onto my forums... and now if someone views my forums in 800 by 600 resolution... and they choose a thread to view like this one... the forums are wider than the screen.... how do i go about fixing this....

Post Reply

Return to “[2.0.x] MODs in Development”

Who is online

Users browsing this forum: No registered users and 1 guest