[ Artemis ] PM Quick Reply

Specific instructions on how to apply certain mods to certain styles.

Moderator: Moderators

[ Artemis ] PM Quick Reply

Postby UseLess on Sun Jun 05, 2005 1:12 pm

Greetings,

A Quick Reply for the PM's...

Note: Extreme Styles Mod is required for this to work as PHP is used in the Template... (Thanks for pointing this out ThatBitExtra, I blame my age... ;) )

Code: Select all
#
#-----[ OPEN ]------------------------------------------
#

templates/Artemis/privmsgs_read_body.tpl

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

<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
   <td class="nav" align="left" valign="middle"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a></span></td>
</tr>
</table>
<br />

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

<?php

global $userdata, $board_config, $is_auth, $lang, $phpEx;

?>

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

     <td>{REPLY_PM_IMG}</td>

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

     <td>{REPLY_PM_IMG}&nbsp;<a href="javascript:ShowHide('quick_reply','quick_reply2');"><img src="{T_TEMPLATE_PATH}/images/lang_{LANG}/quick_reply.gif" border="0" alt="{CA_QR_BUTTON}" /></a></td>

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

   </tr>
</table>
</form>

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

<div id="quick_reply" style="display: none; position: relative; "><form action="{S_PRIVMSGS_ACTION}" method="post" name="post" style="display: inline;">{S_HIDDEN_FIELDS}{TPL_HDR1}{CA_QR_BUTTON}{TPL_HDR2}<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
   <td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>
   <td class="row2"><span class="genmed"><input type="text"  class="post" name="username" maxlength="25" size="25" tabindex="1" value="{MESSAGE_FROM}" />&nbsp;<input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'height=200,width=400,resizable=yes');return false;" /></span></td>
</tr>
<tr>
   <td class="row1" width="200" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Subject']; ?>:</b></span></td>
   <td class="row2" width="100%"><input type="text" name="subject" size="45" maxlength="60" style="width:98%" tabindex="2" class="post" value="Re: {POST_SUBJECT}" /></td>
</tr>
<tr>
   <td class="row" width="200" nowrap="nowrap" valign="top"><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="row" width="100%"><table width='100%' cellspacing='2' cellspacing='3'>
                <tr>
                   <td colspan='2'><textarea name="message" rows="15" cols="35" wrap="virtual" style="width:98%" tabindex="3" class="post"></textarea></td>
                </tr>
                </table>
</tr>
<tr>
   <td class="row1" valign="top" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Options']; ?>:</b></span></td>
   <td class="row2"><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" align="center" height="25"><input type="hidden" name="sid" value="<?php echo $userdata['session_id']; ?>" /><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="mainoption" value="<?php echo $lang['Preview']; ?>" /></td>
</tr>
</table>{TPL_FTR}</form></div>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Last edited by UseLess on Sun Jun 05, 2005 2:15 pm, edited 1 time in total.
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 Thatbitextra on Sun Jun 05, 2005 1:20 pm

Looks good :)
Now the MorpheusX one I let pass, but for this one, you're going to have to say XS is required ;)
My MODs: [NEW] Choose Who to Accept PMs From (Prevents you from receiving unwanted PMs!) | Warn of Old Topic Before Posting Reply
Style: subBlack (Now updated to phpBB 2.0.22 and 5 new color schemes!)

Please note, I do NOT offer support via PM. It's a forum, so post your question, then everyone can help.
User avatar
Thatbitextra
Moderator
Moderator
 
Posts: 1821
Joined: Thu Mar 24, 2005 1:11 pm
Location: A place where something is or could be located; a site.

Postby God's Favorite on Sat Jul 22, 2006 1:20 am

I am confused about this hack...I think I have done everything properly, seemed simple enough, but when I go to do the quick reply in PM, it looks like this:

Image

Here is a copy of my file, please excuse any negligent errors, but I really have looked over it and can't see what I may have done wrong...

http://www.tehserver.net/php/privmsgs_read_body.phps
User avatar
God's Favorite
Registered User
Registered User
 
Posts: 105
Joined: Sun Jul 03, 2005 6:36 am

Postby UseLess on Sat Jul 22, 2006 2:33 am

Greetings,

Read this: viewtopic.php?t=9610 it may have the solution you seek.
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 God's Favorite on Sat Jul 22, 2006 5:27 am

Well, I followed as best I could, but those instructions were for a different style...But, something changed, now I have this:

Image
User avatar
God's Favorite
Registered User
Registered User
 
Posts: 105
Joined: Sun Jul 03, 2005 6:36 am

Postby brandsrus on Sat Jul 22, 2006 7:56 am

Have you my solution added in privmsg?

That is the great function to solve this problem!
brandsrus
Registered User
Registered User
 
Posts: 115
Joined: Fri Jan 06, 2006 6:08 am
Location: Leeuwarden, The Netherlands

Postby God's Favorite on Sat Jul 22, 2006 8:00 am

If you mean the suggestions that you had in the previous mentioned thread, yes....

http://www.tehserver.net/php/privmsg.phps
User avatar
God's Favorite
Registered User
Registered User
 
Posts: 105
Joined: Sun Jul 03, 2005 6:36 am

Postby brandsrus on Sat Jul 22, 2006 8:16 am

Have you your privemsg_read_body.tpl?

Can i see what you do wrong!
brandsrus
Registered User
Registered User
 
Posts: 115
Joined: Fri Jan 06, 2006 6:08 am
Location: Leeuwarden, The Netherlands

Postby God's Favorite on Sat Jul 22, 2006 8:20 am

I already posted that file a few posts up...

viewtopic.php?p=79490#79490
User avatar
God's Favorite
Registered User
Registered User
 
Posts: 105
Joined: Sun Jul 03, 2005 6:36 am


Return to How to mod some styles

Who is online

Users browsing this forum: No registered users and 2 guests

cron