TutorialMS Community Forum

Full Version: [SOLVED] Submission Result causes layout problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
You can try here :
http://www.tutorialms.com/beta/submit2/?cat=1&number=1
Don't fill anything and click 'Submit' (so that it returns 'failed' submission)

You will see that the right column will go below the submission (main column). So, what might have caused this problem?

Thanks.

Note : This problem appears at the 'original' downloaded file and affects quite many people who had downloaded it. http://www.surfnlearn.com/ is using version 1.3 and is also facing this problem. However, http://www.webstone.info and http://www.tutorialtoday.com don't face this problem. So, I hope that there will be a fix released soon.
Hi. I looked at the source code and I don't see where the alert message closed a <div> tag.

Before submit:
Code:
<div class="thead">
        <img src="http://www.tutorialms.com/beta/images/header_icons/add.gif" alt="Submission" style="margin-right:10px;" /><strong>Submission</strong>
    </div>
      <div class="genmcontainer">You selected category <strong>Dummy Category (3)</strong><br />
<br />
<strong>NOTE: If a tutorial is filled in incorrectly it will be skipped.</strong><br />
<br />
<form enctype="multipart/form-data" action="http://www.tutorialms.com/beta/submit2/?cat=1&number=1" method="POST">
<strong>Homepage</strong><br />
<div style="float: left;width:220px">Please enter your website URL: (with http://)</div>
<div style="float: right;"><input size="36" name="weburl" type="text" class="form_styles"></div>
<div style="clear:both;"></div>
</div>
After submit: (I don't see where the first line <div> was closed)
Code:
<div class="genmcontainer">The homepage URL was not a valid URL.<br />
    <div class="thead">
        <img src="http://www.tutorialms.com/beta/images/header_icons/add.gif" alt="Submission" style="margin-right:10px;" /><strong>Submission</strong>
    </div>
      <div class="genmcontainer">You selected category <strong>Dummy Category (3)</strong><br />
<br />
<strong>NOTE: If a tutorial is filled in incorrectly it will be skipped.</strong><br />
<br />
<form enctype="multipart/form-data" action="http://www.tutorialms.com/beta/submit2/?cat=1&number=1" method="POST">
<strong>Homepage</strong><br /><div style="float: left;width:220px">Please enter your website URL: (with http://)</div>
<div style="float: right;"><input size="36" name="weburl" type="text" class="form_styles"></div>
<div style="clear:both;"></div>
</div>
I might be off on this, but does the "submit_results" template have a closing </div> tag?

Hope this helps.
Update: That was the problem. In the "submit_results" template change the following:
Code:
<if condition="$messages[submit_results_show_error] == 1">
$messages[submit_results_error]
<else />
<p class="smalltext">
Your tutorial(s) have been submitted to the approval que:<br />
<strong>$messages[submit_results_success]</strong> succeeded.<br />
<strong>$messages[submit_results_fail]</strong> failed.
</p>
</div>
</if>
to the following by adding the </div> just above the <else />
Code:
<if condition="$messages[submit_results_show_error] == 1">
$messages[submit_results_error]
</div>
<else />
<p class="smalltext">
Your tutorial(s) have been submitted to the approval que:<br />
<strong>$messages[submit_results_success]</strong> succeeded.<br />
<strong>$messages[submit_results_fail]</strong> failed.
</p>
</div>
</if>
And thanks! Mine was also doing the same and this fixed it.
Thanks Smile You really have eagle's eyes. I can't spot the problem even after a very long time.
Reference URL's