Previous topic/next topic in prosilver

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Suggested Hosts
Brad Walker
Registered User
Posts: 101
Joined: Wed Mar 12, 2003 6:54 pm

Previous topic/next topic in prosilver

Post by Brad Walker »

I'd like to modify prosilver to add a Previous topic/next topic link above each thread (just below where it currently reads "First Unread Post"). Can anyone suggest the necessary code changes?

Thanks.
User avatar
Daz
Registered User
Posts: 5236
Joined: Fri Dec 07, 2001 2:39 pm
Location: Yorkshire, UK

Re: Previous topic/next topic in prosilver

Post by Daz »

Hi,

Add;

Code: Select all

<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a>
And

Code: Select all

<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a>
Wherever you need them in viewtopic_body.html.

Daz
Please and Thank You works wonders...
I reserve the right to post illogical (and totally wrong) replies.
...It's the subtle perfection in attention to detail that makes your work rock the way it does - cdkrg
Think simple - it's not necessarily what you draw that matters, it's what you perceive - Daz

Note: ForumImages<dot>com is no longer anything to do with me.
Brad Walker
Registered User
Posts: 101
Joined: Wed Mar 12, 2003 6:54 pm

Re: Previous topic/next topic in prosilver

Post by Brad Walker »

Thanks very much. Worked perfectly.

Note for others who might want to do this: It works well if you also modify the CSS code. I used the following:

.prev-next-topic {
height: 1%; /* IE tweak (holly hack) */
width: auto;
margin-right: 20px;
margin-top: 5px;
float: right;
}

This places the previous/post text just to the left of the number of posts/page number information at the top of the thread in prosilver viewtopic_body.html.
BillyBobGuy
Registered User
Posts: 8
Joined: Fri Jun 27, 2008 9:02 pm

Re: Previous topic/next topic in prosilver

Post by BillyBobGuy »

thank you so much brad and daz...i was looking so hard for this mod and i finally found this post.. :D
ricktan150
Registered User
Posts: 97
Joined: Tue May 05, 2009 4:46 am
Location: Chicago

Re: Previous topic/next topic in prosilver

Post by ricktan150 »

Hi:
This is a mod I was looking for as well!

Can someone tell me where exactly to place the 2 code lines above within viewtopic_body.html? Much appreciated. Thanks!
User avatar
Manhattan
Registered User
Posts: 211
Joined: Fri Nov 28, 2008 7:55 pm

Re: Previous topic/next topic in prosilver

Post by Manhattan »

ricktan150 wrote:Hi:
This is a mod I was looking for as well!

Can someone tell me where exactly to place the 2 code lines above within viewtopic_body.html? Much appreciated. Thanks!
Find:

Code: Select all

<!-- IF U_VIEW_UNREAD_POST and not S_IS_BOT --><a href="{U_VIEW_UNREAD_POST}">{L_VIEW_UNREAD_POST}</a> &bull; <!-- ENDIF -->
Add before:

Code: Select all

<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> &bull; <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a> &bull;
ricktan150
Registered User
Posts: 97
Joined: Tue May 05, 2009 4:46 am
Location: Chicago

Re: Previous topic/next topic in prosilver

Post by ricktan150 »

Thank you very much. Easy mod.

Would you happen to know if this would work for View Active Topics as well - in the sense that it would scroll between View Active Topics result set and not the forum in which the post resides? It is currently behaving that way within View Active Topics?

Within the forum this is perfect.

Any help is appreciated. Thanks!
ricjonhay
Registered User
Posts: 247
Joined: Tue Feb 16, 2010 6:08 pm

Re: Previous topic/next topic in prosilver

Post by ricjonhay »

Thanks for sharing came in usefull for a request a user made, I added mine to the jumpbox.html page and used the following code

Code: Select all

<a href="{U_VIEW_OLDER_TOPIC}" class="left-box {S_CONTENT_FLOW_BEGIN}" accesskey="r">{L_VIEW_PREVIOUS_TOPIC}</a>
<a href="{U_VIEW_NEWER_TOPIC}" class="right-box {S_CONTENT_FLOW_END}" accesskey="r">{L_VIEW_NEXT_TOPIC}</a>
Emrys857
Registered User
Posts: 3
Joined: Sat Mar 03, 2012 6:13 am

Re: Previous topic/next topic in prosilver

Post by Emrys857 »

Where do I add the CSS code?
User avatar
nextgen
Registered User
Posts: 2395
Joined: Mon Jul 26, 2010 10:58 pm
Location: Guatemala
Name: Melvin García

Re: Previous topic/next topic in prosilver

Post by nextgen »

Emrys857 wrote:Where do I add the CSS code?
In your css file's

example: colours.css or common.css in the final of the archive
メルビン・ガルシア • nextgen SolutionsDDAnimeXenForo Hispano

Please do NOT contact for support via PM or email.
Zaimejs
Registered User
Posts: 115
Joined: Thu Oct 05, 2006 1:55 pm
Location: Omaha
Name: Jeff

Re: Previous topic/next topic in prosilver

Post by Zaimejs »

I just found this, and I searched my prosilver viewtopic_body.html, but I did not find this code: <!-- IF U_VIEW_UNREAD_POST and not S_IS_BOT --><a href="{U_VIEW_UNREAD_POST}">{L_VIEW_UNREAD_POST}</a> &bull; <!-- ENDIF -->

so I don't know where to add the code to add the next topic button. Any help?
Not all of us are here.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69228
Joined: Mon May 02, 2005 3:11 am

Re: Previous topic/next topic in prosilver

Post by Lumpy Burgertushie »

in an unaltered viewtopic_body.html file, it is on line 50 like this:
<!-- IF PAGINATION or TOTAL_POSTS -->
<div class="pagination">
<!-- IF U_VIEW_UNREAD_POST and not S_IS_BOT --><a href="{U_VIEW_UNREAD_POST}">{L_VIEW_UNREAD_POST}</a> &bull; <!-- ENDIF -->{TOTAL_POSTS}
<!-- IF PAGE_NUMBER --><!-- IF PAGINATION --> &bull; <a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> &bull; <span>{PAGINATION}</span><!-- ELSE --> &bull; {PAGE_NUMBER}<!-- ENDIF --><!-- ENDIF -->
</div>
<!-- ENDIF -->
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
yaashul
Registered User
Posts: 331
Joined: Mon Apr 17, 2006 3:21 pm
Location: India

Re: Previous topic/next topic in prosilver

Post by yaashul »

I would Like previous topic and next topic not to show on 1st and last topic of forum.

<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a>

This code shud not work if we r already on post 1 bcoz there is no newer topic. generally some kind of <!--if code is required. Can someone suggest me what wud be the code.
GermanStar
Registered User
Posts: 36
Joined: Wed Aug 21, 2013 8:36 pm

Re: Previous topic/next topic in prosilver

Post by GermanStar »

This doesn't work properly when the forum is set to Sort by: Subject. It only seems to work with Sort by: Post time. How do I get this feature to respect sort options?

Edit: I just checked and this is a bug in Subsilver.
Avenlanzer
Registered User
Posts: 4
Joined: Sat Sep 21, 2013 10:35 pm

Re: Previous topic/next topic in prosilver

Post by Avenlanzer »

Works great. My users have been begging for this for a while. If only I'd known it was this easy to add. Thanks.
Compass Rose Keep
"The gamer's citadel"
Home of the Compass Rose Guild

Return to “[3.0.x] Styles Support & Discussion”