MyBB Community Forums

Full Version: Posts are VERY weird in my theme. how to fix?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
http://g-eazy.net/forum/showthread.php?tid=720

Take a look. When u scroll down, it like tabs itself to the middle or something? Why?
There are many validator problems on that page: http://validator.w3.org/check?uri=http%3...ne&group=0

This problem is directly caused by the forgotten </div> close tags in postbit_classic template.
(2015-01-05, 05:11 AM)Destroy666 Wrote: [ -> ]There are many validator problems on that page: http://validator.w3.org/check?uri=http%3...ne&group=0

This problem is directly caused by the forgotten </div> close tags in postbit_classic template.

Hmm cant seem to find any

{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post classic {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
<div class="post_author scaleimages">
	{$post['useravatar']}
	<div class="author_information">
      <strong><span class="largetext">{$post['profilelink']}</span></strong>{$post['onlinestatus']}</br>
  <span class="smalltext">{$post['userstars']}
				<if $post['uid'] == 1 then><span style="color: red;">[ADMIN]</span></a></span><br /><else></if><if $post['uid'] == 30 then><span style="color: green;font-family: monospace;">[MOD]</span>
  <br /><else>{$post['usertitle']}</if></br>
				{$post['groupimage']}
			</span>
	</div>
	<div class="author_statistics">
		{$post['user_details']}<br />{$post['myawards']}
	</div>
</div>
<div class="post_content">
	<div class="post_head">
		{$post['posturl']}
		{$post['icon']}
		<span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
	{$post['subject_extra']}
  </div>
	<div class="post_body scaleimages" id="pid_{$post['pid']}">
		{$post['message']}
	</div>
	{$post['attachments']}
	{$post['signature']}
	<div class="post_meta" id="post_meta_{$post['pid']}">
		{$post['iplogged']}
	</div>
</div>
<div class="post_controls">
	<div class="postbit_buttons author_buttons float_left">
		{$post['button_pm']}{$post['button_like']}
	</div>
	<div class="postbit_buttons post_management_buttons float_right">
		{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
	</div>
</div>
</div>

Thanks
you can try reverting postbit_classic template to the original version. also you have to deactivate & reactivate likes plugin
(2015-01-05, 05:31 AM).m. Wrote: [ -> ]you can try reverting postbit_classic template to the original version. also you have to deactivate & reactivate likes plugin

Tried both those, still same issue
Because the problem is in the duplicate <div> openings in this piece of code:
<div class="am_embed"><iframe width="640" height="390" src="http://www.youtube.com/embed/zcHRUx60HJU?wmode=opaque" frameborder="0" allowfullscreen></iframe></div>
<br />
<div class="am_embed"><div class="am_embed"><iframe width="640" height="390" src="http://www.youtube.com/embed/1qBpwpmCbtY?wmode=opaque" frameborder="0" allowfullscreen></iframe></div>
<br />
<div class="am_embed"><div class="am_embed"><iframe width="640" height="390" src="http://www.youtube.com/embed/insdLXYsPT4?wmode=opaque" frameborder="0" allowfullscreen></iframe></div>
<br />
<div class="am_embed"><div class="am_embed"><iframe width="640" height="390" src="http://www.youtube.com/embed/OC9Rt5AzdQw?wmode=opaque" frameborder="0" allowfullscreen></iframe></div>
<br />
<div class="am_embed"><div class="am_embed"><iframe width="640" height="390" src="http://www.youtube.com/embed/zcHRUx60HJU?wmode=opaque" frameborder="0" allowfullscreen></iframe></div>
<br />
<div class="am_embed"><iframe width="640" height="390" src="http://www.youtube.com/embed/szYUYfl5Ars?wmode=opaque" frameborder="0" allowfullscreen></iframe></div>
in the first post. 4 of these videos have unnecessary <div class="am_embed"><div class="am_embed"> which should be changed to <div class="am_embed">.
(2015-01-05, 05:49 AM)Destroy666 Wrote: [ -> ]Because the problem is in the duplicate <div> openings in this piece of code:
<div class="am_embed"><iframe width="640" height="390" src="http://www.youtube.com/embed/zcHRUx60HJU?wmode=opaque" frameborder="0" allowfullscreen></iframe></div>
<br />
<div class="am_embed"><div class="am_embed"><iframe width="640" height="390" src="http://www.youtube.com/embed/1qBpwpmCbtY?wmode=opaque" frameborder="0" allowfullscreen></iframe></div>
<br />
<div class="am_embed"><div class="am_embed"><iframe width="640" height="390" src="http://www.youtube.com/embed/insdLXYsPT4?wmode=opaque" frameborder="0" allowfullscreen></iframe></div>
<br />
<div class="am_embed"><div class="am_embed"><iframe width="640" height="390" src="http://www.youtube.com/embed/OC9Rt5AzdQw?wmode=opaque" frameborder="0" allowfullscreen></iframe></div>
<br />
<div class="am_embed"><div class="am_embed"><iframe width="640" height="390" src="http://www.youtube.com/embed/zcHRUx60HJU?wmode=opaque" frameborder="0" allowfullscreen></iframe></div>
<br />
<div class="am_embed"><iframe width="640" height="390" src="http://www.youtube.com/embed/szYUYfl5Ars?wmode=opaque" frameborder="0" allowfullscreen></iframe></div>
in the first post. 4 of these videos have unnecessary <div class="am_embed"><div class="am_embed"> which should be changed to <div class="am_embed">.

How exactly can I fix this? Is there a code I can use to only use one <div> or do I have to do it manually every time?
You're using some kind of plugin to autoparse the videos, it seems buggy, you should either:
a) ask for support for that plugin in the Plugin Support forum
b) wrap each video link with the MyBB MyCode:
[video=youtube]link[/video]