Edit some links on the interface

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
new.new
Registered User
Posts: 59
Joined: Sun Aug 12, 2018 9:53 am

Edit some links on the interface

Post by new.new »

Hi, i need to do 2 changes:


- i need to edit the "member" link in the bottom of the page. Basically i'd like to see immediately the users ordered by the number of post. So i'd like to change the link from http://mysite.com/phpbb/memberlist.php to http://mysite.com/phpbb/memberlist.php? ... memberlist


- i'd like to have the "unread posts" link also on the top bar, something like this:
Image
If it's not possible to have the icon it's not a problem, it's ok to have only the link


I'm using prosilver_se and phpbb3.2.2
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Edit some links on the interface

Post by Lumpy Burgertushie »

first, if you edit the core prosilver files you will have to redo these edits each time you update/upgrade phpbb.

if you are using a different style or if you create a new child style of prosilver, here are the changes needed:

1. open yourstyle/template/navbar_header.html
2. find and copy:

Code: Select all

						<!-- IF S_LOAD_UNREADS -->
							<li>
								<a href="{U_SEARCH_UNREAD}" role="menuitem">
									<i class="icon fa-file-o fa-fw icon-red" aria-hidden="true"></i><span>{L_SEARCH_UNREAD}</span>
								</a>
							</li>
						<!-- ENDIF -->
	
find:

Code: Select all

<!-- EVENT overall_header_navigation_prepend -->
on a new line above that, paste this:

Code: Select all

						<!-- IF S_LOAD_UNREADS -->
							<li>
								<a href="{U_SEARCH_UNREAD}" role="menuitem">
									<i class="icon fa-file-o fa-fw icon-red" aria-hidden="true"></i><span>{L_SEARCH_UNREAD}</span>
								</a>
							</li>
						<!-- ENDIF -->
for the memberlist thing:

1. open yourstyle/template/navbar_footer.html
2. find:

Code: Select all

<a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}" role="menuitem">
3. replace with:

Code: Select all

<a href="{U_MEMBERLIST}?mode=&sk=d&sd=d#memberlist" title="{L_MEMBERLIST_EXPLAIN}" role="menuitem">
save the files, upload them back to the server.

purge the cache, refresh your browser.

done.


rob ert
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.
new.new
Registered User
Posts: 59
Joined: Sun Aug 12, 2018 9:53 am

Re: Edit some links on the interface

Post by new.new »

your code worked perfectly, thanks!
Post Reply

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