I own a phpbb forum which uses the prosilver phpbb theme and I wanted to add a link to external website in the navigation header of the forum.
Here is how I did it:
On phpbb forum installation on Debian Linux the file which needs to be changed is called overall_header.html
The overall_header file name is found on 4 times on my install, as follows:
/usr/share/phpbb3/styles/prosilver/template/overall_header.html
/usr/share/phpbb3/www/adm/style/overall_header.html
/var/cache/phpbb3/cache/ctpl_admin_overall_header.html.php
/var/cache/phpbb3/cache/tpl_prosilver_overall_header.html.php
The files which I had to modify to add my external link to the forum navigation bar were:
/usr/share/phpbb3/styles/prosilver/template/overall_header.html
/var/cache/phpbb3/cache/tpl_prosilver_overall_header.html.php
Therefore to add the external link to the forum edit the two files overall_header.html and tpl_prosilver_overall_header.html.php
In each of the files look up for the code:
<ul class="linklist navlinks">
After the end of this code section which ends up with >/ul< add the following html code:
<ul class="linklist navlinks2"><li><a href="http://newurladdr.com"> newurladdr </a> •</li>
<a href="http://newurl.com"> newurl </a>
</ul>
Now save the files and go to your forum, the newly added links will show up. Enjoy
More helpful Articles
Tags: How to Add new links to PHPBB forum navigation bar on prosilver theme
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.25) Gecko/20111212 Firefox/3.6.25
what file would you edit in order to add header navigation to PHPBB forum?
View CommentView Commentthanks
Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-1) Epiphany/2.30.6
Hi if you’re on Debian, you should edit something like:
/usr/share/phpbb3/cache/tpl_prosilver_overall_header.html.php
Also experiment with adding to different files which name contain header.
For example:
debian:/usr/share/phpbb3/www/cache# ls *head*
ctpl_admin_overall_header.html.php tpl_prosilver_overall_header.html.php tpl_prosilver_ucp_pm_message_header.html.php
ctpl_admin_simple_header.html.php tpl_prosilver_simple_header.html.php
tpl_prosilver_mcp_header.html.php tpl_prosilver_ucp_header.html.php
Note that if the cache is cleared using the PHPBB3 Admin Control Panel, the changes you made will be lost. For permament changes you will have to edit in:
View CommentView Comment/usr/share/phpbb3/styles/subsilver2/template/*
or in
/usr/share/phpbb3/styles/prosilver/template/*