SMF 2.0RC1
i have been getting a lot of complaints about attached images being pushed too far to the right of the post and until recently have not been able to replicate the problem. the problem is for guests and regular users ONLY. admins and mods are not affected.
the problem is this... there is a horizontal ruler that is not being displayed at the end of the post but is instead being rendered at the top of the post almost between the title of the post and the « Reply #15 on: Today at 12:08 PM » text. it is pushed to the right for some reason, which is causing everything else to be pushed to the right (see screenshots). i am trying to figure out if this is a css error or a bug in hardcode but have had no luck so far.
here is the link to the full thread of what people are complaining about... i am sure this should be an easy fix for someone.
http://www.themagicinpixels.com/forum/index.php/topic,3754.msg28370/topicseen.html#msg28370 (http://www.themagicinpixels.com/forum/index.php/topic,3754.msg28370/topicseen.html#msg28370)
in the bottom attachment for this message, arrow #1 is showing the second horizontal rule for the post with an attachment, #2 is showing how the image is pushed way right, #3 is showing the huge horizontal scrollbar for the affected posts.
sorry to bump on short notice but this is really making me crazy trying to figure out.
i thought i had it fixed but it did not work. anyone?
MORE INFORMATION:
I checked the error log and found MANY instances of this error:
Undefined offset: 470
File: /home/themagi2/public_html/forum/Sources/Load.php
Line: 1299
i checked that file and it contains:
// ===== Begin modification - Display Age and Location next to posts =====
if (!empty($profile['birthdate']) && $profile['birthdate'] !== '0001-01-01')
{
list ($birth_year, $birth_month, $birth_day) = sscanf($profile['birthdate'], '%d-%d-%d');
$datearray = getdate(forum_time());
$memberContext[$user] += array(
'age' => $birth_year <= 4 ? $txt[470] : $datearray['year'] - $birth_year - (($datearray['mon'] > $birth_month || ($datearray['mon'] == $birth_month && $datearray['mday'] >= $birth_day)) ? 0 : 1)
);
}
// ===== End modification =====
could this be the problem?
timned88, it looks like this issue is resolved when I checked your site. What solve the problem? This may help other members who run into a similar problem.
display.template.php and look for...
ORIGINAL
<div id="msg_', $message['id'], '_footer" class="attachments smalltext">';
CHANGE TO
<div class="post floatleft" id="msg_', $message['id'], '_footer" class="attachments smalltext">';
did that work for you? please let me know how you made out.
Don't have the problem myself, but we usually like all members to post their resolution. This may help other users who have similar problems. Thanks for posting the solution that worked for you. I'm sure it will be helpful for others.
Topic marked as solved.