Jump to content


How To: Make the subject of a topic go to the first unread post


  • You cannot start a new topic
  • You cannot reply to this topic
1 reply to this topic

#1 Ian

    Member

  • 9 posts
  • Joined: December 13, 2009
  • 7 topics
  • Skin: IP.Board
  • Local time: 06:51 PM
  • Zodiac:Aquarius
  • Gender:Male
  • OS:Windows 7
  • Country:
Offline
  • :

Posted 19 December 2009 - 05:13 PM

If your members are anything like mine, they fail to spot the small indicator on the left of unread topics and click on the subject itself. Of course this is fine for a topic they have yet to read, but for one that is 3 pages long it is a pain.
They can either go back and hit the button, or scroll away to find where they last read up to.

If you wish therefore for your users to be able to click on the subject and go to the first unread post, then make this simple change. I have also bolded the subject of unread posts as this is also rather weak.

Okay on to the changes required.... (this is for the default skin - but should apply to any skin)

1) Go to ACP ---> Look & Feel
2) Click on the skin marked IP.Board
3) On the left of the main part of the screen the Global Templates subsection will have automatically opened (or should have) - you can close this by clicking on Global Templates
3) Scroll down on the left until you see Forum View. Click on Forum View to open up the sub-menu. Click on forumIndexTemplate to open that on the right.
4) The forumIndexTemplate will now open for you.
5) Find the following code (just below <!-- SKINNOTE: This is the link for the attachments popup --> about half way down)


<if test="istracking:|:! empty($data['trackingTopic'])">{parse replacement="watch_small"}</if>
                                                        <a id="tid-link-{$data['tid']}" href="{parse url="showtopic={$data['tid']}" base="public" template="showtopic" seotitle="{$data['title_seo']}"}" title='{$this->lang->words['topic_started_on']} {$data['start_date']}' class='topic_title'>{$data['title']}</a>

Change to


<if test="istracking:|:! empty($data['trackingTopic'])">{parse replacement="watch_small"}</if> 
                                                         <if test="gotonewpost:|:$data['go_new_post'] === true"><b><a id="tid-link-{$data['tid']}" href="{parse url="showtopic={$data['tid']}&amp;view=getnewpost" base="public" template="showtopic" seotitle="{$data['title_seo']}"}" title='{$this->lang->words['first_unread_post']}{$this->lang->words['topic_started_on']} {$data['start_date']}' class='topic_title'><b>{$data['title']}</b></a>
<else />
                                                        <a id="tid-link-{$data['tid']}" href="{parse url="showtopic={$data['tid']}" base="public" template="showtopic" seotitle="{$data['title_seo']}"}" title='{$this->lang->words['topic_started_on']} {$data['start_date']}' class='topic_title'>{$data['title']}</a></if>

6) Click on Save.

Your unread posts should now be bold and go to the first unread post, when clicking on the subject.

Note: In some skins (ip.duo for example) - $this->lang->words['topic_started_on']} is showing as 'Topic started on' rather than a language file reference - so in other words the line might be slightly different.

#2 jboucicaut Re: How To: Make the subject of a topic go to the first unread post

    Member

  • 1 posts
  • Joined: September 19, 2011
  • 0 topics
  • Local time: 01:51 PM
  • Zodiac:Leo
  • OS:Mac
  • Country:
Offline
  • Time Online: 15m 5s

Posted 19 September 2011 - 04:54 PM

How is this done for IP Board 3.2?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 17 user(s)