Webmastersite.net
Register Log In

Attachment messed up link details page

Comments on Attachment messed up link details page

Tango
Beginner

Usergroup: Customer
Joined: Aug 28, 2006

Total Topics: 1
Total Comments: 4
Tango
Posted Sep 18, 2006 - 5:06 PM:

I have a problem that's driving me nuts. confused

I'm customizing the templates which wasn't a problem up to now. Now I'm working on the link details page. The problem is that </tr><tr> comes right after the attachment:
<div class="details"><span class="labels">Attached Files:</span><br>

<a href="download.php?id=1&attachid=1">10.gif</a> (4 KB, 4 downloads)<br>
<img src="thumbnail.php?id=1&attachid=1" alt="image"></a><br></tr><tr>
</div>

At first I thought I've done something wrong but I've now switched back to the default template and it's there too. I'm not sure why it does not mess up the default template cause as far as I can see it's not inside a table. But it messes up my customized template (even if I do not custimize the link details page).

To get a clue what I mean...
http://tkf-directory.com/comments.php?id=1
That's the "good looking" default template.
(weird... url does not work... well, just go to www.tkf-directory.com -> Information - patriciafan - details

And that's how it looks in my customized template:


it doesn't change anything when I switch back to deperate details and comments pages. When I remove the attachment... everything looks fine.
Tango
Beginner

Usergroup: Customer
Joined: Aug 28, 2006

Total Topics: 1
Total Comments: 4
Tango
Posted Sep 19, 2006 - 6:25 AM:

Ok, I got it to work by putting a table around the attachment part
<table>
<tr>
<td>
<IF {LINKFILEFIELD}>
<div class="details"><span class="labels">Attached Files:</span><br>
<!-- BEGIN LINK ATTACHMENTS -->
<IF {ATTACHISIMAGE}><img src="https://www.webmastersite.net/forums/download.php?id={LINKID}" alt="image"></IF></div>
</td><!-- END LINK ATTACHMENTS -->
</IF>
<td>
</td>
</tr>
</table>


looks like this online...
<table>
<tr>
<td>
<div class="details"><span class="labels">Attached Files:</span><br>
<img src="https://www.webmastersite.net/forums/download.php?id=1" alt="image"></div>
</td></tr><tr>
<td>
</td>
</tr>
</table>


...it's a full table.

So it kind of works for me now but nevertheless I would like to know where the </tr><tr> comes from since it's not in the templates. I'm working with tables in wrapper that's why the </tr><tr> messes up the whole site. The default template works with divs only so tr's are ignored and everything works fine.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 19, 2006 - 3:20 PM:

At settings->general you've apparently set more than 0 attachments per row.
Tango
Beginner

Usergroup: Customer
Joined: Aug 28, 2006

Total Topics: 1
Total Comments: 4
Tango
Posted Sep 20, 2006 - 5:13 AM:

*ouch* Yeah, you're right. I haven't thought of that. Thanks for your help. smiling face
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.