New Posts link on every page?

General topics relating to phpBB3 to be posted in here.
Post Reply
2Zero
Forum Member
Forum Member
Posts: 6
Joined: Fri Jul 24, 2009 4:42 am

New Posts link on every page?

Post by 2Zero »

I am trying to add the new posts link on every page not just on the Board index page


can someone help me find out how to do that??
User avatar
LDM
Site Admin
Site Admin
Posts: 1786
Joined: Thu May 29, 2008 6:51 pm

Re: New Posts link on every page?

Post by LDM »

Try this, open viewforum_body.html in your style/template

Find:

Code: Select all

<!-- IF U_MCP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ENDIF -->
Add BEFORE:

Code: Select all

<!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) -->
<ul class="linklist">
	<!-- IF S_DISPLAY_SEARCH -->
		<li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><!-- IF S_USER_LOGGED_IN --> &bull; <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><!-- ENDIF --> &bull; <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></li>
	<!-- ENDIF -->
	<!-- IF not S_IS_BOT and U_MARK_FORUMS --><li class="rightside"><a href="{U_MARK_FORUMS}" accesskey="m">{L_MARK_FORUMS_READ}</a></li><!-- ENDIF -->
</ul>
<!-- ENDIF -->
Open viewtopic_body.html

Find:

Code: Select all

<!-- IF U_MCP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ENDIF -->
Add BEFORE:

Code: Select all

<!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) -->
<ul class="linklist">
	<!-- IF S_DISPLAY_SEARCH -->
		<li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><!-- IF S_USER_LOGGED_IN --> &bull; <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><!-- ENDIF --> &bull; <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></li>
	<!-- ENDIF -->
	<!-- IF not S_IS_BOT and U_MARK_FORUMS --><li class="rightside"><a href="{U_MARK_FORUMS}" accesskey="m">{L_MARK_FORUMS_READ}</a></li><!-- ENDIF -->
</ul>
<!-- ENDIF -->
Upload files and purge template cache.

That is untested, so post back any probs and we'll have a look.
2Zero
Forum Member
Forum Member
Posts: 6
Joined: Fri Jul 24, 2009 4:42 am

Re: New Posts link on every page?

Post by 2Zero »

It worked on the first level down but it doesn't any farther down,

I found the first line and before it I added the new code, was that right??
then I purged the cache for the view body cache

Is that right??
2Zero
Forum Member
Forum Member
Posts: 6
Joined: Fri Jul 24, 2009 4:42 am

Re: New Posts link on every page?

Post by 2Zero »

I GOT IT!!

I had only added it to one place not both,
When I did it works perfect!!!

Thanks!!
User avatar
LDM
Site Admin
Site Admin
Posts: 1786
Joined: Thu May 29, 2008 6:51 pm

Re: New Posts link on every page?

Post by LDM »

Good news :thumbsup:
JONAS
Forum Member
Forum Member
Posts: 8
Joined: Mon Sep 07, 2009 7:53 pm

Re: New Posts link on every page?

Post by JONAS »

This is a great mod! :D

I input the codes carefully where stated, but have got stuck with it though- my 'new posts' links appear not on the homepage but on the title boards within the site, below the main link (ie. Introductions).

How do I get them to appear on the homepage also? Any help please?
Post Reply