[Aphrodite] Attachment Mod

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

Moderator: Moderators

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

Postby noblesin on Sun Dec 11, 2005 2:49 am

Can someone please upload the .tpl files for this style for Attachment mod? I installed the Attachment mod, but it doesn't include the .tpl files for this style.

I do realize they're pasted here and there in this thread, but I would really appreciate it if someone could upload the files in a .zip or something.

Thank you!!
noblesin
Registered User
Registered User
 
Posts: 1
Joined: Sun Dec 11, 2005 2:47 am

Postby UseLess on Sun Dec 11, 2005 12:55 pm

Greetings,

Steve4820: Yes it matters.. open the file 'viewtopic_body.tpl' and find;

Code: Select all
<div class="post-text"> 
           {postrow.MESSAGE}


which will get you in the area and then add the bit to display the attachment, or change the whole 'div' tag so it matches the code snippet you posted above.
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 steve4820 on Sun Dec 11, 2005 6:19 pm

That's what I needed. Thank you very much. Wanted to try the style on my board but wasn't getting the code inserted correctly -- kept making a mess. :?
steve4820
Registered User
Registered User
 
Posts: 3
Joined: Thu Dec 08, 2005 11:44 pm

Postby steve4820 on Sun Dec 11, 2005 6:29 pm

[quote user="noblesin" post="60284"]Can someone please upload the .tpl files for this style for Attachment mod? I installed the Attachment mod, but it doesn't include the .tpl files for this style.

I do realize they're pasted here and there in this thread, but I would really appreciate it if someone could upload the files in a .zip or something.

Thank you!![/quote]

Go back a couple of pages to the post by floynel on Aug 12 -- there is a link there. You will still need viewtopic_body but UseLess has posted an update for that.
steve4820
Registered User
Registered User
 
Posts: 3
Joined: Thu Dec 08, 2005 11:44 pm

Postby Tufan on Sun Jan 01, 2006 1:59 am

Hi Evey Body

I Have Some Questions

File Name : privmsgs_body.tpl

Code: Select all
#
#-----[ FIND ]---------------------------------------------
# around line 15
<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%">
  <tr>

#
#-----[ AFTER, ADD ]---------------------------------------
#
   <td align="right">
   <!-- BEGIN switch_box_size_notice -->
   <table width="175" cellspacing="1" cellpadding="2" border="0" class="bodyline">
   <tr>
      <td colspan="3" width="175" class="row1" nowrap="nowrap"><span class="gensmall">{ATTACH_BOX_SIZE_STATUS}</span></td>
   </tr>
   <tr>
      <td colspan="3" width="175" class="row2">
         <table cellspacing="0" cellpadding="1" border="0">
         <tr>
            <td bgcolor="{T_TD_COLOR2}"><img src="templates/subSilver/images/spacer.gif" width="{ATTACHBOX_LIMIT_IMG_WIDTH}" height="8" alt="{ATTACH_LIMIT_PERCENT}" /></td>
         </tr>
         </table>
      </td>
   </tr>
   <tr>
      <td width="33%" class="row1"><span class="gensmall">0%</span></td>
      <td width="34%" align="center" class="row1"><span class="gensmall">50%</span></td>
      <td width="33%" align="right" class="row1"><span class="gensmall">100%</span></td>
   </tr>
   </table>
   <!-- END switch_box_size_notice -->
   </td>



find this code but not found :S:S:S
Tufan
Registered User
Registered User
 
Posts: 1
Joined: Sun Jan 01, 2006 1:56 am

Profile View Body.tpl

Postby groundfighter on Sun Jan 08, 2006 12:12 am

Small formatting problem, can anyone help?

Image
User avatar
groundfighter
Registered User
Registered User
 
Posts: 504
Joined: Sun Feb 06, 2005 12:20 am
Location: Las Vegas

Postby Jeevan25 on Tue Jan 17, 2006 1:31 am

i did as told but well here is the error. http://tamilfx.info/phpBB/viewtopic.php?t=1
pls help me. here is how it looks:
Code: Select all
<!-- BEGIN postrow -->
<?php

// check if quick reply is enabled
global $userdata, $board_config, $topic_id, $is_auth, $forum_topic_data, $lang, $phpEx;

$can_reply = $userdata['session_logged_in'] ? true : false;
if($can_reply)
{
        $is_auth_type = 'auth_reply';
        if(!$is_auth[$is_auth_type])
        {
                $can_reply = false;
        }
        elseif ( ($forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED) && !$is_auth['auth_mod'] )
        {
                $can_reply = false;
        }
}
if($can_reply)
{
        $this->assign_block_vars('xs_quick_reply', array());
}

