Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
rayzir Posted January 8, 2018 Posted January 8, 2018 Howdy, all. I'm working on a directory that includes user reviews & comments. I modified the Listing template to include basic information. The last column is Recent Activity, which I kept the same code. Unfortunately, it only shows recent comments & activity like record creation. But it doesn't show that a recent review has been added. Is it possible with the code below to include all recent activity, including recent reviews? I've attached a screenshot. If you want to see it live: http://www.scrollsawvillage.com/pattern-vendors/ Thanks for the assist. I really appreciate it. <td> <ul class='ipsDataItem_lastPoster ipsDataItem_withPhoto ipsType_blendLinks' > {{if $row::database()->options['comments'] or $row::database()->options['reviews']}} <li> {{if $row->mapped('num_comments')}} {template="userPhoto" app="core" group="global" params="$row->lastCommenter(), 'tiny'"} {{else}} {template="userPhoto" app="core" group="global" params="$row->author(), 'tiny'"} {{endif}} </li> <li> {{if $row->database()->_comment_bump & \IPS\cms\Databases::BUMP_ON_COMMENT}} {{if $row->mapped('num_comments')}} {lang="cms_row_commented_by" htmlsprintf="$row->lastCommenter()->link()"} {{else}} {lang="cms_row_added_by" htmlsprintf="$row->author()->link()"} {{endif}} {{elseif $row->database()->_comment_bump & \IPS\cms\Databases::BUMP_ON_EDIT}} {{if $row->record_edit_time > 0}} {lang="cms_row_updated_by" htmlsprintf="\IPS\Member::load( $row->record_edit_member_id )->link()"} {{else}} {lang="cms_row_added_by" htmlsprintf="$row->author()->link()"} {{endif}} {{else}} {{if $row->record_edit_time > 0}} {lang="cms_row_updated_by" htmlsprintf="$row->lastCommenter()->link()"} {{else}} {lang="cms_row_added_by" htmlsprintf="$row->author()->link()"} {{endif}} {{endif}} </li> <li class="ipsType_light"> <a href='{$row->url( 'getLastComment' )}' title='{lang="get_last_post"}'> {{if $row->database()->_comment_bump & \IPS\cms\Databases::BUMP_ON_COMMENT}} {{if $row->mapped('num_comments')}}{datetime="$row->mapped('last_comment')"}{{else}}{datetime="$row->mapped('date')"}{{endif}} {{else}} {{if $row->record_edit_time > 0}}{datetime="$row->record_edit_time"}{{else}}{datetime="$row->mapped('date')"}{{endif}} {{endif}} </a> </li> {{else}} <li> {template="userPhoto" app="core" group="global" params="$row->author(), 'tiny'"} </li> <li> {$row->author()->link()|raw} </li> <li class="ipsType_light"> <a href='{$row->url()}' class='ipsType_blendLinks'> {datetime="$row->mapped('date')"} </a> </li> {{endif}} </ul> </td>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.