Page 1 of 1

Edit some links on the interface

Posted: Fri Aug 17, 2018 11:04 am
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

Re: Edit some links on the interface

Posted: Fri Aug 17, 2018 5:26 pm
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

Re: Edit some links on the interface

Posted: Fri Aug 17, 2018 9:36 pm
by new.new
your code worked perfectly, thanks!