MyBB Community Forums

Full Version: How Would I create Another Button On My Main Page.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Im just going to ask you guys. How would I make a button like this?


I want to make one called "webclient".

[Image: screenshot20101222at136.png]
I think he just wants to add another link to the menu.

It's in the "header" template, and if you copy one of the existing links in the template you should be fine. There are plenty of posts explaining how to get to the template editor.
Ah! OK, Go to ACP > Templates > Header Templates > header > Edit and find;

<ul>

Add the following code just after the <ul>;

<li><a href="YOUR_LINK_URL"><img src="YOUR_IMAGE_URL" alt="" title="" />YOUR_LINK_TEXT</a></li>

Save template.

In this way you can add as many links as you can Smile
Sorry for reactivate this thread, but when i use this as above described, i see the button, when i use the button the link works perfect,but it logged me always out of the forum. It was neccessary to was logged in to use this button.
What is to do in this case?
Many thanks in advance for support in this case

Greetz
(2023-06-25, 09:30 AM)specialist Wrote: [ -> ]Sorry for reactivate this thread, but when i use this as above described, i see the button, when i use the button the link works perfect,but it logged me always out of the forum. It was neccessary to was logged in to use this button.
What is to do in this case?
Many thanks in advance for support in this case

Greetz

it depends on where did you add it (which template) and what was the link of that button.
Thanks for answer.
I placed it on menu bar. and the link shows to the <myforum>upgrade.php to call the subscription function

i used:
<li><a href="http://www.techmeister-board.com/upgrade.php">Abonnement buchen</a></li>

in header template as described above.

You can see it on www.techmeister-board.com
the other links in the header point to: http://mail.techmeister-board.com/portal.php
in mail.techmeister.... you are logged in, in www.techmeister-board not

please use this format for your links:

<li><a href="{$mybb->settings['bburl']}/wantedscript.php" class="definedclass">Text_to_Show</a></li>
Ok, thanks for answer.

So i have to use

<li><a href="{$mybb->settings['bburl']}/upgrade.php" class="definedclass">Abonnement buchen</a></li>

Thanks for your support. You save my day. It looks very good an work perfekt
only the class isn't defined Wink You can do this in theme-CSS
Pages: 1 2