Kunena 6.2.6 released

The Kunena team has announce the arrival of Kunena 6.2.6 [K 6.2.6] which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2

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
6 years 11 months ago - 6 years 11 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
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="#">&times;</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 ?!?

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: 6 years 11 months ago by Trony.

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

Time to create page: 0.367 seconds