$prev_id = false;
$postrow_count = ( isset($this->_tpldata['postrow.']) ) ?  sizeof($this->_tpldata['postrow.']) : 0;
for ($postrow_i = 0; $postrow_i < $postrow_count; $postrow_i++)
{
        $postrow_item = &$this->_tpldata['postrow.'][$postrow_i];
        // set profile link and search button
        if(!empty($postrow_item['PROFILE']) && strpos($postrow_item['POSTER_NAME'], '<') === false)
        {
                $postrow_item['SEARCH_IMG2'] = str_replace('%s', htmlspecialchars($postrow_item['POSTER_NAME']), $postrow_item['SEARCH_IMG']);
                $search = array($lang['Read_profile'], '<a ');
                $replace = array($postrow_item['POSTER_NAME'], '<a class="post-name" ');
                $postrow_item['POSTER_NAME'] = str_replace($search, $replace, $postrow_item['PROFILE']);
        }
        // check for new post
        $new_post = strpos($postrow_item['MINI_POST_IMG'], '_new') > 0 ? true : false;
        $postrow_item['XS_NEW'] = $new_post ? '-new' : '';
        // fix text
        $search = array('  ', "\t", "\n ");
        $replace = array('&nbsp;&nbsp;', '&nbsp;&nbsp;&nbsp;&nbsp;', "\n&nbsp;");
        $postrow_item['MESSAGE'] = str_replace($search, $replace, $postrow_item['MESSAGE']);
        // set prev/next post links
        $next_id = $postrow_i == ($postrow_count - 1) ? false : $this->_tpldata['postrow.'][$postrow_i + 1]['U_POST_ID'];
        if($next_id !== false || $prev_id !== false)
        {
                $str = '<div style="width: 10px; height: 9px; float: left; margin-right: 3px; margin-top: 1px;">';
                if($prev_id)
                {
                        $str .= '<a href="#' . $prev_id . '"><img src="templates/ca_aphrodite/images/post_prev.gif" width="9" height="5" alt="" /></a>';
                }
                else
                {
                        $str .= '<img src="templates/ca_aphrodite/images/spacer.gif" width="9" height="5" alt="" />';
                }
                $str .= '<br />';
                if($next_id)
                {
                        $str .= '<a href="#' . $next_id . '"><img src="templates/ca_aphrodite/images/post_next.gif" width="9" height="5" alt="" /></a>';
                }
                else
                {
                        $str .= '<img src="templates/ca_aphrodite/images/spacer.gif" width="9" height="5" alt="" />';
                }
                $str .= '</div>';
                $postrow_item['ARROWS'] = $str;
        }
        $prev_id = $postrow_item['U_POST_ID'];
#
#    ob_start();
# ?>
# {postrow.ATTACHMENTS}
# <?php
#    $postrow_item['ATTACHMENTS'] = ob_get_contents();
#    ob_end_clean();
}
# ?>
# <!-- END postrow -->
#
# <?php 

// show quick reply
if($can_reply)
{
        // quick reply button
        global $images;
        $this->vars['CA_QUICK_REPLY_BUTTON'] = '<a href="javascript:ShowHide(\'quick_reply\',\'quick_reply2\');"><img src="' . $images['quick_reply'] . '" alt="' . $lang['Post_a_reply'] . '" /></a>';
        // quick reply form
        ob_start();
        ?>
<div id="quick_reply" style="display: none; position: relative; "><form action="<?php echo append_sid('posting.'.$phpEx); ?>" method="post" name="post" style="display: inline;">{S_HIDDEN_FIELDS}<table class="forumline" width="100%" cellspacing="0">
<tr>
        <td class="row-header" colspan="2"><span><?php echo $lang['Post_a_reply']; ?></span></td>
</tr>
<tr>
        <td class="row1" align="left" width="200" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Subject']; ?>:</b></span></td>
        <td class="row2" align="left" width="100%"><input type="text" name="subject" size="45" maxlength="60" style="width:98%" tabindex="2" class="post" value="" /></td>
</tr>
<tr>
        <td class="row1" align="left" width="200" nowrap="nowrap"><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="row2" align="left" width="100%"><textarea name="message" rows="15" cols="35" style="width:98%" tabindex="3" class="post"></textarea><br />
                          <img src="templates/ca_aphrodite/images/icon_reply.gif" alt="" /> <a href="javascript:void(0);" onclick="window.open('http://www.postimage.org/index.php?mode=phpbb&tpl=' + 'ca_aphrodite' + '&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;">Add image to post</a></td>
</tr>
<tr>
        <td class="row1" align="left" valign="top" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Options']; ?>:</b></span></td>
        <td class="row2" align="left"><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"> <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="liteoption" value="<?php echo $lang['Preview']; ?>" /></td>
</tr>
</table></form></div>
        <?php
        $str = ob_get_contents();
        ob_end_clean();
        $this->vars['CA_QUICK_REPLY_FORM'] = $str;
}

