[Aphrodite] Attachment Mod

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

Moderator: Moderators

Postby PostBot on Sat Sep 17, 2005 6:59 pm

You are using Aphrodite style downloaded from phpbb.com. It is a stripped down version of normal Aphrodite style and it doesn't have "xs" directory. So you don't have to do fancy editing in any tpl files but you also don't have any additional features of full style.
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby gamezelda on Sat Sep 17, 2005 11:16 pm

Hy,

There have a fast form of "upgrade" phpBB downloaded style to this???

I have a lot of mods...
User avatar
gamezelda
Registered User
Registered User
 
Posts: 19
Joined: Wed Jul 13, 2005 4:31 pm

Postby DooBDee on Sun Sep 18, 2005 9:41 am

Hi,

You will need to apply all the MOD's to your new template.
DooBDee
Website Ninja
DooBDee.net
User avatar
DooBDee
Moderator
Moderator
 
Posts: 3530
Joined: Tue Mar 01, 2005 6:28 pm
Location: DooBDee.net

Postby Carrie on Sun Oct 02, 2005 1:56 am

[quote user="thebes" post="45202"]I figured this thread would be an acceptable spot to ask my question/post my problem....

First off, I have successfully modded subSilver with attach mod, so I know how to follow directions. However, I am trying to mod Aphrodite with attach mod, and the only file I'm having trouble with is viewtopic_body.tpl since this is the only file where there are distinct changes from subSilver for which the instructions are written. The problem is that after I successfully attach the file, it shows up everywhere but in the topic. The following is the part of the mod I am trying to place into aphrodite:

Code: Select all
#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]---------------------------------------------
# around line 39
            <td colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>

#
#-----[ IN-LINE FIND ]---------------------------------------------
# around line 39 (directly in that line)
{postrow.SIGNATURE}

#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------------
#
</span>{postrow.ATTACHMENTS}<span class="postbody">


And the respective code in aphrodite is:

Code: Select all
      <div class="post-text">
         {postrow.MESSAGE}<br /><br />
         <span class="gensmall">{postrow.EDITED_MESSAGE}</span>
         {postrow.SIGNATURE}
      </div>


I have tried inserted the required code in many places, but no matter what I do, the attachment doesn't show up when I view the topic (it shows up everywhere else). Any help would be greatly appreciated. Thanks![/quote]

I was just wondering if anyone has come up with a solution to this problem yet? Thanks!
User avatar
Carrie
Registered User
Registered User
 
Posts: 7
Joined: Thu Feb 05, 2004 5:27 pm
Location: USA

Postby UseLess on Sun Oct 02, 2005 2:15 am

Greetings,

Changes for 'viewtopic_body.tpl';

Code: Select all
      <div class="post-text">
         {postrow.MESSAGE}<br /><br />{postrow.ATTACHMENTS}
         <span class="gensmall">{postrow.EDITED_MESSAGE}</span>
         {postrow.SIGNATURE}
      </div>


As well as the changes detailed in the first post that should be made to 'xs/xs_topic.tpl'.
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 Carrie on Sun Oct 02, 2005 2:34 am

Thanks for the code. :)

I was able to figure it out before I saw your reply. I just added the code like below (in bold) and also made the changes to the xs/xs_topic.tpl.

<div class="post-text">
{postrow.MESSAGE}<br /><br />
<span class="gensmall">{postrow.EDITED_MESSAGE}</span>
</span>{postrow.ATTACHMENTS}<span class="postbody">{postrow.SIGNATURE}
</div>


I guess either way will work.
User avatar
Carrie
Registered User
Registered User
 
Posts: 7
Joined: Thu Feb 05, 2004 5:27 pm
Location: USA

Postby Carrie on Sun Oct 02, 2005 1:53 pm

Oops...I see what you mean. Thanks for the tip. :)
User avatar
Carrie
Registered User
Registered User
 
Posts: 7
Joined: Thu Feb 05, 2004 5:27 pm
Location: USA

Postby Greyface on Sat Dec 03, 2005 6:36 am

I have installed this mod and everything is working... except I can not see the attached document in a private message. When looking at my inbox I can see a message with the paper clip indicating that there is an attachment but when I go into the message itself no attachments are visable. What files should I be looking at to track down this issue?

Thanks
Greyface
Registered User
Registered User
 
Posts: 15
Joined: Wed Oct 06, 2004 1:14 am

Postby UseLess on Sat Dec 03, 2005 3:45 pm

Greetings,

Check the settings to make sure you have allowed enough space for the attached file, in PM's I think the default is 256kb.
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 Greyface on Sat Dec 03, 2005 8:16 pm

Thanks UseLess, I have doubled checked my settings and you are correct, 256kb is the max so I have tried with a small avatar I created. It shows up in a normal post, it even shows in a pm preview. But when I click sumbit and go and view the pm, nothing is showing. I have been using the same file for testing in messages and pm so I know it is an allowed document. What file governs how a pm is displayed when clicking on it in the inbox. Like I mentioned it shows up in a preview...

Attached is the image I have been using.

Image
Greyface
Registered User
Registered User
 
Posts: 15
Joined: Wed Oct 06, 2004 1:14 am

Postby UseLess on Sat Dec 03, 2005 8:44 pm

Greetings,

Do you have this;

Code: Select all
      <!-- BEGIN postrow -->
      {ATTACHMENTS}
      <!-- END postrow -->


in 'privmsgs_read_body.tpl'
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 Greyface on Sat Dec 03, 2005 8:56 pm

Good afternoon,

Yes, this is my 'privmsgs_read_body.tpl'

