Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
AlexWright Posted March 2, 2017 Posted March 2, 2017 Hi all, attempting something here to identify and remove a feature (Last post information from board index) for a single forum, since this was removed. Would something like this work? {{if forum->id(7)}} <li></li> {{else}} When used here: <ul class="ipsDataItem_lastPoster ipsDataItem_withPhoto"> {{if $lastPost}} <li>{template="userPhoto" app="core" group="global" params="$lastPost['author'], 'tiny'"}</li> {{if $lastPost['topic_title']}}<li><a href="{$lastPost['topic_url']->setQueryString( 'do', 'getNewComment' )}" title='{$lastPost['topic_title']}'>{truncate="$lastPost['topic_title']" length="26"}</a></li>{{endif}} <li class='ipsType_blendLinks'>{lang="byline_nodate" htmlsprintf="$lastPost['author']->link()"}</li> {{if $lastPost['topic_title']}} <li class="ipsType_light"><a href='{$lastPost['topic_url']->setQueryString( 'do', 'getLastComment' )}' title='{lang="get_last_post"}' class='ipsType_blendLinks'>{datetime="$lastPost['date']"}</a></li> {{else}} <li class="ipsType_light">{datetime="$lastPost['date']"}</li> {{endif}} {{else}} <li class='ipsType_light ipsResponsive_showDesktop'>{{if $forum->password}}{lang="no_forum_posts_password"}{{else}}{lang="no_forum_posts"}{{endif}}</li> {{endif}} </ul> If it would, how would one go about excluding that one ID'd forum from that template? (The above listed code doesn't work, obviously.) Thanks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.