[ABD]Quick Reply MOD for phpbb 2.0.0

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.
Locked
OOHOO
Registered User
Posts: 36
Joined: Tue Oct 30, 2001 1:56 pm
Location: AU
Contact:

[ABD]Quick Reply MOD for phpbb 2.0.0

Post by OOHOO » Mon Apr 08, 2002 6:59 pm

Well, I think this one can be released.

Code: Select all

############################################################## 
## Mod Title: Quick reply to topic
## Mod Version: 1.1.2 
## Author: OOHOO < webdev@phpbb-tw.net > http://phpbb-tw.net/ 
## 
## Description:  This MOD provides a convenient function, which allows 
## users to quickly reply to topics without loading the posting page. 
## Simply speed up the response time and reduce the useless loading.
## 
##
## Installation Level: (easy) 
## Installation Time: 1-5 Minutes 
## Files To Edit: viewtopic.php, /templates/your_template/viewtopic_body.tpl, 
## /language/your_lang/lang_main.php, templates/your_template/your_template.cfg
## Included Files: quick_reply.gif
############################################################## 
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites 
################################################################# 
##
## Author Note: This MOD didn't include any BBCode or emotion tips, it's 
## especially for users who are already familiar with those tips or who 
## don't use those tips.
##
############################################################## 
## Version History: 
## 1.0.0 for phpBB RC2 ~ RC3 
## 1.1.0 for phpBB 2.0.0
## 1.1.1 Code for quick reply button include (by Kage Musha)
## 1.1.2 "posting.$phpEx" => append_sid("posting.$phpEx") fixed (by totocat)
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
################################################################# 


# 
#-----[ ACTION: OPEN  ]------------------------------------------ 
# 

/viewtopic.php 

# 
#-----[ ACTION: FIND ]------------------------------------------ 
# 

