MyBB Community Forums

Full Version: Insert forum button on header?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I'm looking for help with inserting a button on the top of each of my pages for my website but I don't know how to code a button that will take them to the forum index as I don't actually have a button for that.

I don't know what to insert, if someone could help me out, it would be much appreciated.

Thanks in advance!
Insert to Tour header template:

<a href="index.php">forum</a>
(2014-11-14, 12:58 PM)coxuso Wrote: [ -> ]Insert to Tour header template:

<a href="index.php">forum</a>

Thanks and how would I add a picture/icon for the button next to the text?
<img src="image.png" />
at place where you want image.
In place of image.png put image url.
<a HREF="index.php"><img src="path/to/picture.png" /></a>
(2014-11-14, 01:55 PM)coxuso Wrote: [ -> ]<a HREF="index.php"><img src="path/to/picture.png" /></a>

He sayed he want that next to text so that would be like
<a href="index.php"><img src="path/to/picture.png" /> Forum</a>
or out of link?
^ yes. however its better to use full link for the index - it is like this
<a href="{$mybb->settings['bburl']}/index.php"><img src="path/to/picture.png" />forum</a>

and other links might be in menu list tags, if so it can be like below (inside <ul> tag)
<li><a href="{$mybb->settings['bburl']}/index.php"><img src="path/to/picture.png" />forum</a></li>

Thanks for the help guys!
Im on my phone, so couldn't paste it! But you did!:-)
I don't know yet all that variables so I don't use it...

Anyway that yours code is better .m.