Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted September 23, 200915 yr After reading a topic and getting to the bottom I would be nice to have a breadcrumb after the last reply. This is a feature many other boards have, I was able to edit templates in 2.3 to do this but unable to mimic it in 3.
September 24, 200915 yr You will need to edit the globaltemplate find<div id='footer_utilities' class='clearfix clear rounded'> BEFORE it add.... <div id='secondary_nav'> <ul id='breadcrumb' class='left'> <php>$this->did_first = 0;</php> <if test="switchnavigation:|:!$this->settings['remove_forums_nav'] OR ipsRegistry::$current_application == 'forums'"> <li class='first'><a href='{parse url="act=idx" seotitle="false" base="public"}'>{$this->settings['board_name']}</a></li> <if test="didfirstnav:|:$this->did_first=1"></if> </if> <foreach loop="navigation:$items['navigation'] as $idx => $data"> <li<if test="notdonefirstapp:|:!$this->did_first"> class='first'</if>><if test="didfirstappnow:|:$this->did_first"><span class='nav_sep'>></span></if> <if test="navigationlink:|:$data[1]"><a href='{parse url="{$data[1]}" base="public" seotitle="$data[2]" template="$data[3]"}' title='{$this->lang->words['nav_return_to']}{$data[0]}'></if>{$data[0]}<if test="closenavigationlink:|:$data[1]"></a></if></li> <if test="forsuredidfirstnav:|:$this->did_first=1"></if> </foreach> </ul> </div>
September 24, 200915 yr [quote name='.Ian' date='24 September 2009 - 11:25 AM' timestamp='1253805919' post='1860797'] You will need to edit the globaltemplate You will need to make the ids unique on the page and update the CSS for those ids if you want valid HTML on your pages.
September 24, 200915 yr True - but then most hooks including the shoutbox ruin any w3 validation. But I take your point.
September 24, 200915 yr BTW, there is a link to go to the forum containing the topic at the bottom of the page in the Previous/Next links. This is probably enough for most people and these people don't really need the full breadcrumbs repeated at the bottom.
September 24, 200915 yr [quote name='.Ian' date='24 September 2009 - 12:02 PM' timestamp='1253808148' post='1860803'] True - but then most hooks including the shoutbox ruin any w3 validation. I wouldn't run with anything that breaks validation. It just shows that the developer wasn't very careful in coding the mod. Making ids unique is an absolute requirement for me as there is more and more JS executing on these pages and the distinction between IDs and CLASSes really needs to be observed. It doesn't take but a minute to suffix a '2' (or other unique suffix) onto the duplicate ids to make them unique and to add styling for that id if the original id has CSS styling.
September 24, 200915 yr Author [quote name='.Ian' date='24 September 2009 - 11:25 AM' timestamp='1253805919' post='1860797'] You will need to edit the globaltemplate This puts it at the bottom of the page and depending on your skin or other elements you may have puts it quite outa the way. I'm looking for something right under the last reply in forumIndexTemplate and topicViewTemplate.
Archived
This topic is now archived and is closed to further replies.