Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Previous versions
 align="bottom" in first post in topic
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

i011877
Junior Member

Denmark
169 Posts

Posted - 30 August 2006 :  16:06:54  Show Profile  Visit i011877's Homepage
Example: http://www.myforum.dk/topic.asp?TOPIC_ID=2612

Note the
| Indlæg: 243

-in the bottom of the first post!

Can't quite figure out where the change has to be done. Please advice!

http://www.myforum.dk/source.asp?page=topic.asp


Davio
Development Team Member

Jamaica
12217 Posts

Posted - 30 August 2006 :  16:17:49  Show Profile
Your link to the topic.asp source page takes me to your forum default.asp page.

Support Snitz Forums
Go to Top of Page

i011877
Junior Member

Denmark
169 Posts

Posted - 30 August 2006 :  16:57:57  Show Profile  Visit i011877's Homepage
Sorry! Try using 'testuser/testuser' as a login.


Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 30 August 2006 :  17:17:08  Show Profile  Visit HuwR's Homepage
look for the sub GetFirst() this is what displays the first post
Go to Top of Page

i011877
Junior Member

Denmark
169 Posts

Posted - 31 August 2006 :  01:20:39  Show Profile  Visit i011877's Homepage
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.


Go to Top of Page

i011877
Junior Member

Denmark
169 Posts

Posted - 01 September 2006 :  06:20:06  Show Profile  Visit i011877's Homepage
Anyone?


Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 01 September 2006 :  08:50:27  Show Profile  Visit HuwR's Homepage
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)
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 01 September 2006 :  09:26:53  Show Profile  Visit MarcelG's Homepage
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
Go to Top of Page

i011877
Junior Member

Denmark
169 Posts

Posted - 01 September 2006 :  14:48:29  Show Profile  Visit i011877's Homepage
Where?
Sorry but I'm blank here!


Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 02 September 2006 :  08:48:04  Show Profile  Visit MarcelG's Homepage
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
Go to Top of Page

i011877
Junior Member

Denmark
169 Posts

Posted - 02 September 2006 :  15:29:11  Show Profile  Visit i011877's Homepage
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.


Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 04 September 2006 :  05:34:17  Show Profile  Visit MarcelG's Homepage
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
Go to Top of Page

i011877
Junior Member

Denmark
169 Posts

Posted - 04 September 2006 :  05:45:12  Show Profile  Visit i011877's Homepage
It's available in the first post

Thanks a million.

(testuser/testuser)



Edited by - i011877 on 04 September 2006 05:45:49
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 04 September 2006 :  07:10:19  Show Profile  Visit MarcelG's Homepage
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
Go to Top of Page

i011877
Junior Member

Denmark
169 Posts

Posted - 04 September 2006 :  07:25:16  Show Profile  Visit i011877's Homepage
Thanks Marcel
Worked! Example: http://www.myforum.dk/topic.asp?TOPIC_ID=2671

Where do you put that addional code?


Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 04 September 2006 :  11:01:59  Show Profile  Visit MarcelG's Homepage
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
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07