Jump to content

Can Hyperlinks Be Added To Phpbb Main Page?


Recommended Posts

Hi dderolph,


Yes you can, quite simple with a little HTML knowledge.

The file to edit is the 'overall_header.tpl', located in the 'templates' directory of your phpbb install. If you are still using the 'stock' skin, then the theme directory to look in is the 'subSilver'.

It is in this file you can change the file name of the logo upper left. Looking on through the code you will see the image tags for the icons etc, to get your self an idea where you are at on the page.


HTH, hollar back if you need more help :P Tom

Link to comment
Share on other sites

Thanks for your response. Would I edit the .tpl file with Notepad? In other words, I would download it via my FTP client, open it with Notepad, modify it, save it, then upload it to the server, thereby overwriting the original file?

Link to comment
Share on other sites

Actually, making the sitename that appears right at the top of the main forum a hyperlink would be acceptable. I found this coding in the .tpl file you mentioned:


<span class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br />  </span>


I am not clear on the significance of the brackets, {}, used in this coding. It looks replacing SITENAME with a hyperlink to the home page would work. Can you tell me if I can just replace {SITENAME} or with an href tag containing the URL to the home page would work?


If such a modification will work, I believe that would render the modification of the template file to change the SITENAME, via the forum control panel, unworkable. But, as long as I remember that I'm made this modification, I suppose this is not a problem.

Link to comment
Share on other sites

You can do it that way or use the file manager in cPanel and edit the file from there.

Thanks you. The file manager in cPanel makes the file much easier to read than trying to read it in Notepad. And, I did locate {SITENAME} in the lower part of the template file, replaced it with an anchor tag containing the sitename, and that worked.

Link to comment
Share on other sites

Hey that's how I learned about phpbb, trial and error. This is what I like about phpbb, it is so easy to modify compared to Invision.

><span class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br />  </span>

The 'sitename' etc, contained in the '{___}' are values pulled from what you enter on the phpbb configuation page. What ever is there, is what is displayed. You could go like this if desired

><span class="maintitle"><a href="http://www.mywebsite.com">{SITENAME}</a></span><br /><span class="gen">{SITE_DESCRIPTION}<br />  </span>

That way you keep the 'standard' look, but making it clickable.


Yes, Notepad can have 'formatting' problems with the '.tpl' files, also .php files.

I use EditPad Pro here http://www.editpadpro.com/


Be warned that phpbb seems to be the 'forum of choice' for all the evil do'ers at trying to hack it. phpbb comes out with new updates quite often, so keep up on them.


Well Enjoy :P , Tom

Link to comment
Share on other sites

Tom, thanks for the additional info. I think I'm going to make a minor change to what I did, based on your comment; I'm going to put the {SITENAME} back in the anchor tag.


That text editor you mentioned, EditPad Pro, looks like a nice tool. I'll make a note of it.


And, thanks for that last tip on phpBB.



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...