MyBB Community Forums

Full Version: How to link back to website from forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have site http://atransc.org and the forum is http://atransc.org/forum/.

I am looking for the link on the forum that will take people back to http://atransc.org.

This is a new installation and migration from an IPBoard.
Go into your AdminCP-)Templates & Style-)Templates-)Theme Name-)Header Templates-)Header and find the following code: 

{$menu_portal}

Once you've found that, press enter to go onto a new line and add the following:
<li><a href="http://atransc.org" class="">Change Me</a></li>
Thanks for the input. I tried the change but nothing changed on the front page of the forum.

Is there additional code I should use?
^ looks like there was a mistake in adding the code. check it once again

assuming that you are using default theme of MyBB

admin panel >> Templates & Style >> Templates >> Default Templates >> Header Templates >> header

<ul class="menu top_links">
{$menu_portal}
you can change like this
<ul class="menu top_links">
<li><a href="http://atransc.org" class="homepage">Home</a></li>
{$menu_portal}
I will try it first thing in the morning. Thanks!

Okay that worked.

Now all I need to do is figure out how to change the magnifying glass icon for my favicon icon.

Thanks for the help!

Tom
Are you wanting to replace an image on the board or replace your favicon?
The addition of links to my main front page and two supporting sites worked using <li><a href="http://atransc.org">ATransC Home</a></li> in the Header Template. However, each has the find.png image beside them that is used for Search.

I can live with that, but would much rather use my ico images. I have them converted to atransc.png and such in the .../forum/image/ folder. Do you know of the right code?

You can see the current results at http://atransc.org/forum/

Thanks!

Tom
first add a css class selector to the links, like below...

<li><a href="http://atransc.org" class="home">ATransC Home</a></li>


and now in global.css add the individual icons for those class...

ul.menu a.home {
background-image: url(ENTER IMAGE PATH HERE) !important;
}


repeat the same for other links....
Let me make sure I have this correct:

I created a "header_menu_atransc" in the header section of the templates with:

<li><a href="http://atransc.org" class="home">ATransC Home</a></li>

Include "{$menu_atransc}" where the others like "{$menu_portal}" are now

Create a new item in the Global CSS :

ul.menu a.home {
background-image: url(images/atransc.png) !important;
}

Where I am using the Images folder just at .../public_htm/forum/images/atransc.png

When i do that, the ling goes away. Can you see what I am doing wrong?

Thanks for the help!

Tom