Code: Select all
<div class="forumline nav-div">
   <p class="nav-header">
      <a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_PRIVATEMSGS}" class="nav-current">{L_PRIVATEMSGS}</a>
   </p>
   <div class="nav-links">
      <div class="nav-links-left">
         {CURRENT_TIME}
      </div>
      &nbsp;
   </div>
</div>

<table cellspacing="2" cellpadding="2" border="0" align="center">
  <tr>
  <td><span class="forumlink">{INBOX} &nbsp;</span></td>
  <td><span class="forumlink">{SENTBOX} &nbsp;</span></td>
  <td><span class="forumlink">{OUTBOX} &nbsp;</span></td>
  <td><span class="forumlink">{SAVEBOX} &nbsp;</span></td>
  </tr>
</table>

<br />

<form method="post" action="{S_PRIVMSGS_ACTION}">
{S_HIDDEN_FIELDS}

<table width="100%" cellspacing="0" cellpadding="0" border="0">
  <tr>
     <td align="left" valign="middle">{REPLY_PM_IMG} <!-- BEGIN xs_quick_reply -->{CA_QUICK_REPLY_BUTTON}<!-- END xs_quick_reply --></td>
  </tr>
</table>

<table cellspacing="0" width="100%" class="forumline">
<tr>
   <td colspan="2" class="row-header"><span>{POST_SUBJECT}</span></td>
</tr>
<tr>
   <th width="150">{L_AUTHOR}</th>
   <th>{L_MESSAGE}</th>
</tr>
<tr>
   <td class="row-post-author">
      <span class="post-name">{MESSAGE_FROM}</span><br />
      <div class="post-details">{L_POSTED}: {POST_DATE}</div><br />
      <img src="templates/ca_aphrodite/images/spacer.gif" width="150" height="1" alt="" />
   </td>
   <td class="row-post" width="100%">
      <div class="post-buttons-top post-buttons"><span class="img-main">{QUOTE_PM_IMG}</span> {EDIT_PM_IMG}</div>
      <div class="post-subject">{POST_SUBJECT}&nbsp;</div>
      <div class="post-text">{MESSAGE}</div>
      <!-- BEGIN postrow -->
      {ATTACHMENTS}
      <!-- END postrow -->
   </td>
</tr>
<tr>
   <td class="row-post-date">&nbsp;</td>
   <td class="row-post-buttons post-buttons"><span class="img-main">{PROFILE_IMG}</span> {PM_IMG} {EMAIL_IMG} {WWW_IMG} {AIM_IMG} {YIM_IMG} {MSN_IMG} {ICQ_IMG}</td>
</tr>
<tr>
   <td class="spaceRow" colspan="2"><img src="templates/ca_aphrodite/images/spacer.gif" width="1" height="3" alt="" /></td>
</tr>
<tr>
   <td class="catBottom" colspan="2"><input type="submit" name="save" value="{L_SAVE_MSG}" class="liteoption" />&nbsp;<input type="submit" name="delete" value="{L_DELETE_MSG}" class="liteoption" />
   <!-- BEGIN switch_attachments -->
   &nbsp;
   <input type="submit" name="pm_delete_attach" value="{L_DELETE_ATTACHMENTS}" class="liteoption" />
   <!-- END switch_attachments -->
   </td>
</tr>
</table>

<table width="100%" cellspacing="0" class="empty-table">
<tr>
   <td align="left">{REPLY_PM_IMG} <!-- BEGIN xs_quick_reply -->{CA_QUICK_REPLY_BUTTON}<!-- END xs_quick_reply --></td>
   <td align="right" valign="top" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span></td>
</tr>
</table>
</form>
{CA_QUICK_REPLY_FORM}

<table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
  <tr>
   <td valign="top" align="right"><span class="gensmall">{JUMPBOX}</span></td>
  </tr>
</table>

Greyface
Registered User
Registered User
 
Posts: 15
Joined: Wed Oct 06, 2004 1:14 am

Postby UseLess on Sat Dec 03, 2005 9:56 pm

Greetings,

Do this;

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

templates/ca_aphrodite/xs/xs_privmsgread.tpl

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

<!-- INCLUDE privmsgs_read_body.tpl -->

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

<!-- BEGIN postrow -->
<?php
   ob_start();     
?>
{ATTACHMENTS}
<?php     
   $str = ob_get_contents();
   ob_end_clean();
   $postrow_item['ATTACHMENTS'] = $str;     
?>
<!-- END postrow -->

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

templates/ca_aphrodite/privmsgs_read_body.tpl

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

      <!-- BEGIN postrow -->
      {ATTACHMENTS}
      <!-- END postrow -->

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

      <!-- BEGIN postrow -->
      {postrow.ATTACHMENTS}
      <!-- END postrow -->

#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------------------
#
# EoM
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 Greyface on Sat Dec 03, 2005 10:03 pm

Many Thanks UseLess, that did the trick.
Greyface
Registered User
Registered User
 
Posts: 15
Joined: Wed Oct 06, 2004 1:14 am

Postby steve4820 on Thu Dec 08, 2005 11:51 pm

[quote user="UseLess" post="52288"]Greetings,

Changes for 'viewtopic_body.tpl';

Code: Select all
      <div class="post-text">
         {postrow.MESSAGE}<br /><br />{postrow.ATTACHMENTS}
         <span class="gensmall">{postrow.EDITED_MESSAGE}</span>
         {postrow.SIGNATURE}
      </div>


As well as the changes detailed in the first post that should be made to 'xs/xs_topic.tpl'.[/quote]

Does it matter where this code is inserted? Can someone point me in the right direction with it?

Thanks,
Steve
steve4820
Registered User
Registered User
 
Posts: 3
Joined: Thu Dec 08, 2005 11:44 pm

PreviousNext

Return to How to mod some styles

Who is online

Users browsing this forum: No registered users and 1 guest