?>
<!-- INCLUDE viewtopic_body.tpl -->
Jeevan25
Registered User
Registered User
 
Posts: 11
Joined: Sat Dec 24, 2005 6:29 am

Re: Profile View Body.tpl

Postby MrBass on Tue Jan 17, 2006 8:13 am

[quote user="groundfighter" post="63596"]Small formatting problem, can anyone help?

Image[/quote]

That's a bug within IE. There's known issues when using rowspan and CSS files. I spent many an hour trying several different things but still couldn't get it to render properly,

Simple fix - use a decent browser like Opera! :wink:
MrBass
The heart has reasons that reason cannot know. --Pascal

Pete's Place | Pete's Forum
Latest MOD: File Upload Manager Installation guide coming soon...
User avatar
MrBass
Moderator
Moderator
 
Posts: 711
Joined: Thu Feb 17, 2005 2:06 pm
Location: Pete's Place

Strange error with Att Mod (Aphrodite).

Postby pony9a on Sat Feb 04, 2006 11:22 am

Hi there,
I wonder if someone can help me with this error I get when I try to add an attachment to my posts?
This is only affecting me (owner and admin) not the members of my board.

Warning: passthru() has been disabled for security reasons in /mounted-storage/home12/sub001/sc14957-CICA/www/attach_mod/includes/functions_thumbs.php on line 166

Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home12/sub001/sc14957-CICA/www/attach_mod/includes/functions_thumbs.php:166) in /mounted-storage/home12/sub001/sc14957-CICA/www/includes/page_header.php on line 487

Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home12/sub001/sc14957-CICA/www/attach_mod/includes/functions_thumbs.php:166) in /mounted-storage/home12/sub001/sc14957-CICA/www/includes/page_header.php on line 489

Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home12/sub001/sc14957-CICA/www/attach_mod/includes/functions_thumbs.php:166) in /mounted-storage/home12/sub001/sc14957-CICA/www/includes/page_header.php on line 490


Does anyone know what this is and how I go about fixing it?
I am a complete newbie to phpbb and Aphrodite so can you keep it simple for me please.
I am getting desperate as this has been a problem for days now and as admin of the board I need to be able to keep my members happy and at the moment its a real problem.
Thanks folks
pony9a
pony9a
Registered User
Registered User
 
Posts: 4
Joined: Fri Feb 03, 2006 8:25 pm

Postby romans1423 on Sun Feb 05, 2006 1:05 am

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

Do this;

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

templates/ca_aphrodite/xs/xs_privmsgread.tpl

[/quote]

I'm using Aphrodite 1.4 and I don't seem to have an /ca_aphrodite/xs/xs_privmsgread.tpl file... Should I have? I downloaded the Aphrodite ZIP from here and it wasn't included.
romans1423
Registered User
Registered User
 
Posts: 11
Joined: Tue Aug 02, 2005 4:38 am

Postby KugeLSichA on Mon Feb 20, 2006 5:50 am

Hi there,

i have an problem with Aphrodite style and attachment mod adaption for CH mod

Posted attachments wasnt shown in the posting, but in the viewforum i see the attachment attribute...

now my question, is there an aphrodite pack for attachment mod.. i searched many forums but didnt find one, so i toke the original subSilver files from attachment mod adaption, an did the change written in this forum...

right or wrong ? if wrong and there are an downloadpack, where can i download this ?

and also i have a problem with including the code to xs_topic.tpl ... i´m not sure i have included the code in the right way..

pls help.. thanks :)
User avatar
KugeLSichA
Registered User
Registered User
 
Posts: 30
Joined: Fri Oct 07, 2005 7:43 pm
Location: Germany / Saxony

Postby brandsrus on Mon Feb 20, 2006 11:15 am

I must unscript the fix from Useless :D.

That have you not needed :wink:
brandsrus
Registered User
Registered User
 
Posts: 115
Joined: Fri Jan 06, 2006 6:08 am
Location: Leeuwarden, The Netherlands

Postby UseLess on Mon Feb 20, 2006 12:25 pm

Greetings,

Pony9a: This is the problem;

Warning: passthru() has been disabled for security reasons


which means you probably won't be able to upload images and also create a thumbnail of them... as the passthru() command does this;

PHP Manual wrote:The passthru() function is similar to the exec() function in that it executes a command. This function should be used in place of exec() or system() when the output from the Unix command is binary data which needs to be passed directly back to the browser. A common use for this is to execute something like the pbmplus utilities that can output an image stream directly. By setting the Content-type to image/gif and then calling a pbmplus program to output a gif, you can create PHP scripts that output images directly.


romans1243: that post was directed at someone directly as they installed the PM Quick Reply and couldn't see PM attachments. If you don't have that mod installed then you won't have the file mentioned.
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

PreviousNext

Return to How to mod some styles

Who is online

Users browsing this forum: No registered users and 2 guests

cron