Remove gap between posts

Conventional discussion only. No politics, religion and other topics that might cause conflicts.
Strictly appropriate discussions only, meaning spammers and trolls will be banned on first offense.

Moderator: Moderators

Remove gap between posts

Postby corona2k on Sat May 05, 2007 6:40 am

Hi

I'm working on a new skin for phpBB 2 and i was wondering how i can make the posts in a thread show without a gap between them?
Make them show like in IPB...no gap between them.

Thanks
User avatar
corona2k
Registered User
Registered User
 
Posts: 9
Joined: Sat May 05, 2007 6:31 am

Postby corona2k on Sun May 06, 2007 4:46 pm

Nobody knows how?
Or is it not possible?
User avatar
corona2k
Registered User
Registered User
 
Posts: 9
Joined: Sat May 05, 2007 6:31 am

Postby DoubleJ on Sun May 06, 2007 6:55 pm

what do you mean with a gap?
It never hurts to help.....
[ My phpBB Mods and Styles ]
My Mod: [ Simple Shoutbox Mod ]
[ DoubleJWeb ] [ Get Opera ]
User avatar
DoubleJ
Moderator
Moderator
 
Posts: 716
Joined: Sat Jan 22, 2005 9:58 pm
Location: DoubleJWeb.Net

Postby Disturbed One on Sun May 06, 2007 9:02 pm

Can you please post a link to your forum so we can take a look at it for you?
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby corona2k on Mon May 07, 2007 2:28 am

Well i'm working on the skin from another skin and it has a gap between posts when watching a thread:
Image

I was just wondering how do i remove that gap...and of course how do you make it in case i want to add it in another skin.
Basically i want it right now to be the same like in this forum. Posts are continually shown without any gap or space between them and without that title bar for each post.
Sorry for not giving a URL and that cuz i'm still working on it on my local pc.
User avatar
corona2k
Registered User
Registered User
 
Posts: 9
Joined: Sat May 05, 2007 6:31 am

Postby Disturbed One on Mon May 07, 2007 2:48 am

Can you please post the posting_body.tpl for your template?
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby corona2k on Mon May 07, 2007 6:01 am

Here you go. And thanks for helping.

Code: Select all
http://rapidshare.com/files/29925919/posting_body.rar.html
User avatar
corona2k
Registered User
Registered User
 
Posts: 9
Joined: Sat May 05, 2007 6:31 am

Postby Splinter on Mon May 07, 2007 6:54 am

Hi,

Thats the wrong file. You need viewtopic_body.tpl and the best way to do it would be to copy the entire contents of the file and paste it into a post here making sure to put it between code tags.
User avatar
Splinter
Coder
Coder
 
Posts: 483
Joined: Sun Feb 20, 2005 10:12 pm
Location: Nottingham, UK

Postby corona2k on Mon May 07, 2007 7:59 am

OK here you go:
Code: Select all
<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
   <td class="nav" align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
   <td class="nav navform" align="right" valign="middle" nowrap="nowrap"><span class="nav"><form action="{CA_SEARCH_INDEX}" method="post" style="display: inline;"><input type="hidden" name="show_results" value="topics" /><input type="hidden" name="search_forum" value="{CA_SEARCH_FORUM}" />
   <input type="text" name="search_keywords" class="post" size="15" />
   <input type="submit" value="{L_SEARCH}" class="mainoption" />
   </form></span></td>
</tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
    <td align="left" valign="middle"><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></td>
    <td align="right" valign="middle"><div class="pagination">{PAGINATION}</div></td>
  </tr>
</table>

{POLL_DISPLAY}

<!-- BEGIN switch_xs_enabled -->
<?php

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

if(!isset($can_reply))
{
   $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());
   }
}

