By Jeffery Hothleuf on Thursday, 14 August 2014
Posted in Technical Issues
Replies 3
Likes 0
Views 0.9K
Votes 0
Hi,

I was wondering how to include user's locations in the Komento module.
I can't find any settings, so perhaps you could provide me a code snippet?

Best regards
Hello Jeffery,

May I know which Komento module do you wish to put the user's location? If you want to use Komento comment module, you can put this customized code into this file: \modules\mod_komento_comments\tmpl\default.php Line: 85.

<!-- Text -->
<div class="mod-comment-text">
<?php echo $row->comment; ?>

<!-- Title -->
<?php if( $params->get( 'showtitle' ) ) { ?>
<div class="mod-comment-page">
<?php if( $row->extension ) { ?>
<a href="<?php echo $row->pagelink; ?>"><?php echo $row->contenttitle; ?></a><?php echo $params->get( 'showcomponent' ) ? ' ' . JText::sprintf( 'COM_KOMENTO_TITLE_IN_COMPONENT', $row->componenttitle ) : ''; ?>
<!-- This will display the address -->
<p><?php echo $row->address; ?></p>
<?php } else { ?>
<?php echo $row->contenttitle; ?>
<?php } ?>
</div>
<?php } ?>
</div>


Hope this will help.
Thanks.
·
Thursday, 14 August 2014 20:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mohd,

that works perfectly.

Thanks.
·
Friday, 15 August 2014 07:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jeffery,

You're welcome. Glad to hear your issue have been resolved.
If you have anymore question, please don't hesitate to ask us and please create a new ticket. I will mark this ticket as resolved.

Thanks again and have a wonderful day.
·
Friday, 15 August 2014 10:55
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post