$post_img = ( $forum_row['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new']; 
$post_alt = ( $forum_row['forum_status'] == FORUM_LOCKED ) ? $lang['Forum_locked'] : $lang['Post_new_topic']; 

# 
#-----[ ACTION: AFTER, ADD ]------------------------------------------ 
# 

$quick_reply_img = ( $forum_row['forum_status'] == FORUM_LOCKED || $forum_row['topic_status'] == TOPIC_LOCKED ) ? $images['reply_locked'] : $images['quick_reply']; // Quick_Reply_MOD 
$quick_reply_alt = ( $forum_row['forum_status'] == FORUM_LOCKED || $forum_row['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['Quick_Reply_to_topic']; // Quick_Reply_MOD 

# 
#-----[ ACTION: FIND ]------------------------------------------ 
# 

   'POST_IMG' => $post_img, 
   'REPLY_IMG' => $reply_img, 

# 
#-----[ ACTION: AFTER, ADD ]------------------------------------------ 
# 
    
   'QUICK_REPLY_IMG' => $quick_reply_img, // Quick_Reply_MOD 
   'L_QUICK_REPLY_TOPIC' => $quick_reply_alt, // Quick_Reply_MOD 
   'L_EMPTY_MESSAGE' => $lang['Empty_message'], // Quick_Reply_MOD 
   'U_QUICK_REPLY' => append_sid("posting.$phpEx"), // Quick_Reply_MOD 
   'U_HIDDEN_FORM_FIELDS' => ( ($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 . '" />' ), // Quick_Reply_MOD 


# 
#-----[ ACTION: OPEN  ]------------------------------------------ 
# 

/templates/your_template/viewtopic_body.tpl 

# 
#-----[ ACTION: FIND ]------------------------------------------ 
# 

<table width="100%" cellspacing="2" border="0" align="center"> 
  <tr> 
   <td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span><br /> 
     &nbsp;<br /> 
     {S_TOPIC_ADMIN}</td> 
   <td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td> 
  </tr> 
</table> 

# 
#-----[ ACTION: REPLACE ]------------------------------------------ 
# 

<table width="100%" cellspacing="2" border="0" align="center"> 
  <tr> 
   <td width="40%" valign="top" nowrap="nowrap" align="left"> 
     <span class="gensmall">{S_WATCH_TOPIC}</span><br />&nbsp;<br />{S_TOPIC_ADMIN} 
   </td> 
  </tr> 
</table> 

<table width="100%" cellspacing="2" border="0" align="center"> 
  <tr> 
   <td valign="top" align="left"> 
     <form name="quick_reply" action="{U_QUICK_REPLY}" method="post"><!-- Quick_Reply_MOD --> 
      <!-- BEGIN quick_reply_anonymous --> 
      <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 quick_reply_anonymous --> 
      <textarea name="message" rows="7" cols="35" wrap="virtual" style="width:500px" class="post" onclick="{if(document.quick_reply.message.value=='{L_QUICK_REPLY_TOPIC}') document.quick_reply.message.value=''}">{L_QUICK_REPLY_TOPIC}</textarea><br /> 
      {U_HIDDEN_FORM_FIELDS} 
      <input type="image" src="{QUICK_REPLY_IMG}" border="0" alt="{L_QUICK_REPLY_TOPIC}" onClick="if(document.quick_reply.message.value == '{L_QUICK_REPLY_TOPIC}' || document.quick_reply.message.value == ''){ alert('{L_EMPTY_MESSAGE}'); return false;}else{ return true;}" /> 
     </form> 
   </td> 
   <td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td> 
  </tr> 
</table> 


# 
#-----[ ACTION: OPEN  ]------------------------------------------ 
# 

/language/your_lang/lang_main.php 

# 
#-----[ ACTION:  FIND ]------------------------------------------ 
# 
$lang['Post_new_topic'] = "Post new topic"; 
$lang['Reply_to_topic'] = "Reply to topic"; 
$lang['Reply_with_quote'] = "Reply with quote"; 

# 
#-----[ ACTION:  ADD ]------------------------------------------ 
# 

$lang['Quick_Reply_to_topic'] = "Quick reply to topic"; // Quick_Reply_MOD 


# 
#-----[ ACTION: OPEN ]------------------------------------------ 
# 

templates/your_template/your_template.cfg 

# 
#-----[ ACTION: FIND ]------------------------------------------ 
# 

$images['reply_locked'] = "$current_template_images/{LANG}/reply-locked.gif"; 

# 
#-----[ ACTION: AFTER, ADD ]------------------------------------------ 
# 

$images['quick_reply'] = "$current_template_images/{LANG}/quick_reply.gif"; // Quick_Reply_MOD 

# 
#-----[ ACTION: SAVE & CLOSE FILE ]------------------------------------------ 
#


# 
#-----[ ACTION: UPLOAD ]------------------------------------------ 
# 

quick_reply.gif to templates/your_template/images/your_lang/ 

# 
# EoM
#
You can download it from http://phpbb-tw.net/phpbb/download/quic ... _1.1.2.zip
Last edited by OOHOO on Mon May 13, 2002 3:21 pm, edited 6 times in total.

Kage Musha
Registered User
Posts: 444
Joined: Sun Dec 23, 2001 10:03 pm
Location: Someone's Heart
Contact:

Post by Kage Musha » Mon Apr 08, 2002 7:25 pm

Here's a quickReply Button
Image
I didn't make this button, someone else made this at mods.phpbb.com and I still had this on my site so....

If you want to use this use this code after you've installed the above one:

Code: Select all

# 
#-----[ OPEN: ]------------------------------------------ 
# 

 viewtopic.php

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

// If u have other images to replace $images['reply_new'] just change it 
$quick_reply_img = ( $forum_row['forum_status'] == FORUM_LOCKED || $forum_row['topic_status'] == TOPIC_LOCKED ) ? $images['reply_locked'] : $images['reply_new']; // Quick_Reply_MOD 

# 
#-----[ REPLACE WITH: ]------------------------------------------ 
# 

// If u have other images to replace $images['reply_new'] just change it 
$quick_reply_img = ( $forum_row['forum_status'] == FORUM_LOCKED || $forum_row['topic_status'] == TOPIC_LOCKED ) ? $images['reply_locked'] : $images['quick_reply']; // Quick_Reply_MOD 

# 
#-----[ SAVE, CLOSE & UPLOAD: ]------------------------------------------ 
# 
 
 viewtopic.php

# 
#-----[ OPEN: ]------------------------------------------ 
# 

 templates/YOUR_TEMPLATE/YOUR_TEMPLATE.cfg

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

$images['reply_locked'] = "$current_template_images/{LANG}/reply-locked.gif";

# 
#-----[ ADD AFTER: ]------------------------------------------ 
# 

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

# 
#-----[ SAVE, CLOSE & UPLOAD: ]------------------------------------------ 
#

 templates/YOUR_TEMPLATE/YOUR_TEMPLATE.cfg

# 
#-----[ UPLOAD: ]------------------------------------------ 
#

 quick_reply.gif to templates/YOUR_TEMPLATES/images/lang_xxx/

OOHOO might include this in his code :D
https://www.rpggarden.com Development: Battle Mod
Released: PS2 Theme
Image Search b4 asking (less work for us :lol: )
Plz do not abuse my IM mediums or I'll have to block ya :evil:

adam s
Registered User
Posts: 215
Joined: Fri Apr 05, 2002 3:21 am

Post by adam s » Mon Apr 08, 2002 10:23 pm

is this mod finished and tested, or still in the works?

Kage Musha
Registered User
Posts: 444
Joined: Sun Dec 23, 2001 10:03 pm
Location: Someone's Heart
Contact:

Post by Kage Musha » Mon Apr 08, 2002 10:37 pm

adam s wrote: is this mod finished and tested, or still in the works?
It works for me, haven't seen any bugs or errors yet
https://www.rpggarden.com Development: Battle Mod
Released: PS2 Theme
Image Search b4 asking (less work for us :lol: )
Plz do not abuse my IM mediums or I'll have to block ya :evil:

adam s
Registered User
Posts: 215
Joined: Fri Apr 05, 2002 3:21 am

Post by adam s » Mon Apr 08, 2002 10:50 pm

u didnt specify where to add this in the page?

Code: Select all

# 
#-----[ ACTION: OPEN FILE ]------------------------------------------ 
# 

/language/your_lang/lang_main.php 

# 
#-----[ ACTION:  ADD ]------------------------------------------ 
# 

$lang['Quick_Reply_to_topic'] = "Quick reply to topic"; // Quick_Reply_MOD 

# 
#-----[ ACTION: SAVE & CLOSE FILE ]------------------------------------------ 
[code]

AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

Post by AbelaJohnB » Mon Apr 08, 2002 10:52 pm

If this is working... let's get it into our MOD Database :mrgreen:

adam s
Registered User
Posts: 215
Joined: Fri Apr 05, 2002 3:21 am

Post by adam s » Mon Apr 08, 2002 11:03 pm

AbelaJohnB wrote: If this is working... let's get it into our MOD Database :mrgreen:


works great. i suggest tho incorporating the quick reply button addition into the mod, make it all one, rather than 2 mods.

also, as i stated above, the mod needs to specify where to add that last bit of code, or someone will just do it wrong.

Setheus
Registered User
Posts: 95
Joined: Sat Jan 05, 2002 9:34 am

Post by Setheus » Mon Apr 08, 2002 11:27 pm

there needs to be some emoticons that come with the quick reply.

Kage Musha
Registered User
Posts: 444
Joined: Sun Dec 23, 2001 10:03 pm
Location: Someone's Heart
Contact:

Post by Kage Musha » Mon Apr 08, 2002 11:32 pm

adam s wrote: u didnt specify where to add this in the page?

Code: Select all

# 
#-----[ ACTION: OPEN FILE ]------------------------------------------ 
# 

/language/your_lang/lang_main.php 

# 
#-----[ ACTION:  ADD ]------------------------------------------ 
# 

$lang['Quick_Reply_to_topic'] = "Quick reply to topic"; // Quick_Reply_MOD 

# 
#-----[ ACTION: SAVE & CLOSE FILE ]------------------------------------------ 
[code]


It says in the lang_main.php file as stated in the How To
https://www.rpggarden.com Development: Battle Mod
Released: PS2 Theme
Image Search b4 asking (less work for us :lol: )
Plz do not abuse my IM mediums or I'll have to block ya :evil:

adam s
Registered User
Posts: 215
Joined: Fri Apr 05, 2002 3:21 am

Post by adam s » Mon Apr 08, 2002 11:34 pm

Kage Musha wrote: It says in the lang_main.php file as stated in the How To


yes, but it doesn't say WHERE on that page to put it. if it doesn't matter, then it should specify that too. i got it to work, but others may not.

OOHOO
Registered User
Posts: 36
Joined: Tue Oct 30, 2001 1:56 pm
Location: AU
Contact:

Post by OOHOO » Tue Apr 09, 2002 3:38 am

Code: Select all

# 
#-----[ ACTION: OPEN FILE ]------------------------------------------ 
# 

/language/your_lang/lang_main.php 


# 
#-----[ ACTION:  FIND ]------------------------------------------ 
# 
$lang['Post_new_topic'] = "Post new topic";
$lang['Reply_to_topic'] = "Reply to topic";
$lang['Reply_with_quote'] = "Reply with quote";

# 
#-----[ ACTION:  AFTER, ADD ]------------------------------------------ 
# 

$lang['Quick_Reply_to_topic'] = "Quick reply to topic"; // Quick_Reply_MOD 

# 
#-----[ ACTION: SAVE & CLOSE FILE ]------------------------------------------ 
hmm, this should be clear, it's almost done if no one finds a bug.

adam s
Registered User
Posts: 215
Joined: Fri Apr 05, 2002 3:21 am

Post by adam s » Tue Apr 09, 2002 3:58 am

OOHOO wrote: hmm, this should be clear, it's almost done if no one finds a bug.


that's where i put it, and have been using it all night. it works fine.

OOHOO
Registered User
Posts: 36
Joined: Tue Oct 30, 2001 1:56 pm
Location: AU
Contact:

Post by OOHOO » Tue Apr 09, 2002 5:22 am

I leave the message here but it's the same as the one on the top

Code: Select all


############################################################## 
## Mod Title: Quick Reply MOD 
## Mod Version: 1.1.1 
## Author: OOHOO < webdev@mlinux.wusdsl.net > http://phpbb-tw.net/ 
## 
## Description: With this MOD, users can quick reply to topics 
## without accessing to posting page. 
## 
## Demo: http://phpbb-tw.net/viewtopic.php?t=4984 
## 
## Installation Level: (easy) 
## Installation Time: 1-5 Minutes 
## Files To Edit: viewtopic.php, /templates/your_template/viewtopic_body.tpl, 
## /templates/your_template/   /language/your_lang/lang_main.php, 
## templates/your_template/your_template.cfg
## Included Files: quick_reply.gif
############################################################## 
## 
## Author Note: Feel free to use it, and backup b4 u install it. 
## It's just a easy MOD, but if u like it, give credit to me. 
## 
############################################################## 
## Version History: 
## 1.0.0 for phpBB RC2 ~ RC3 
## 1.1.0 for phpBB 2.0.0
## 1.1.1 Modification of quick reply button (by Kage Musha)
############################################################## 


# 
#-----[ ACTION: OPEN FILE ]------------------------------------------ 
# 

/viewtopic.php 

# 
#-----[ ACTION: FIND ]------------------------------------------ 
# 

$post_img = ( $forum_row['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new']; 
$post_alt = ( $forum_row['forum_status'] == FORUM_LOCKED ) ? $lang['Forum_locked'] : $lang['Post_new_topic']; 

# 
#-----[ ACTION: AFTER, ADD ]------------------------------------------ 
# 

$quick_reply_img = ( $forum_row['forum_status'] == FORUM_LOCKED || $forum_row['topic_status'] == TOPIC_LOCKED ) ? $images['reply_locked'] : $images['quick_reply']; // Quick_Reply_MOD 
$quick_reply_alt = ( $forum_row['forum_status'] == FORUM_LOCKED || $forum_row['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['Quick_Reply_to_topic']; // Quick_Reply_MOD 

# 
#-----[ ACTION: FIND ]------------------------------------------ 
# 

   'POST_IMG' => $post_img, 
   'REPLY_IMG' => $reply_img, 

# 
#-----[ ACTION: AFTER, ADD ]------------------------------------------ 
# 
    
   "QUICK_REPLY_IMG" => $quick_reply_img, // Quick_Reply_MOD 
   "L_QUICK_REPLY_TOPIC" => $quick_reply_alt, // Quick_Reply_MOD 
   'L_EMPTY_MESSAGE' => $lang['Empty_message'], // Quick_Reply_MOD 
   "U_QUICK_REPLY" => "posting.$phpEx", // Quick_Reply_MOD 
   "U_HIDDEN_FORM_FIELDS" => ( ($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 . '" />' ), // Quick_Reply_MOD 

# 
#-----[ ACTION: SAVE & CLOSE FILE ]------------------------------------------ 
# 


# 
#-----[ ACTION: OPEN FILE ]------------------------------------------ 
# 

/templates/your_template/viewtopic_body.tpl 

# 
#-----[ ACTION: FIND ]------------------------------------------ 
# 

<table width="100%" cellspacing="2" border="0" align="center"> 
  <tr> 
   <td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span><br /> 
     &nbsp;<br /> 
     {S_TOPIC_ADMIN}</td> 
   <td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td> 
  </tr> 
</table> 

# 
#-----[ ACTION: REPLACE ]------------------------------------------ 
# 

<table width="100%" cellspacing="2" border="0" align="center"> 
  <tr> 
   <td width="40%" valign="top" nowrap="nowrap" align="left"> 
     <span class="gensmall">{S_WATCH_TOPIC}</span><br />&nbsp;<br />{S_TOPIC_ADMIN} 
   </td> 
  </tr> 
</table> 

<table width="100%" cellspacing="2" border="0" align="center"> 
  <tr> 
   <td valign="top" align="left"> 
     <form name="quick_reply" action="{U_QUICK_REPLY}" method="post"><!-- Quick_Reply_MOD --> 
      <!-- BEGIN quick_reply_anonymous --> 
      <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 quick_reply_anonymous --> 
      <textarea name="message" rows="7" cols="35" wrap="virtual" style="width:500px" class="post" onclick="{if(document.quick_reply.message.value=='{L_QUICK_REPLY_TOPIC}') document.quick_reply.message.value=''}">{L_QUICK_REPLY_TOPIC}</textarea><br /> 
      {U_HIDDEN_FORM_FIELDS} 
      <input type="image" src="{QUICK_REPLY_IMG}" border="0" alt="{L_QUICK_REPLY_TOPIC}" onClick="if(document.quick_reply.message.value == '{L_QUICK_REPLY_TOPIC}' || document.quick_reply.message.value == ''){ alert('{L_EMPTY_MESSAGE}'); return false;}else{ return true;}" /> 
     </form> 
   </td> 
   <td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td> 
  </tr> 
</table> 

# 
#-----[ ACTION: SAVE & CLOSE FILE ]------------------------------------------ 
# 


# 
#-----[ ACTION: OPEN FILE ]------------------------------------------ 
# 

/language/your_lang/lang_main.php 

# 
#-----[ ACTION:  FIND ]------------------------------------------ 
# 
$lang['Post_new_topic'] = "Post new topic"; 
$lang['Reply_to_topic'] = "Reply to topic"; 
$lang['Reply_with_quote'] = "Reply with quote"; 

# 
#-----[ ACTION:  ADD ]------------------------------------------ 
# 

$lang['Quick_Reply_to_topic'] = "Quick reply to topic"; // Quick_Reply_MOD 

# 
#-----[ ACTION: SAVE & CLOSE FILE ]------------------------------------------ 
#


# 
#-----[ ACTION: OPEN ]------------------------------------------ 
# 

templates/your_template/your_template.cfg 

# 
#-----[ ACTION: FIND ]------------------------------------------ 
# 

$images['reply_locked'] = "$current_template_images/{LANG}/reply-locked.gif"; 

# 
#-----[ ACTION: AFTER, ADD ]------------------------------------------ 
# 

$images['quick_reply'] = "$current_template_images/{LANG}/quick_reply.gif"; // Quick_Reply_MOD 

# 
#-----[ ACTION: SAVE & CLOSE FILE ]------------------------------------------ 
#


# 
#-----[ ACTION: UPLOAD ]------------------------------------------ 
# 

quick_reply.gif to templates/your_template/images/your_lang/ 

U can download this image Image and save as quick_reply.gif to be used. Or
u can downlaod quick_reply_sdk.zip and modify it to your language, the image is copyright to subBlue.

This mod is entirely packed into quick_reply_mod_1.1.1.zip

FINAL TEST and then it can be released
Last edited by OOHOO on Tue Apr 09, 2002 11:44 am, edited 1 time in total.

Setheus
Registered User
Posts: 95
Joined: Sat Jan 05, 2002 9:34 am

Post by Setheus » Tue Apr 09, 2002 5:48 am

Ohhoo dude, that file you just posted...what sites are using that? could you show me?

OOHOO
Registered User
Posts: 36
Joined: Tue Oct 30, 2001 1:56 pm
Location: AU
Contact:

Post by OOHOO » Tue Apr 09, 2002 6:59 am

Setheus wrote: Ohhoo dude, that file you just posted...what sites are using that? could you show me?


I just found that psd file, i think my site is the only one using this, hmm, maybe someother sites as well.
http://phpbb-tw.net/viewtopic.php?t=4984 (chinese)

Locked

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