$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="name" ');
      $postrow_item['POSTER_NAME'] = str_replace($search, $replace, $postrow_item['PROFILE']);
   }
}
?>
<!-- END switch_xs_enabled -->
<!-- BEGIN postrow -->
<a name="{postrow.U_POST_ID}"></a>
{TPL_HDR1}{postrow.POST_SUBJECT}{TPL_HDR2}<table border="0" cellpadding="0" cellspacing="0" width="100%" class="forumline forumline2">
<tr>
   <td width="150" class="post-left" align="center" valign="top" rowspan="2">
      <div style="padding: 3px;"><span class="name">{postrow.POSTER_NAME}</span><br /></div>
      <div style="padding: 2px;"><span class="postrank">{postrow.POSTER_RANK}</span><br /></div>
      {postrow.RANK_IMAGE}
      <div style="width: 140px; margin: auto; overflow: hidden">{postrow.POSTER_AVATAR}</div>
      <br />
      <table width="100%" cellspacing="5" cellpadding="0">
         <tr><td align="left"><span class="postdetails">{postrow.POSTER_JOINED}</span></td></tr>
         <tr><td align="left"><span class="postdetails">{postrow.POSTER_POSTS}</span></td></tr>
         <tr><td align="left"><span class="postdetails">{postrow.POSTER_FROM}</span></td></tr>
      </table>
      <img src="{T_TEMPLATE_PATH}/images/spacer.gif" width="150" height="1" border="0" alt="" />
   </td>
   <td class="row" valign="top"><table width="100%" cellspacing="0" cellpadding="2" border="0" class="post-top">
   <tr>
      <td width="50%" align="left"><span class="postdate"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a> {L_POSTED}: {postrow.POST_DATE}</span></td>
      <td width="50%" align="right" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td>
   </tr>
   </table><div class="postbody">{postrow.MESSAGE}</div></td>
</tr>
<tr>
   <td align="left" valign="bottom" class="row">
   <div style="padding: 5px;" class="postbody"><span class="signature"><span class="gensmall">{postrow.EDITED_MESSAGE}</span>{postrow.SIGNATURE}</span></div>
   <table width="100%" border="0" cellspacing="0" cellpadding="2" class="post-bottom">
   <tr>
      <td nowrap="nowrap">{postrow.PROFILE_IMG} {postrow.SEARCH_IMG2} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG} {postrow.ICQ_IMG}</td>
   </tr>
   </table></td>
</tr>
</table>{TPL_FTR}
<!-- END postrow -->

{TPL_HDR1}<a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}{TPL_HDR2}<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
   <td class="row" align="left" valign="top">
   <table border="0" cellspacing="0" cellpadding="5" width="100%">
   <tr>
      <td align="left" valign="top">
         <span class="gensmall">{S_AUTH_LIST}</span>
      </td>
      <td align="right" valign="top">
         <span class="gensmall">{S_TIMEZONE}&nbsp;&nbsp;<br />
         {PAGE_NUMBER}&nbsp;&nbsp;</span>
         <div class="pagination">{PAGINATION}</div><br />
         <span class="gensmall">{S_WATCH_TOPIC}</span>
      </td>
   </tr>
   </table>
   </td>
</tr>
<tr>
   <td class="catBottom" align="center" valign="middle" nowrap="nowrap"><table border="0" cellspacing="0" cellpadding="2" width="100%">
   <tr>
      <form method="post" action="{S_POST_DAYS_ACTION}" style="display: inline;"><td align="left" valign="middle" nowrap="nowrap">{S_SELECT_POST_DAYS}&nbsp;{S_SELECT_POST_ORDER}&nbsp;<input type="submit" value="{L_GO}" class="liteoption" name="submit" /></td></form>
      <td align="right" valign="middle" nowrap="nowrap">{JUMPBOX}</td>
   </tr>
   </table>
   </td>
</tr>
</table>{TPL_FTR}

<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
   <td class="nav" align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
   <td class="nav navform" align="right" valign="middle" nowrap="nowrap"><span class="nav"><form action="{CA_SEARCH_INDEX}" method="post" style="display: inline;"><input type="hidden" name="show_results" value="topics" /><input type="hidden" name="search_forum" value="{CA_SEARCH_FORUM}" />
   <input type="text" name="search_keywords" class="post" size="15" />
   <input type="submit" value="{L_SEARCH}" class="mainoption" />
   </form></span></td>
