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: 98
Joined: Mon Sep 12, 2016 9:44 pm

Linking to top of last page instead of last post

Post by Satusnovus »

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
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

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

Post by david63 »

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!

I now no longer support any of my extensions but they will start to become available here
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52768
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 »

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.
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
Satusnovus
Registered User
Posts: 98
Joined: Mon Sep 12, 2016 9:44 pm

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

Post by Satusnovus »

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: 98
Joined: Mon Sep 12, 2016 9:44 pm

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

Post by Satusnovus »

So there's no solution for this?
User avatar
Mannix_
Registered User
Posts: 1838
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt
Contact:

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

Post by Mannix_ »

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.
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
Satusnovus
Registered User
Posts: 98
Joined: Mon Sep 12, 2016 9:44 pm

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

Post by Satusnovus »

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.
User avatar
janus_zonstraal
Registered User
Posts: 6418
Joined: Sat Aug 30, 2014 1:30 pm

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

Post by janus_zonstraal »

You can change the "default" to display topic order direction: Ascending
Sorry! My English is bat ;) !!!
Satusnovus
Registered User
Posts: 98
Joined: Mon Sep 12, 2016 9:44 pm

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

Post by Satusnovus »

Sorry for my late reply, but using ascending to show up isn't the solution.

I still don't know the solution but it wouldn't be that difficult to show the top of a page when clicking at 'last post' or the icon next to a member who posted the last message at a subject. Only difference is not showing directly the last post but show the start of the last page.
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72339
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

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

Post by KevC »

Just click the last pagination number.
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
Satusnovus
Registered User
Posts: 98
Joined: Mon Sep 12, 2016 9:44 pm

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

Post by Satusnovus »

I can't tell users to click at the last pagination number, I would like to edit the code that the small icon right behind last poster redirect to top of the last page instead of the last post.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26502
Joined: Fri Aug 29, 2008 9:49 am

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

Post by Mick »

You may be better off making an extension request.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72339
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

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

Post by KevC »

Of course you can tell them. They're not thick. They'll learn it within minutes.
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
Post Reply

Return to “phpBB Custom Coding”