tperry
  •  tperry
  • 72.2% (Friendly)
  • YAF Lover Topic Starter
2011-09-08T19:21:40Z
Noticed after I updated last night the signature blocks are now on their own row instead of in a div with in the post (like they are here when I look at the source). I dug through DisplayPost.ascx, but didn't see anything there that made me want to play around.

<tr class="post">
	<td valign="top" height="100" class="UserBox" colspan="2">
		<div class="yafUserBox" id="forum_ctl03_MessageList_ctl00_DisplayPost1_UserBox1">
			<div class="section">
				<a href="/yaf_profile4.aspx" title="RyanO"><img class="avatarimage" src="/resource.ashx?u=4" alt="RyanO"></a>
			</div><br clear="all">
			<div class="section">
				<img class="rankimage" src="/Images/Ranks/O3.png" alt=""><br clear="all">
				Rank: <span class="YafRank_SaintS Team CO" style="">SaintS Team CO</span><br clear="all">
			</div><br>
			<div class="section medals">
				Medals: <img src="/Images/Medals/10Yrs.png" width="24" height="24" alt="10 Years: 10 years as a member of the SaintS" title="10 Years: 10 years as a member of the SaintS">
			</div><br clear="all">
			<div class="section">
				Groups: <span class="YafGroup_Administrators" style=" color: red">Administrators</span>, <span class="YafGroup_SaintS Member" style=" color:red">SaintS Member</span><br clear="all">
				Joined: 2/6/2011<br>
				Posts: 401<br>
				Location: Chicago's Western Suburbs<br>
			</div><br>
			<div class="section">Thanks: 3 times<br>
				Was thanked: 3 time(s) in 3 post(s)<br>
			</div>
		</div>
	</td>
	<td valign="top" class="message">
		<div class="postdiv">
			<div id="forum_ctl03_MessageList_ctl00_DisplayPost1_panMessage" style="display:block">
				<div id="forum_ctl03_MessageList_ctl00_DisplayPost1_MessagePost1">
					blah blah blah blah post.
				</div>
			</div>
		</div>
	</td>
</tr>
<tr class="post">
	<td colspan="2" class="UserBox"></td>
	<td id="forum_ctl03_MessageList_ctl00_DisplayPost1_ctl09" class="yafsignature">
		blah blah blah signature
	</td>
</tr>
Sponsor
tha_watcha
2011-09-09T10:27:57Z
Signature in an own Row was the only possibility to move the signature to the bottom of the Message.

Here is the Topic about the initial Problem

http://forum.yetanotherf..._Signature-Location.aspx 

In the current table layout its not possible to create a really perfect solution, both solutions the old one and the new one are not optimal 😞

Quote:

but didn't see anything there that made me want to play around.



You can find it in the Display Post because the Signature is rendered as Control, take a look at the MessageSignature.cs

in the YAF.Controls Project.

UserPostedImage
tperry
  •  tperry
  • 72.2% (Friendly)
  • YAF Lover Topic Starter
2011-09-09T12:01:07Z
Makes sense; I'll take a look. Vielen dank!
tperry
  •  tperry
  • 72.2% (Friendly)
  • YAF Lover Topic Starter
2011-09-09T14:08:28Z
<tr class="post">
	<!-- *** ADD THE ROWSPAN -->
	<td valign="top" height="100" class="UserBox" colspan="2" rowspan="2">
		<div class="yafUserBox" id="forum_ctl03_MessageList_ctl00_DisplayPost1_UserBox1">
			<div class="section">
				<a href="/yaf_profile4.aspx" title="RyanO"><img class="avatarimage" src="/resource.ashx?u=4" alt="RyanO"></a>
			</div><br clear="all">
			<div class="section">
				<img class="rankimage" src="/Images/Ranks/O3.png" alt=""><br clear="all">
				Rank: <span class="YafRank_SaintS Team CO" style="">SaintS Team CO</span><br clear="all">
			</div><br>
			<div class="section medals">
				Medals: <img src="/Images/Medals/10Yrs.png" width="24" height="24" alt="10 Years: 10 years as a member of the SaintS" title="10 Years: 10 years as a member of the SaintS">
			</div><br clear="all">
			<div class="section">
				Groups: <span class="YafGroup_Administrators" style=" color: red">Administrators</span>, <span class="YafGroup_SaintS Member" style=" color:red">SaintS Member</span><br clear="all">
				Joined: 2/6/2011<br>
				Posts: 401<br>
				Location: Chicago's Western Suburbs<br>
			</div><br>
			<div class="section">Thanks: 3 times<br>
				Was thanked: 3 time(s) in 3 post(s)<br>
			</div>
		</div>
	</td>
	<td valign="top" class="message">
		<div class="postdiv">
			<div id="forum_ctl03_MessageList_ctl00_DisplayPost1_panMessage" style="display:block">
				<div id="forum_ctl03_MessageList_ctl00_DisplayPost1_MessagePost1">
					blah blah blah blah post.
				</div>
			</div>
		</div>
	</td>
</tr>
<tr class="post">
	<!-- td colspan="2" class="UserBox">*** REMOVE ME </td -->
	<!-- *** ADD THE VALIGN -->
	<td id="forum_ctl03_MessageList_ctl00_DisplayPost1_ctl09" class="yafsignature" valign="bottom">
		blah blah blah signature
	</td>
</tr>


Before and after attached from when I did this with my browser's dev tools. If I can figure out how to tweak this in the actual code I'll post my changes.
tperry attached the following image(s):
tha_watcha
2011-09-10T10:27:28Z
Yes the RowSpan was a Good Idea

I think its perfect now

http://yafnet.codeplex.c...set/changes/c5dbe82e7294 
UserPostedImage
tperry
  •  tperry
  • 72.2% (Friendly)
  • YAF Lover Topic Starter
2011-09-10T15:29:54Z
Oh wow. I wouldn't have figured out the 7 different files needed to make this change. Nicely done!
dillegummin
2011-09-13T17:37:54Z
Hey Watcha,

There seems to be an issue after the new Signature code was implemented. If users are not having any signature, there seems to be some problem with column spanning. (see attached screenshot)
dillegummin attached the following image(s):
tha_watcha
2011-09-14T09:58:12Z
thx should be fixed now in latest Changeset.
UserPostedImage

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved