Bugs!
I got new issue from theards in the posts
PHP Code:
An HTML tag is blocked on an equivalent speed mobile page.
The tag 'img' may only appear as a descendant of tag 'noscript'. Did you mean 'amp-img'?
PHP Code:
<img style="filter:fliph" border="0" src="xxxx" border="0" /><br />
I'm trying to fix it.
I i tried to fix this line in class_bbcode.php file
PHP Code:
return "<img src=\"$sigpic_url\" alt=\"$description\" border=\"0\" />";
to be
PHP Code:
if (THIS_SCRIPT == 'amp')
{
return "<img-amp src=\"$sigpic_url\" alt=\"$description\" border=\"0\" ></amp-img>";
} //amp hack
else if ($this->registry->userinfo['userid'] == 0 OR $this->registry->userinfo['showimages'])
{
return "<img src=\"$sigpic_url\" alt=\"$description\" border=\"0\" />";
}
but nothing happend!
the problem is this line
PHP Code:
if (THIS_SCRIPT == 'amp') { return '<amp-img layout="responsive" src="' . $link . '" width="300" height="250" alt=""></amp-img>';} else { return '<img src="' . $link . '" border="0" alt="" />'; } //amp hack
in class_bbcode.php file doesn't affect the posts!
Its just affect the first post only!
---------------
css 'tg' & 'table' issue
PHP Code:
CSS syntax error in tag 'td' - invalid declaration.
CSS syntax error in tag 'table' - invalid declaration.
I think the problem from bbcode_quote tamplete
PHP Code:
<if condition="THIS_SCRIPT == 'amp'">
<div class="bbcode-quote">
<div class="bbcode-quote-text">
<div class="smallfont time">$vbphrase[quote]</div>
<if condition="$show['username']">
<span class="smallfont">
<phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase>
<if condition="$postid"><a class="font15" href="showthread.php?$session[sessionurl]p=$postid#post$postid" title="$vbphrase[view_post]" rel="nofollow"><b>»</b></a></if>
</span>
<div class="msx-quote"><p>$message</p></div>
<else />
<div class="msx-quote"><p>$message</p></div>
</if>
</div>
</div>
<else />
<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
<div class="smallfont" style="margin-bottom:2px">$vbphrase[quote]:</div>
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="border:1px inset">
<if condition="$show['username']">
<div>
<phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase>
<if condition="$postid"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost.gif" border="0" alt="$vbphrase[view_post]" /></a></if>
</div>
<div style="font-style:italic">$message</div>
<else />
$message
</if>
</td>
</tr>
</table>
</div>
</if>
I couldn't fix it
I'm afraid I must to remove every things! because those issues make the site die.