MyBB Community Forums

Full Version: Insert a Button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I would like to add a button next to "Calendar." This is the gambling hall.
The code would be:
<li><a href="{$mybb->settings['bburl']}/portal.php"><img src="Pfad_zum_Bild.gif" alt="" />Portal</a></li>
How should the code look as if the path to the picture games / images / games.png is?
<li><a href="{$mybb->settings['bburl']}/portal.php"><img src="/images/games.png" alt="" />Portal</a></li>
Try this;
<li><a href="{$mybb->settings['bburl']}/games.php"><img src="images/games.png" alt="" />Games</a></li>

Make sure your games page located in the forum's root folder.
Thx, Yaldaram. Your code is correct.
But this is my header and there isn't calendar oder something like that. What can I do? I ask because it is otherwise in the wrong place.

Quote:<a name="top" id="top"></a>
<div id="header">
{$welcomeblock}
<div id="content">
{$pm_notice}
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
{$pending_joinrequests}
<navigation>
<br />
(2011-08-08, 09:57 AM)darki Wrote: [ -> ]Thx, Yaldaram. Your code is correct.
But this is my header and there isn't calendar oder something like that. What can I do? I ask because it is otherwise in the wrong place.

Quote:<a name="top" id="top"></a>
<div id="header">
{$welcomeblock}
<div id="content">
{$pm_notice}
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
{$pending_joinrequests}
<navigation>
<br />
which header template are you looking at ?
This is the header from my using theme.
(2011-08-08, 10:52 AM)darki Wrote: [ -> ]This is the header from my using theme.
so there are no refs to your toplinks menu or are your toplinks menu items coded in another template ? or do you have a toplinks menu at all ?

My board: http://algrapez.net/index.php
In other header templates are carlendar, help and something like that.
(2011-08-08, 10:59 AM)darki Wrote: [ -> ]My board: http://algrapez.net/index.php
In other header templates are carlendar, help and something like that.

Quote:In other header templates are carlendar, help and something like that.
Thats where you need to put your code if you wish to dock the games link next to calendar but I notice your site does not use icons on the menu so you may not want to put
<img src="images/games.png" alt="" />
in
That was my next question. Smile Ty
Now I do not yet know where and how I need to have that. When I paste it into another template themes, which makes no sense because the user must then change the design to see the button.
Pages: 1 2