</tr>
</table>

<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
   <td align="left" valign="top" style="padding-top: 5px; padding-bottom: 5px;">&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a>
   <!-- BEGIN xs_quick_reply -->
   &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}" align="middle" /></a>
   <!-- END xs_quick_reply -->
   </td>
   <td align="right" valign="top" style="padding-top: 5px;">{S_TOPIC_ADMIN}&nbsp;</td>
</tr>
</table>

<!-- BEGIN xs_quick_reply -->
<?php
   /*
      This is quick reply mod for Artemis phpBB style.
      This code will be executed only if you have eXtreme Styles mod installed and if user has permission to post reply.
      If you do not have eXtreme Styles mod on your forum this code will not be visible and you can simply ignore it.
   */
?>
<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}<input type="hidden" name="sid" value="<?php global $userdata; echo $userdata['session_id']; ?>" />{TPL_HDR1}{CA_QR_BUTTON}{TPL_HDR2}<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
   <td class="row" width="200"><span class="gen"><b><?php echo $lang['Subject']; ?>:</b></span></td>
   <td class="row" width="100%"><input type="text" name="subject" size="45" maxlength="60" style="width:98%" tabindex="2" class="post" value="" /></td>
</tr>
<tr>
   <td class="row" width="200"><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%"><textarea name="message" rows="15" cols="35" wrap="virtual" style="width:98%" tabindex="3" class="post"></textarea></td>
</tr>
<tr>
   <td class="row" valign="top"><span class="gen"><b><?php echo $lang['Options']; ?>:</b></span></td>
   <td class="row"><table cellspacing="0" cellpadding="1" border="0">
   <?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']) { ?>
   <tr>
      <td><input type="checkbox" name="disable_html" <?php echo ($html_on ? '' : 'checked="checked"'); ?> /></td>
      <td><span class="gen"><?php echo $lang['Disable_HTML_post']; ?></span></td>
   </tr>
   <?php } else { ?><input type="hidden" name="disable_html" value="checked" /><?php } ?>
   <?php if($board_config['allow_bbcode']) { ?>
   <tr>
      <td><input type="checkbox" name="disable_bbcode" <?php echo ($bbcode_on ? '' : 'checked="checked"'); ?> /></td>
      <td><span class="gen"><?php echo $lang['Disable_BBCode_post']; ?></span></td>
   </tr>
   <?php } else { ?><input type="hidden" name="disable_bbcode" value="checked" /><?php } ?>
   <?php if($board_config['allow_smilies']) { ?>
   <tr>
      <td><input type="checkbox" name="disable_smilies" <?php echo ($smilies_on ? '' : 'checked="checked"'); ?>  /></td>
      <td><span class="gen"><?php echo $lang['Disable_Smilies_post']; ?></span></td>
   </tr>
   <?php } else { ?><input type="hidden" name="disable_smilies" value="checked" /><?php } ?>
   <?php if($user_sig) {  ?>
   <tr>
      <td><input type="checkbox" name="attach_sig" <?php echo ($userdata['user_attachsig'] ? 'checked="checked"' : ''); ?> /></td>
      <td><span class="gen"><?php echo $lang['Attach_signature']; ?></span></td>
   </tr>
   <?php } else { ?><input type="hidden" name="attach_sig" value="" /><?php } ?>
   <tr>
      <td><input type="checkbox" name="notify" <?php echo ($userdata['user_notify'] ? 'checked="checked"' : ''); ?> /></td>
      <td><span class="gen"><?php echo $lang['Notify']; ?></span></td>
   </tr>
   </table></td>
</tr>
<tr>
   <td class="catBottom" colspan="2" align="center" height="25"> <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>
