YAFLogo

tperry
  • tperry
  • 72.2% (Friendly)
  • YAF Lover Topic Starter
13 years ago
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
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
13 years ago
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.yetanotherforum.net/yaf_postst13289_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 😞

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.

tperry
  • tperry
  • 72.2% (Friendly)
  • YAF Lover Topic Starter
13 years ago
Makes sense; I'll take a look. Vielen dank!
tperry
  • tperry
  • 72.2% (Friendly)
  • YAF Lover Topic Starter
13 years ago
<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.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
13 years ago
tperry
  • tperry
  • 72.2% (Friendly)
  • YAF Lover Topic Starter
13 years ago
Oh wow. I wouldn't have figured out the 7 different files needed to make this change. Nicely done!
dillegummin
13 years ago
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)

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
13 years ago
thx should be fixed now in latest Changeset.