Hi There.
I saw in
rating.php there's Schema Microdata AggregateRating but it doesn't work without a reference in the topic.
Well, I chose for Kunena
Discussion Forum Posting
.
I modded
template >
crypsis (or crypsis3) >
layouts >
topic >
item >
default.php
Code:
<div><?php echo $this->subLayout('Widget/Module')->set('position', 'kunena_topic_top'); ?></div>
<?php if ($this->category->headerdesc) : ?>
<div class="alert alert-info">
<a class="close" data-dismiss="alert" href="#">×</a>
<?php echo $this->category->displayField('headerdesc'); ?>
</div>
<?php endif; ?>
<div itemscope itemtype="http://schema.org/DiscussionForumPosting">
<h1 itemprop="headline name">
<?php echo $topic->getIcon($topic->getCategory()->iconset);?>
<?php
if ($this->ktemplate->params->get('labels') != 0)
{
echo $this->subLayout('Widget/Label')->set('topic', $this->topic)->setLayout('default');
}
?>
<?php echo $topic->displayField('subject');?>
<?php echo $this->subLayout('Topic/Item/Rating')->set('category', $this->category)->set('topicid', $topic->id)->set('config', $this->config);?>
</h1>
And at bottom
Code:
<div class="clearfix"></div>
<div style="display:none">
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span itemprop="name"><?php echo $message->getAuthor()->getLink() ?></span>
</span>
<span itemprop="datePublished"><?php echo date("c", strtotime($message->getTime())); ?></span>
<div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter">
<link itemprop="interactionType" href="http://schema.org/CommentAction" />
<span itemprop="userInteractionCount"><?php echo $this->numLink; ?></span>
</div>
</div>
</div>
I Need Your Hint: echo $this->numLink; doesn't work for to show Topic ID (#1, #2, #3 etc). How can I replace it ?!?
Then in
template >
crypsis (or crypsis3) >
layouts >
attachment >
item >
image.php and in
template >
crypsis (or crypsis3) >
layouts >
bbcode >
image >
default.php
Code:
<img itemprop="image" src="<?php echo $attachment->getUrl(); ?>"
and
Code:
<img itemprop="image" src="<?php echo $this->escape($url); ?>"
I tested it with Google Tools and Yandex Tools and works fine.
What do You think ?!?