Author |
Topic |
i011877
Junior Member
Denmark
169 Posts |
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 30 August 2006 : 16:17:49
|
Your link to the topic.asp source page takes me to your forum default.asp page. |
Support Snitz Forums
|
|
|
i011877
Junior Member
Denmark
169 Posts |
Posted - 30 August 2006 : 16:57:57
|
Sorry! Try using 'testuser/testuser' as a login. |
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 30 August 2006 : 17:17:08
|
look for the sub GetFirst() this is what displays the first post |
|
|
i011877
Junior Member
Denmark
169 Posts |
Posted - 31 August 2006 : 01:20:39
|
Yea I got that part, and it should be somewhere here:
Response.Write "<br></span id=""msg""></font><br></td>" & vbNewLine & _
" </tr>" & vbNewLine
if CanShowSignature = 1 and Reply_Sig = 1 and Reply_MemberSig <> "" then
Response.Write " <tr>" & vbNewLine & _
" <td valign=""bottom""><font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><span class=""spnMessageText"">" & Replace(formatStr(Reply_MemberSig),"@USERNAME@",strDBNTUserName) & "</span></font></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
if strEditedByDate = "1" and Reply_LastEditBy <> "" then
if Reply_LastEditBy <> Reply_Author then
Reply_LastEditByName = getMemberName(Reply_LastEditBy)
else
Reply_LastEditByName = chkString(Reply_MemberName,"display")
end if
Response.Write " <tr>" & vbNewLine & _
" <td valign=""bottom""><hr size=""1"" color=""#555555"" & strFooterFontSize & """" color=""" & CColor & """><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strForumFontColor & """><i>" & _
"Editeret af " & Reply_LastEditByName & " den " & chkDate(Reply_LastEdit, " " ,true) & "</font></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
Response.Write " <tr>" & vbNewLine & _
" <td colspan=""2"" valign=""bottom"" align=""left"" height=""20""><hr size=""1"" color=""#555555""><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strForumFontColor & """></td></tr><td width=""100%"" nowrap>" & vbNewLine & _
" <nobr><img alt=""" & Reply_MemberCountry & """ src=""" & strImageURL & "flags/" & Reply_MemberCountry & ".gif"" width=""21"" height=""14"" border=""0"" align=""absbottom"">" & vbNewLine & _
" <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small> | Indlæg: " & Reply_MemberPosts & "</small></font></td>" & vbNewLine & _
" <td valign=""top"" align=""right"" width=""1""><a href=""#top"">" & getCurrentIcon(strIconGoUp,"Go to Top of Page","align=""right""") & "</a></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" </td>" & vbNewLine & _
" </tr>" & vbNewLine The parts that align to bottom seems right. Maybe I should attend an asp-course
Please advice. |
|
|
|
i011877
Junior Member
Denmark
169 Posts |
Posted - 01 September 2006 : 06:20:06
|
Anyone? |
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 01 September 2006 : 08:50:27
|
sorry, I haven't had chance to check yet, will take a look later today and let you know (unless someone else does in the meantime) |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 01 September 2006 : 09:26:53
|
What's the problem ? The fact that the sig is not aligned to the bottom of the first post table? This is because the TD height is set to 100%. Set it to a fixed height, and the problem is solved. |
portfolio - linkshrinker - oxle - twitter |
Edited by - MarcelG on 01 September 2006 13:52:29 |
|
|
i011877
Junior Member
Denmark
169 Posts |
Posted - 01 September 2006 : 14:48:29
|
Where? Sorry but I'm blank here! |
|
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 02 September 2006 : 08:48:04
|
Have a look at my topic.asp, and specifically the function 'GetFirst'. (You can log in with demo/demo)
The thing is that the height of 100% doesn't fill the TD to the entire height.If the column on the left is taller than the column on the right, it looks as if the signature sticks to the post. So, valign="bottom" does work, but the TD height isn't stretched to meet the height of the left TD. |
portfolio - linkshrinker - oxle - twitter |
|
|
i011877
Junior Member
Denmark
169 Posts |
Posted - 02 September 2006 : 15:29:11
|
Thanks Marcel, but I am already a member on your forum - Hmmm yea I get the idea. Since I am not a coder I just can't find the error. Driving me insane. Trying to get it, but most is jibberish to me.
I understand that you want me to find the error myself, but your code is heavily moderated, as mine is. |
|
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 04 September 2006 : 05:34:17
|
Mmmm. If you'd mail me your topic.asp at marcel@oxle.com, I'll see what I can mod into that one. |
portfolio - linkshrinker - oxle - twitter |
|
|
i011877
Junior Member
Denmark
169 Posts |
Posted - 04 September 2006 : 05:45:12
|
It's available in the first post
Thanks a million.
(testuser/testuser) |
|
Edited by - i011877 on 04 September 2006 05:45:49 |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 04 September 2006 : 07:10:19
|
Change this line: (1033)
Response.Write " <td valign=""top"" height=""100%""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """>" & vbNewLine to this line:
Response.Write " <td valign=""top"" height=""100""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """>" & vbNewLine You'll have to figure out which minimum height the topic needs to be. I use a function to determine the best topicheight based on the avatar etc.
if lcase(Member_Name) <> "guest" then
if Member_Avatar <> strImageURL & "noavatar.gif" or Member_Avatar <> "" then
'there is an avatar, so minimum height = 85
if CanShowSignature = 1 and Topic_Sig = 1 and Topic_MemberSig <> "" then
' there's also a signature, you can remove at least 10 pixels from the topicheight
if instr(Topic_MemberSig,"[img]") = 0 then
'there's no image in the signature ; remove another 10 pixels.
topicheight = "75"
else
'there is an image in the signature, remove 50 pixels
topicheight = "35"
end if
else
'no sig, maximum topicheight
topicheight = "85"
end if
else
'no avatar, keep the height to a minimum
topicheight = "40"
end if
else
topicheight = "5"
end if You might want to incorporate that function, but you can also simply tweak it manually to a correct size. |
portfolio - linkshrinker - oxle - twitter |
|
|
i011877
Junior Member
Denmark
169 Posts |
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 04 September 2006 : 11:01:59
|
Glad to read that it works.
The code I posted should come directly before the line I asked you to modify. The line I asked to you modify however also needs to be changed. The hardcoded value for height needs to be replaced by this:
" & topicheight & "
|
portfolio - linkshrinker - oxle - twitter |
|
|
Topic |
|