Moving a link off of Quick Links phpBB3.1.3

For support and discussion related to templates, themes, and imagesets in phpBB 3.1.
Get Involved
KB_Thailand
Registered User
Posts: 55
Joined: Mon Feb 03, 2014 2:02 am
Location: Thailand
Name: Ken

Moving a link off of Quick Links phpBB3.1.3

Post by KB_Thailand »

Ok, I've searched and searched, but have been unable to find anything relating to this, so either nobody has asked, or I haven't hit the right combination of words. ;)

I am trying to move the New Posts link off of the Quick Links dropdown, or just create a new one, and place it on the forum main page like it was before the upgrade to 3.1. I've manage to do mods for my board that work in other areas, like increase the default font size, expand the Last Post column to 40 characters, and expand the overall width of the forum, but haven't been able to quite put this one together.

Any info appreciated!
Thanks!
KB

Here's the idea:
QuickLink.jpg
ToWhere.jpg
You do not have the required permissions to view the files attached to this post.
Last edited by Oyabun1 on Mon Mar 23, 2015 5:01 am, edited 1 time in total.
Reason: Moved from 3.1.x Support forum
“Reason is poor propaganda when opposed by the yammering, unceasing lies of shrewd and evil and self-serving men."
-- Robert A. Heinlein
Swanny
Registered User
Posts: 486
Joined: Sun Apr 14, 2002 2:11 am
Location: Canada

Re: Moving a link off of Quick Links phpBB3.1.3

Post by Swanny »

This would be nice to have. I upgraded my biggest forum today and I suspect people will have a hard time adjusting since some of those old options are now under Quick links, hidden away.
KB_Thailand
Registered User
Posts: 55
Joined: Mon Feb 03, 2014 2:02 am
Location: Thailand
Name: Ken

Re: Moving a link off of Quick Links phpBB3.1.3

Post by KB_Thailand »

Exactly...first thing my members said after the upgrade: "where did the New Posts link go?" I know it is pretty petty, but doing two clicks where it used to be one seems to be an issue. ;) For new members, it is not intuitive to look under something called Quick Links for forum links, as that wording is more often used for external links I think.

I was doing some code reading today, and I think I may have a clue as to how to change it. If I succeed in doing so, I will post the changes here. In the interim, if anyone is fairly sure how to accomplish this, please do let me know.

Thanks,
KB
“Reason is poor propaganda when opposed by the yammering, unceasing lies of shrewd and evil and self-serving men."
-- Robert A. Heinlein
KB_Thailand
Registered User
Posts: 55
Joined: Mon Feb 03, 2014 2:02 am
Location: Thailand
Name: Ken

Re: Moving a link off of Quick Links phpBB3.1.3

Post by KB_Thailand »

Caveat: this is most probably NOT the best/correct way to do this, but it works on my board with prosilver. I used the existing mark-read class just because it was already there, aligned with the real mark-read link while a list link did not, and matched font size. :lol: I just added a separate link instead of removing New Posts from the Quick Links menu.
Since this is inside an IF U_MARK_FORUMS statement, if you turn off the ability to mark forums read (if you can--don't know but assume that is what U_MARK_FORUMS is) then this code will not execute and you will get no link. You can figure it out from there. ;)

Go to Styles->Prosilver->Template and edit index_body.html
Find this (it is close to the top of the file):

Code: Select all

<!-- IF U_MARK_FORUMS -->
	<div class="action-bar compact">
		<a href="{U_MARK_FORUMS}" class="mark-read rightside" accesskey="m" data-ajax="mark_forums_read">{L_MARK_FORUMS_READ}</a>
	</div>
<!-- ENDIF -->
Between the div class statement and the mark-read href, insert this:

Code: Select all

<a href="./search.php?search_id=newposts" class="mark-read leftside">New posts</a>
So the block looks like:

Code: Select all

<!-- IF U_MARK_FORUMS -->
	<div class="action-bar compact">
		<a href="./search.php?search_id=newposts" class="mark-read leftside">New posts</a> 
		<a href="{U_MARK_FORUMS}" class="mark-read rightside" accesskey="m" data-ajax="mark_forums_read">{L_MARK_FORUMS_READ}</a>
	</div>
<!-- ENDIF -->
This produces the following on my board:
NewPosts.jpg
I hope it helps someone else. :)
KB
You do not have the required permissions to view the files attached to this post.
“Reason is poor propaganda when opposed by the yammering, unceasing lies of shrewd and evil and self-serving men."
-- Robert A. Heinlein
KB_Thailand
Registered User
Posts: 55
Joined: Mon Feb 03, 2014 2:02 am
Location: Thailand
Name: Ken

Re: Moving a link off of Quick Links phpBB3.1.3

Post by KB_Thailand »

Sorry Livakee, no idea on that. Maybe some of the other folks who have multi language boards can answer it for you. :)

If I had to guess, there is probably a variable for that link under the Quick Links menu, so take a look there and see if that is the case. At that point, maybe just insert the variable where the 'New Posts' text is. Just a guess off the top of my head as has been a couple of years since I looked at this.
“Reason is poor propaganda when opposed by the yammering, unceasing lies of shrewd and evil and self-serving men."
-- Robert A. Heinlein
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Moving a link off of Quick Links phpBB3.1.3

Post by david63 »

Livakee wrote: Thu Nov 23, 2017 12:48 pm how can I have them translated automatically when I change the forum language?
Change this

Code: Select all

<a href="./search.php?search_id=newposts" class="mark-read leftside">New posts</a>
to be

Code: Select all

<a href="./search.php?search_id=newposts" class="mark-read leftside">{L_NEW_POSTS}</a>
but be aware the the language variable NEW_POSTS is depreciated
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

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