Previous Thread
Next Thread
Print Thread
Hop To
#241356 01/25/2011 11:03 PM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
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

ECNet #241386 01/27/2011 12:49 PM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
(using ver 7.5.4.2)

ECNet #241399 01/28/2011 12:18 AM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
yes, would be a non-stock modification to scripts/activetopics.inc.php


SD #241401 01/28/2011 12:55 AM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
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
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
I found this description in an old UBB.Threads Users Guide:

Quote
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. confused

Bill

ECNet #241426 01/28/2011 11:37 PM
Joined: Jun 2006
Posts: 16,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
I'm pretty sure it's this bit of code in templates/default/activetopics.tpl
Find:
Code
		<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)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
Gizmo,

Thanks for the Reply.

I changed
Quote
<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:
Quote
<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
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
I believe they both use the same code, so not really offhand


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
ECNet #241472 01/30/2011 10:15 PM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
Quote
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. confused

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? blush

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
smile


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
3 members (Geoff, Gizmo, 1 invisible), 634 guests, and 178 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)