Linking to top of last page instead of last post

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
Satusnovus
Registered User
Posts: 18
Joined: Mon Sep 12, 2016 9:44 pm

Linking to top of last page instead of last post

Post by Satusnovus » Wed Aug 23, 2017 5:17 pm

I'm wondering if it's possible to edit some code to send users towards the top of the last page instead of the last post. For example active topics, the small button after last user who posted a comment links to the last post. Is it possible to link it to the top of the last page?

I'm also using a sidebar at the frontpage of my community, there's almost the same I want to change. The code is as below:

Code: Select all

<!-- IF .top_topics -->
<div class="sidebar">
	<div id="topics{slot.SIDEBAR_ID}" class="note"></div><h3>{L_NEWEST_TOPICS}</h3>
	<div id="innertopics{slot.SIDEBAR_ID}" class="inner tiles-information">
        <div class="tiles-inner">
    	<span class="text-bg">{L_NEWEST_TOPICS}</span>
		<ul class="topiclist">	
			<!-- BEGIN top_topics -->
				<li>
					<!-- IF top_topics.NO_TOPIC_TITLE-->
						{top_topics.NO_TOPIC_TITLE}</li>
					<!-- ELSE -->
					<a href="{top_topics.U_TOPIC}"><span title="{top_topics.TOPIC_TITLE}" class="imageset <!-- IF top_topics.S_UNREAD -->icon_topic_newest<!-- ELSE -->icon_post_target<!-- ENDIF -->">Post</span> <strong>{top_topics.TOPIC_TITLE}</strong></a></li>
					
					<li>{L_IN}&nbsp;<a href="{top_topics.U_FORUM}" title="{top_topics.FORUM_NAME}">{top_topics.FORUM_NAME}</a></li>
					<li>{top_topics.USERNAME_FULL} &raquo; <span title="{top_topics.LAST_TOPIC_TIME}">{top_topics.LAST_TOPIC_TIME}</span><!-- IF not top_topics.S_LAST_ROW --><hr /><!-- ENDIF --></li>
				<!-- ENDIF -->
			<!-- END top_topics -->
		</ul>
        </div>
	</div>
</div>
<!-- ENDIF -->
Is it possible to send users towards the top of the last page instead of the last post?

User avatar
david63
Jr. Extension Validator
Posts: 13129
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Linking to top of last page instead of last post

Post by david63 » Wed Aug 23, 2017 5:54 pm

Out of curiosity - why would you want to go to the top of the last page when there could be 20, 30, 40 posts (depending on your setting) to scroll through to get to the last post?

Without looking at the code I suspect that it would be a major change.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 47981
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Linking to top of last page instead of last post

Post by stevemaury » Wed Aug 23, 2017 6:19 pm

And, of course, what is on the last page is completely dependent on how each individual user has chosen to sort and display topics and posts. Topics could be sorted by Author, or Replies, or Post time, or Views or Subject, and then the posts themselves could be sorted by Post time, Author or Subject. So what is on the last page could be different for different users.
For REALLY good and VERY inexpensive hosting CLICK HERE

All unsolicited PMs will be ignored.

Satusnovus
Registered User
Posts: 18
Joined: Mon Sep 12, 2016 9:44 pm

Re: Linking to top of last page instead of last post

Post by Satusnovus » Wed Aug 23, 2017 6:30 pm

I've 10 posts each page but I've got a mail from Google (Adsense) that the top banner is only showed to less than 40% of the visitors. I know it could be disturbing but with 'just' 10 posts it could be worth editing to raise views. I believe most webmasters wouldn't think about changing it but I can't believe I'm the only one who would like to change it.

Satusnovus
Registered User
Posts: 18
Joined: Mon Sep 12, 2016 9:44 pm

Re: Linking to top of last page instead of last post

Post by Satusnovus » Fri Sep 01, 2017 3:21 pm

So there's no solution for this?

User avatar
Mannix_
Registered User
Posts: 153
Joined: Sun Oct 25, 2015 2:56 pm
Contact:

Re: Linking to top of last page instead of last post

Post by Mannix_ » Fri Sep 01, 2017 3:47 pm

You can always move your ads below the last post at the bottom of the page or duplicate them there. Because the way it's set up as steve mentioned every link would have to link to a specific place on the page like navbar etc. and I don't know if it's possible.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
My CDB contributions . Like my work? Want me to do make a style just for you? PM here or on twitter.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Need some graphics? PM here or on twitter.

Satusnovus
Registered User
Posts: 18
Joined: Mon Sep 12, 2016 9:44 pm

Re: Linking to top of last page instead of last post

Post by Satusnovus » Fri Sep 01, 2017 5:34 pm

But instead of the code above here linking to last post it could be linked to last page. I guess it's simple but I've no idea what I've to change and most members will use the normal settings at the bulletin board.

janus_zonstraal
Registered User
Posts: 1799
Joined: Sat Aug 30, 2014 1:30 pm

Re: Linking to top of last page instead of last post

Post by janus_zonstraal » Fri Sep 01, 2017 6:27 pm

You can change the "default" to display topic order direction: Ascending
Sorry! My English is bat ;) !!!

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: No registered users and 7 guests

cron