<!-- END xs_quick_reply -->
User avatar
corona2k
Registered User
Registered User
 
Posts: 9
Joined: Sat May 05, 2007 6:31 am

Postby Splinter on Mon May 07, 2007 8:17 am

Hi,

It's hard to tell you the exact changes without seeing a working example of the style but this is the basic structure you should be looking for:

currently you have:

Code: Select all
<!-- BEGIN postrow -->
title bar
post contents
bottom bar
<!-- END postrow -->


You should be looking for something like:

Code: Select all
title bar
<!-- BEGIN postrow -->
post contents
a seperater that would blend nicely with the bottom bar
<!-- END postrow -->
bottom bar


It is just a case of changing the position of your switches a bit until you get the desired effect.
User avatar
Splinter
Coder
Coder
 
Posts: 483
Joined: Sun Feb 20, 2005 10:12 pm
Location: Nottingham, UK

Postby corona2k on Mon May 07, 2007 8:47 am

OK thanks...will try it out and let you know.
User avatar
corona2k
Registered User
Registered User
 
Posts: 9
Joined: Sat May 05, 2007 6:31 am

Postby corona2k on Mon May 07, 2007 12:33 pm

OK i tried about 35 times but i keep getting wierd results...i can't seem to figure out what part of the code is the "title bar" and "post contents" and "bottom bar".
Can you maybe tell me?
The skin i did looks great...i just need to do this...
User avatar
corona2k
Registered User
Registered User
 
Posts: 9
Joined: Sat May 05, 2007 6:31 am

Postby Splinter on Mon May 07, 2007 2:28 pm

Hi,

Try something like this:

Code: Select all
<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
   <td class="nav" align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
   <td class="nav navform" align="right" valign="middle" nowrap="nowrap"><span class="nav"><form action="{CA_SEARCH_INDEX}" method="post" style="display: inline;"><input type="hidden" name="show_results" value="topics" /><input type="hidden" name="search_forum" value="{CA_SEARCH_FORUM}" />
   <input type="text" name="search_keywords" class="post" size="15" />
   <input type="submit" value="{L_SEARCH}" class="mainoption" />
   </form></span></td>
</tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
    <td align="left" valign="middle"><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></td>
    <td align="right" valign="middle"><div class="pagination">{PAGINATION}</div></td>
  </tr>
</table>

{POLL_DISPLAY}

<!-- BEGIN switch_xs_enabled -->
<?php

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

if(!isset($can_reply))
{
   $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());
   }
}

$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="name" ');
      $postrow_item['POSTER_NAME'] = str_replace($search, $replace, $postrow_item['PROFILE']);
   }
}
?>
<!-- END switch_xs_enabled -->
{TPL_HDR1}{postrow.POST_SUBJECT}{TPL_HDR2}
<!-- BEGIN postrow -->
<a name="{postrow.U_POST_ID}"></a>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="forumline forumline2">
<tr>
   <td width="150" class="post-left" align="center" valign="top" rowspan="2">
      <div style="padding: 3px;"><span class="name">{postrow.POSTER_NAME}</span><br /></div>
      <div style="padding: 2px;"><span class="postrank">{postrow.POSTER_RANK}</span><br /></div>
      {postrow.RANK_IMAGE}
      <div style="width: 140px; margin: auto; overflow: hidden">{postrow.POSTER_AVATAR}</div>
      <br />
      <table width="100%" cellspacing="5" cellpadding="0">
         <tr><td align="left"><span class="postdetails">{postrow.POSTER_JOINED}</span></td></tr>
         <tr><td align="left"><span class="postdetails">{postrow.POSTER_POSTS}</span></td></tr>
         <tr><td align="left"><span class="postdetails">{postrow.POSTER_FROM}</span></td></tr>
      </table>
      <img src="{T_TEMPLATE_PATH}/images/spacer.gif" width="150" height="1" border="0" alt="" />
   </td>
   <td class="row" valign="top"><table width="100%" cellspacing="0" cellpadding="2" border="0" class="post-top">
   <tr>
      <td width="50%" align="left"><span class="postdate"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a> {L_POSTED}: {postrow.POST_DATE}</span></td>
      <td width="50%" align="right" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td>
   </tr>
   </table><div class="postbody">{postrow.MESSAGE}</div></td>
