×
Kunena 5.1.4 Released and Blue Eagle 1.5.1 (Yesterday)

The Kunena team has announce the arrival of Kunena 5.1.4 [K 5.1.4] which is now available for download as a native Joomla extension for J! 3.8.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1. This is a maintenance release.

× Please note: The Kunena project team takes NO responsibility for maintaining nor supporting anything in this category.

Question Schema Microdata for Kunena

  • Trony
  • Trony's Avatar Topic Author
  • Offline
  • Junior Member
  • Music and Electronic Devices Designer.
More
1 year 4 months ago - 1 year 4 months ago #1 by Trony
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
<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="#">&times;</a>
	<?php echo $this->category->displayField('headerdesc'); ?>
</div>
<?php endif; ?>
 
<div itemscope itemtype="https://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
<div class="clearfix"></div>
  <div style="display:none">
  <span itemprop="author" itemscope itemtype="https://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="https://schema.org/InteractionCounter">
    <link itemprop="interactionType" href="https://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
<img itemprop="image" src="<?php echo $attachment->getUrl(); ?>"
and
<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 ?!?

Music and Electronic Devices Designer. Drum and Bass Addict. Creative Mind as Lifestyle. Cat in past Life. Soccer, Ice Hockey and Snowboard Lover.

Last edit: 1 year 4 months ago by Trony.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.074 seconds