|
Joined: Mar 2007
Posts: 285 Likes: 1
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 285 Likes: 1 |
Is there a way to have 'Active Topic' and 'Recent Topic' Thread Links point to the first post in a thread, rather than the last post?
Bill
|
|
|
|
Joined: Mar 2007
Posts: 285 Likes: 1
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 285 Likes: 1 |
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
yes, would be a non-stock modification to scripts/activetopics.inc.php
|
|
|
|
Joined: Mar 2007
Posts: 285 Likes: 1
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 285 Likes: 1 |
Any hints?
I just noticed the Recent Topics Island here points to the beginning of a thread rather than the last post.
Was that a modification, or something that came with a recent upgrade?
Bill
|
|
|
|
Joined: Mar 2007
Posts: 285 Likes: 1
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 285 Likes: 1 |
I found this description in an old UBB.Threads Users Guide: View Threads that Contain New Posts From the forum page, look for threads that have the yellow folder next to them: . These threads contain posts you have not yet read. If you click on the yellow arrow next to the post subject, you will be taken to the first unread post in that thread. If you click on the subject itself you will be taken to the first post in the thread, ... I'd like the 'Active Topics' links to work similarly. They seem to be backwards. If there's a arrow next to something (says 'Jump to new posts') and you click it takes you to the beginning of a thread, whereas clicking the thread title will take you to the recent post. Bill
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
I'm pretty sure it's this bit of code in templates/default/activetopics.tpl Find: <div {$topics[row].tool_tip}>
{if $topics[row].gonew}
<a href="{ubb url="ubb=show`$display`&topic=`$topics[row].topic_id`&gonew=1#UNREAD"}"><img src="{$config.BASE_URL}/images/{$style_array.general}/gotonew.gif" alt="{$lang.JUMP_NEW}" title="{$lang.JUMP_NEW}" /></a>
{/if}
<a href="{ubb url="ubb=show`$display`&Number=`$topics[row].post_id`#Post`$topics[row].post_id`" title=$topics[row].post_subject}">{$topics[row].post_subject}</a>
{$lang.TEXT_BY} {$topics[row].poster_name}
@ {$topics[row].post_time}<br />
</div>
Not 100% sure offhand on what to replace the if statement with right this second (as I'm out right now)
|
|
|
|
Joined: Mar 2007
Posts: 285 Likes: 1
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 285 Likes: 1 |
Gizmo, Thanks for the Reply. I changed <a href="{ubb url="ubb=show`$display`&Number=`$topics[row].post_id`#Post`$topics[row].post_id`" title=$topics[row].post_subject}">{$topics[row].post_subject}</a> to: <a href="{ubb url="ubb=show`$display`&topic=`$topics[row].topic_id`" title=$topics[row].post_subject}">{$topics[row].post_subject}</a> This gave me what I wanted on the 'Active Topics' page where the text link points to the beginning of the thread. Unfortunately, it also changed the links on the 'Active Posts' page. any ideas?
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
I believe they both use the same code, so not really offhand
|
|
|
|
Joined: Mar 2007
Posts: 285 Likes: 1
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 285 Likes: 1 |
If there's a arrow next to something (says 'Jump to new posts') and you click it takes you to the beginning of a thread, whereas clicking the thread title will take you to the recent post. Bill I just realized that I have 'Show total # of unread replies in topics' turned off forum wide. That would cause the arrow to not work as expected, right? Anyway, thanks for the input Gizmo. I got rid of the 'IF' statement so the Arrow is always there, and changed the link to point to the last post in the thread. Not perfect, but together with the text link change it gives 2 options I was looking to provide there. Bill
|
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
3 members (Geoff, Gizmo, 1 invisible),
634
guests, and
178
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|