</tr>
<tr>
   <td align="left" valign="bottom" class="row">
   <div style="padding: 5px;" class="postbody"><span class="signature"><span class="gensmall">{postrow.EDITED_MESSAGE}</span>{postrow.SIGNATURE}</span></div>
   <table width="100%" border="0" cellspacing="0" cellpadding="2" class="post-bottom">
   <tr>
      <td nowrap="nowrap">{postrow.PROFILE_IMG} {postrow.SEARCH_IMG2} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG} {postrow.ICQ_IMG}</td>
   </tr>
   </table></td>
</tr>
</table>
<!-- END postrow -->
{TPL_FTR}

{TPL_HDR1}<a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}{TPL_HDR2}<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
   <td class="row" align="left" valign="top">
   <table border="0" cellspacing="0" cellpadding="5" width="100%">
   <tr>
      <td align="left" valign="top">
         <span class="gensmall">{S_AUTH_LIST}</span>
      </td>
      <td align="right" valign="top">
         <span class="gensmall">{S_TIMEZONE}&nbsp;&nbsp;<br />
         {PAGE_NUMBER}&nbsp;&nbsp;</span>
         <div class="pagination">{PAGINATION}</div><br />
         <span class="gensmall">{S_WATCH_TOPIC}</span>
      </td>
   </tr>
   </table>
   </td>
</tr>
<tr>
   <td class="catBottom" align="center" valign="middle" nowrap="nowrap"><table border="0" cellspacing="0" cellpadding="2" width="100%">
   <tr>
      <form method="post" action="{S_POST_DAYS_ACTION}" style="display: inline;"><td align="left" valign="middle" nowrap="nowrap">{S_SELECT_POST_DAYS}&nbsp;{S_SELECT_POST_ORDER}&nbsp;<input type="submit" value="{L_GO}" class="liteoption" name="submit" /></td></form>
      <td align="right" valign="middle" nowrap="nowrap">{JUMPBOX}</td>
   </tr>
   </table>
   </td>
</tr>
</table>{TPL_FTR}

<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
   <td class="nav" align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
   <td class="nav navform" align="right" valign="middle" nowrap="nowrap"><span class="nav"><form action="{CA_SEARCH_INDEX}" method="post" style="display: inline;"><input type="hidden" name="show_results" value="topics" /><input type="hidden" name="search_forum" value="{CA_SEARCH_FORUM}" />
   <input type="text" name="search_keywords" class="post" size="15" />
   <input type="submit" value="{L_SEARCH}" class="mainoption" />
   </form></span></td>
</tr>
</table>

<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
   <td align="left" valign="top" style="padding-top: 5px; padding-bottom: 5px;">&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a>
   <!-- BEGIN xs_quick_reply -->
   &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}" align="middle" /></a>
   <!-- END xs_quick_reply -->
   </td>
   <td align="right" valign="top" style="padding-top: 5px;">{S_TOPIC_ADMIN}&nbsp;</td>
</tr>
</table>

<!-- BEGIN xs_quick_reply -->
<?php
   /*
      This is quick reply mod for Artemis phpBB style.
      This code will be executed only if you have eXtreme Styles mod installed and if user has permission to post reply.
      If you do not have eXtreme Styles mod on your forum this code will not be visible and you can simply ignore it.
   */
?>
<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}<input type="hidden" name="sid" value="<?php global $userdata; echo $userdata['session_id']; ?>" />{TPL_HDR1}{CA_QR_BUTTON}{TPL_HDR2}<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
   <td class="row" width="200"><span class="gen"><b><?php echo $lang['Subject']; ?>:</b></span></td>
   <td class="row" width="100%"><input type="text" name="subject" size="45" maxlength="60" style="width:98%" tabindex="2" class="post" value="" /></td>
