MyBB Community Forums

Full Version: How do I add a new button to the casual buttons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How do I add a new button to the casual buttons.
Top of the page, such as a button to request a new activation code.
and
In the contributions, the new topic button to add the button next to Reply
You can easily add a button by using the code
<a href="yourlink"><img src="yourbutton"></img></a>

The template for the top links is in header templates --> header.
The template for the postbit buttons is in postbit templates --> postbit.
where i put it?
IN UP HEADER TEMPLATE .OR DOWN,?
Where the top links are depend on your theme.

For the default MyBB Theme they are just in Header Templates --> Header and you should see this
			<div class="menu">
				<ul>
					<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
					<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
					<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li>
					<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
				</ul>
			</div>

You can add a link through there by adding this inside the <ul> tags.
<li><a href="yourlinkhere"><img src="yourbuttonhere" alt="" title="" />yourlink</a></li>
i m using auther theme not deffault
(2009-07-13, 10:46 AM)ronaldo24 Wrote: [ -> ]i m using auther theme not deffault

You'll need to find out which template the toplinks are in. Try searching the templates, or asking the author of the theme you have.

Normally, you will find them in the header template though.
If you're using the Afresh themes you need the header_welcomeblock_member template.
Hi. I have the same problem. I'd like to add a new button, that works as WWW. but the link is put by the administrator in the adminCP and users can't edit it. The link is different for every user.

P.S. Sorry for my English >_<
I'n not really sure what you're asking here... what do you mean by 'that works as WWW'...?? If you want it to be different for every user you'll need a plugin or something, unless the link includes their username or uid or something.
Just to make it clear - there are different templates for each of the default usergroups. Guests, members, admins and moderators. You need to place the button in the template that is for each usergroup.

So if you want a log in button, it would go in the guests template. Only guests would then see the button. However, it depends on the skin that you are using.
Pages: 1 2