• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How to create a Button

renancs

New Member
Joined
Jul 8, 2008
Messages
252
Reaction score
3
Hi there, how i can create a button in menu? exemple in menu Library, i need create a new button.
and in my shop offer is yellow, i can change this collor?
i am using gesior.
 
Will try to help you:
1) First one with shop offer color:
- Go to your accmaker directory(if you use xampp, htdocs)
- Then go into layouts folder
- Enter into layout folder(if you didnt change config, it will be tibiacom), that you use
- Open your layout.php file and search for similar lines:
PHP:
<a href='?subtopic=shopsystem'>
  <div id='submenu_shopsystem' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
    <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
    <div id='ActiveSubmenuItemIcon_shopsystem' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div>
    <div class='SubmenuitemLabel'><div style=\"color: yellow;\">\$hop Offer</div></div>
    <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div>
  </div>
</a>

Just change the
PHP:
<div style=\"color: yellow;\">\$hop Offer</div>
on
PHP:
<font color="whatdoyouwant">Shop Offer</font>

you can ofc make <b></b> etc. it depends on your style :p

2) Second one, with new "button":
- Go to your accmaker directory(if you use xampp, htdocs)
- Make there file.php that you want to use in your menu.
- Open index.php, and before:
PHP:
case "experiencetable";
$topic = "Experience Table";
$subtopic = "experiencetable";
include("experiencetable.php");
break;
Add:
PHP:
case "whatdoyouwant";
$topic = "What do you want";
$subtopic = "whatdoyouwant";
include("whatdoyouwant.php");
break;
- Next go into /layouts/yourlayoutfolder and open layout.php
- If you want your button in Library Menu, before:
PHP:
<a href='?subtopic=spells'>
<div id='submenu_spells' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
<div id='ActiveSubmenuItemIcon_spells' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
<div class='SubmenuitemLabel'>Spells</div>
<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
</div>
</a>
Add this one:
PHP:
<a href='?subtopic=whatdoyouwant'>
  <div id='submenu_spells' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
    <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
    <div id='ActiveSubmenuItemIcon_spells' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
    <div class='SubmenuitemLabel'>What do you want</div>
    <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
  </div>
</a>

Hope it will help you, you have to change only: whatdoyouwant, on your own names.

:peace::peace:
 
Last edited:
wowwwww man, perfect post, and thanks, you help me ;)
thanks very much.
 
shit, i don't can create i have a error look...

Warning: Unexpected character in input: ' in C:\xampp\htdocs\site_calindor\layouts\tibiacom\layout.php on line 271

Parse error: parse error in C:\xampp\htdocs\site_calindor\layouts\tibiacom\layout.php on line 271


can u create for me one button?
"Comandos"

thx
 
im dont can modificate nothing in my layoult...
i modificate and i have error


Warning: Unexpected character in input: ' in C:\xampp\htdocs\site_calindor\layouts\tibiacom\layout.php on line 271

Parse error: parse error in C:\xampp\htdocs\site_calindor\layouts\tibiacom\layout.php on line 271


whats is this?
have a solution?

in my data/items too, i edit a item and i have a error... LoL
 
Back
Top