</tr>
<tr>
   <td class="row" width="200"><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%"><textarea name="message" rows="15" cols="35" wrap="virtual" style="width:98%" tabindex="3" class="post"></textarea></td>
</tr>
<tr>
   <td class="row" valign="top"><span class="gen"><b><?php echo $lang['Options']; ?>:</b></span></td>
   <td class="row"><table cellspacing="0" cellpadding="1" border="0">
   <?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']) { ?>
   <tr>
      <td><input type="checkbox" name="disable_html" <?php echo ($html_on ? '' : 'checked="checked"'); ?> /></td>
      <td><span class="gen"><?php echo $lang['Disable_HTML_post']; ?></span></td>
   </tr>
   <?php } else { ?><input type="hidden" name="disable_html" value="checked" /><?php } ?>
   <?php if($board_config['allow_bbcode']) { ?>
   <tr>
      <td><input type="checkbox" name="disable_bbcode" <?php echo ($bbcode_on ? '' : 'checked="checked"'); ?> /></td>
      <td><span class="gen"><?php echo $lang['Disable_BBCode_post']; ?></span></td>
   </tr>
   <?php } else { ?><input type="hidden" name="disable_bbcode" value="checked" /><?php } ?>
   <?php if($board_config['allow_smilies']) { ?>
   <tr>
      <td><input type="checkbox" name="disable_smilies" <?php echo ($smilies_on ? '' : 'checked="checked"'); ?>  /></td>
      <td><span class="gen"><?php echo $lang['Disable_Smilies_post']; ?></span></td>
   </tr>
   <?php } else { ?><input type="hidden" name="disable_smilies" value="checked" /><?php } ?>
   <?php if($user_sig) {  ?>
   <tr>
      <td><input type="checkbox" name="attach_sig" <?php echo ($userdata['user_attachsig'] ? 'checked="checked"' : ''); ?> /></td>
      <td><span class="gen"><?php echo $lang['Attach_signature']; ?></span></td>
   </tr>
   <?php } else { ?><input type="hidden" name="attach_sig" value="" /><?php } ?>
   <tr>
      <td><input type="checkbox" name="notify" <?php echo ($userdata['user_notify'] ? 'checked="checked"' : ''); ?> /></td>
      <td><span class="gen"><?php echo $lang['Notify']; ?></span></td>
   </tr>
   </table></td>
</tr>
<tr>
   <td class="catBottom" colspan="2" align="center" height="25"> <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>
<!-- END xs_quick_reply -->
User avatar
Splinter
Coder
Coder
 
Posts: 483
Joined: Sun Feb 20, 2005 10:12 pm
Location: Nottingham, UK

Postby corona2k on Mon May 07, 2007 3:53 pm

Thank you! That worked!

Not only that...but i also managed to figure out how to add the image separator between the posts by adding a new template and codes in the other related files.
Now it looks perfect.

Image

One problem remains though...and this happens even before i did the images separator thing.
The topic title is gone...everything shows ok but now i have no title on the top of the first post. just empty. But when i hover the mouse over the place where the title should be the mouse turns to a blinking cursor..indicating that something can be copied from there...but i don't see anything.
User avatar
corona2k
Registered User
Registered User
 
Posts: 9
Joined: Sat May 05, 2007 6:31 am

Postby Splinter on Mon May 07, 2007 4:04 pm

Hi,

That sounds like a CSS problem. The title is controled on line 61 which is as follows:

Code: Select all
{TPL_HDR1}{postrow.POST_SUBJECT}{TPL_HDR2}


I can't see what class you have because of the variables but you should check the CSS in {TPL_HDR1}
User avatar
Splinter
Coder
Coder
 
Posts: 483
Joined: Sun Feb 20, 2005 10:12 pm
Location: Nottingham, UK

Next

Return to Regular Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron