• 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!

Website Layout

dydocan

dydocan
Joined
Jul 2, 2010
Messages
95
Reaction score
0
valhalla layout.jpg










I want to use Valhalla layout, and I am using gesior acc.

What is wrong?? I really want this nice layout
 
It looks like there is no CSS styles loaded, probably bad path to CSS files. Check paths to CSS and images files. If there are PHP variables in paths try to remove them and write paths by your own. But remember that you must write path with reference to main index.php file not layout.php! Or just post your layout.php file.
 
Please, for the sake and safety of everyone - wrap larger texts within code blocks. Now, give us the part where you include the stylesheet within your layout.php file.
 
Open up your layout.php file located within the layouts folder, obviously. Once open, locate the <head> and </head> elements and supply us with its contents.
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><? echo $title; ?></title>
<link rel="stylesheet" href="<? echo $layout_name; ?>/style.css" type="text/css" />
<script type="text/javascript" src="<? echo $layout_name; ?>/menu.js"></script>
<script type="text/javascript">
var imagesURL = '<? echo $layout_name; ?>';
</script>
<? echo $layout_header; ?>
</head>
<body onload="menuInit();">
<div id="page">
<!-- HOLD ALL ON CENTER -->

<div id="header"></div>

<div id="menu">
<div style="margin-bottom: -2px;"><img src="<? echo $layout_name; ?>/images/menu-start.png" alt="Start Menu" /></div>

<div id="news">
<div onclick="menuSwitch(1, 'news')">
<div class="nav">
<div style="float: left; width: 157px; height: 34px;"><img src="<? echo $layout_name; ?>/images/latestnews.png" alt="Latest News" /></div>
<div id="news_Icon" style="background-image: url('<? echo $layout_name; ?>/images/minus.gif'); background-position: bottom right; background-repeat: no-repeat; float: left; width: 23px; height: 34px;"></div>
</div>
</div>
<div id="news_Submenu">
<div class="links">
<ul>
<li><a href="?subtopic=latestnews">Latest News</a></li>
</ul>
</div>
</div>
</div>

<div id="account">
<div onclick="menuSwitch(2, 'account')">
<div class="nav">
<div style="float: left; width: 157px; height: 34px;"><img src="<? echo $layout_name; ?>/images/account.png" alt="Account" /></div>
<div id="account_Icon" style="background-image: url('<? echo $layout_name; ?>/images/plus.gif'); background-position: bottom right; background-repeat: no-repeat; float: left; width: 23px; height: 34px;"></div>
</div>
</div>
<div id="account_Submenu">
<div class="links">
<ul>
<?PHP
if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
echo '<li><a href="?subtopic=adminpanel">Admin Panel</a></li>';
if($group_id_of_acc_logged > 0)
echo '<li><a href="?subtopic=namelock">Namelocks</a></li>';
if($logged)
{
echo '<li><a href="?subtopic=accountmanagement">My Account</a></li>
<li><a href="?subtopic=accountmanagement&action=logout">Logout</a></li>';
}
else
{
echo '<li><a href="?subtopic=accountmanagement">Login</a></li>';
}
?>
<li><a href="?subtopic=createaccount">Create Account</a></li>
<li><a href="?subtopic=lostaccount">Lost Account Interface</a></li>
<li><a href="?subtopic=tibiarules">Server Rules</a></li>
</ul>
</div>
</div>
</div>

<div id="community">
<div onclick="menuSwitch(3, 'community')">
<div class="nav">
<div style="float: left; width: 157px; height: 34px;"><img src="<? echo $layout_name; ?>/images/community.png" alt="Community" /></div>
<div id="community_Icon" style="background-image: url('<? echo $layout_name; ?>/images/plus.gif'); background-position: bottom right; background-repeat: no-repeat; float: left; width: 23px; height: 34px;"></div>
</div>
</div>
<div id="community_Submenu">
<div class="links">
<ul>
<li><a href="?subtopic=characters">Search Player</a></li>
<li><a href="?subtopic=guilds">Guilds</a></li>
<li><a href="?subtopic=highscores">Highscores</a></li>
<li><a href="?subtopic=killstatistics">Last Deaths</a></li>
<li><a href="?subtopic=houses">Houses</a></li>
<li><a href="?subtopic=downloads">Download</a></li>
<?PHP if(!empty($config['site']['forum_link'])) echo '<li><a href="'.$config['site']['forum_link'].'">Forum</a></li>'; ?>
<li><a href="?subtopic=team">Game Masters</a></li>
</ul>
</div>
</div>
</div>

<div id="library">
<div onclick="menuSwitch(4, 'library')">
<div class="nav">
<div style="float: left; width: 157px; height: 34px;"><img src="<? echo $layout_name; ?>/images/library.png" alt="Library" /></div>
<div id="library_Icon" style="background-image: url('<? echo $layout_name; ?>/images/plus.gif'); background-position: bottom right; background-repeat: no-repeat; float: left; width: 23px; height: 34px;"></div>
</div>
</div>
<div id="library_Submenu">
<div class="links">
<ul>
<li><a href="?subtopic=creatures">Monsters</a></li>
<li><a href="?subtopic=spells">Spells</a></li>
<li><a href="?subtopic=whoisonline">Who is online?</a></li>
<?PHP if($config['site']['serverinfo_page'] == 1) echo '<li><a href="?subtopic=serverinfo">Server Info</a></li>'; ?>
<?PHP if($config['site']['download_page'] == 1) echo '<li><a href="?subtopic=downloads">Downloads</a></li>'; ?>
<?PHP if($config['site']['gallery_page'] == 1) echo '<li><a href="?subtopic=gallery">Gallery</a></li>'; ?>
</ul>
</div>
</div>
</div>

<?PHP
if($config['site']['shop_system'] == 1)
{
echo '
<div id="shops">
<div onclick="menuSwitch(5, \'shops\')">
<div class="nav">
<div style="float: left; width: 157px; height: 34px;"><img src="'.$layout_name.'/images/shops.png" alt="Shops" /></div>
<div id="shops_Icon" style="background-image: url(\''.$layout_name.'/images/plus.gif\'); background-position: bottom right; background-repeat: no-repeat; float: left; width: 23px; height: 34px;"></div>
</div>
</div>
<div id="shops_Submenu">
<div class="links">
<ul>
<li><a href="?subtopic=buypoints"><b><font size="1" color="red"><blink>Buy Premium Points</blink></font></b></a></li>
<li><a href="?subtopic=shopsystem">Shop Offer</a></li>';
if($logged)
echo '<li><a href="?subtopic=shopsystem&action=show_history">Shop History</a></li>';
echo '</ul>
</div>
</div>
</div>';
}
?>

<div style="margin-top: -2px;"><img src="<? echo $layout_name; ?>/images/menu-end.png" alt="End Menu" /></div>
</div>

<div id="cnt-box">
<div id="top"></div>
<div id="mid">
<div id="margins">
<? echo $main_content; ?>
</div>
</div>
<div id="bot"></div>
<div id="copyrights">
<p>&copy; 2009 by <? echo $config['server']['serverName']; ?>. All Rights Reserved.</p>
</div>
</div>

<div id="adverts">
<h2>Server Status</h2>
<hr noshade="noshade" size="1" />
<?PHP
if($config['status']['serverStatus_online'] == 1)
echo '
<font color="green"><b>Server Online</b></font><br />
Players Online: '.$config['status']['serverStatus_players'].' / '.$config['status']['serverStatus_playersMax'].'<br />
Monsters: '.$config['status']['serverStatus_monsters'].'<br />Uptime: '.$config['status']['serverStatus_uptime'].'<br />
IP: '.$config['server']['ip'].'<br />
PORT: '.$config['server']['port'];
else
echo '<font color="red"><b>Server Offline</b></font>';
?>
<hr noshade="noshade" size="1" />
<a href="?subtopic=shopsystem"><img src="<? echo $layout_name; ?>/images/banner.png" alt="Premium Banner" style="border: 0px;" /></a>
</div>

<!-- END -->
</div>
</body>
</html>?
 
Last edited:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><? echo $title; ?></title>
<link rel="stylesheet" href="<? echo $layout_name; ?>/style.css" type="text/css" />
<script type="text/javascript" src="<? echo $layout_name; ?>/menu.js"></script>
<script type="text/javascript">
var imagesURL = '<? echo $layout_name; ?>';
</script>
<? echo $layout_header; ?>
</head>
<body onload="menuInit();">
<div id="page">
<!-- HOLD ALL ON CENTER -->

<div id="header"></div>

<div id="menu">
<div style="margin-bottom: -2px;"><img src="<? echo $layout_name; ?>/images/menu-start.png" alt="Start Menu" /></div>

<div id="news">
<div onclick="menuSwitch(1, 'news')">
<div class="nav">
<div style="float: left; width: 157px; height: 34px;"><img src="<? echo $layout_name; ?>/images/latestnews.png" alt="Latest News" /></div>
<div id="news_Icon" style="background-image: url('<? echo $layout_name; ?>/images/minus.gif'); background-position: bottom right; background-repeat: no-repeat; float: left; width: 23px; height: 34px;"></div>
</div>
</div>
<div id="news_Submenu">
<div class="links">
<ul>
<li><a href="?subtopic=latestnews">Latest News</a></li>
</ul>
</div>
</div>
</div>

<div id="account">
<div onclick="menuSwitch(2, 'account')">
<div class="nav">
<div style="float: left; width: 157px; height: 34px;"><img src="<? echo $layout_name; ?>/images/account.png" alt="Account" /></div>
<div id="account_Icon" style="background-image: url('<? echo $layout_name; ?>/images/plus.gif'); background-position: bottom right; background-repeat: no-repeat; float: left; width: 23px; height: 34px;"></div>
</div>
</div>
<div id="account_Submenu">
<div class="links">
<ul>
<?PHP
if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
echo '<li><a href="?subtopic=adminpanel">Admin Panel</a></li>';
if($group_id_of_acc_logged > 0)
echo '<li><a href="?subtopic=namelock">Namelocks</a></li>';
if($logged)
{
echo '<li><a href="?subtopic=accountmanagement">My Account</a></li>
<li><a href="?subtopic=accountmanagement&action=logout">Logout</a></li>';
}
else
{
echo '<li><a href="?subtopic=accountmanagement">Login</a></li>';
}
?>
<li><a href="?subtopic=createaccount">Create Account</a></li>
<li><a href="?subtopic=lostaccount">Lost Account Interface</a></li>
<li><a href="?subtopic=tibiarules">Server Rules</a></li>
</ul>
</div>
</div>
</div>

<div id="community">
<div onclick="menuSwitch(3, 'community')">
<div class="nav">
<div style="float: left; width: 157px; height: 34px;"><img src="<? echo $layout_name; ?>/images/community.png" alt="Community" /></div>
<div id="community_Icon" style="background-image: url('<? echo $layout_name; ?>/images/plus.gif'); background-position: bottom right; background-repeat: no-repeat; float: left; width: 23px; height: 34px;"></div>
</div>
</div>
<div id="community_Submenu">
<div class="links">
<ul>
<li><a href="?subtopic=characters">Search Player</a></li>
<li><a href="?subtopic=guilds">Guilds</a></li>
<li><a href="?subtopic=highscores">Highscores</a></li>
<li><a href="?subtopic=killstatistics">Last Deaths</a></li>
<li><a href="?subtopic=houses">Houses</a></li>
<li><a href="?subtopic=downloads">Download</a></li>
<?PHP if(!empty($config['site']['forum_link'])) echo '<li><a href="'.$config['site']['forum_link'].'">Forum</a></li>'; ?>
<li><a href="?subtopic=team">Game Masters</a></li>
</ul>
</div>
</div>
</div>

<div id="library">
<div onclick="menuSwitch(4, 'library')">
<div class="nav">
<div style="float: left; width: 157px; height: 34px;"><img src="<? echo $layout_name; ?>/images/library.png" alt="Library" /></div>
<div id="library_Icon" style="background-image: url('<? echo $layout_name; ?>/images/plus.gif'); background-position: bottom right; background-repeat: no-repeat; float: left; width: 23px; height: 34px;"></div>
</div>
</div>
<div id="library_Submenu">
<div class="links">
<ul>
<li><a href="?subtopic=creatures">Monsters</a></li>
<li><a href="?subtopic=spells">Spells</a></li>
<li><a href="?subtopic=whoisonline">Who is online?</a></li>
<?PHP if($config['site']['serverinfo_page'] == 1) echo '<li><a href="?subtopic=serverinfo">Server Info</a></li>'; ?>
<?PHP if($config['site']['download_page'] == 1) echo '<li><a href="?subtopic=downloads">Downloads</a></li>'; ?>
<?PHP if($config['site']['gallery_page'] == 1) echo '<li><a href="?subtopic=gallery">Gallery</a></li>'; ?>
</ul>
</div>
</div>
</div>

<?PHP
if($config['site']['shop_system'] == 1)
{
echo '
<div id="shops">
<div onclick="menuSwitch(5, \'shops\')">
<div class="nav">
<div style="float: left; width: 157px; height: 34px;"><img src="'.$layout_name.'/images/shops.png" alt="Shops" /></div>
<div id="shops_Icon" style="background-image: url(\''.$layout_name.'/images/plus.gif\'); background-position: bottom right; background-repeat: no-repeat; float: left; width: 23px; height: 34px;"></div>
</div>
</div>
<div id="shops_Submenu">
<div class="links">
<ul>
<li><a href="?subtopic=buypoints"><b><font size="1" color="red"><blink>Buy Premium Points</blink></font></b></a></li>
<li><a href="?subtopic=shopsystem">Shop Offer</a></li>';
if($logged)
echo '<li><a href="?subtopic=shopsystem&action=show_history">Shop History</a></li>';
echo '</ul>
</div>
</div>
</div>';
}
?>

<div style="margin-top: -2px;"><img src="<? echo $layout_name; ?>/images/menu-end.png" alt="End Menu" /></div>
</div>

<div id="cnt-box">
<div id="top"></div>
<div id="mid">
<div id="margins">
<? echo $main_content; ?>
</div>
</div>
<div id="bot"></div>
<div id="copyrights">
<p>&copy; 2009 by <? echo $config['server']['serverName']; ?>. All Rights Reserved.</p>
</div>
</div>

<div id="adverts">
<h2>Server Status</h2>
<hr noshade="noshade" size="1" />
<?PHP
if($config['status']['serverStatus_online'] == 1)
echo '
<font color="green"><b>Server Online</b></font><br />
Players Online: '.$config['status']['serverStatus_players'].' / '.$config['status']['serverStatus_playersMax'].'<br />
Monsters: '.$config['status']['serverStatus_monsters'].'<br />Uptime: '.$config['status']['serverStatus_uptime'].'<br />
IP: '.$config['server']['ip'].'<br />
PORT: '.$config['server']['port'];
else
echo '<font color="red"><b>Server Offline</b></font>';
?>
<hr noshade="noshade" size="1" />
<a href="?subtopic=shopsystem"><img src="<? echo $layout_name; ?>/images/banner.png" alt="Premium Banner" style="border: 0px;" /></a>
</div>

<!-- END -->
</div>
</body>
</html>
 
PHP:
echo $layout_name;
Is placed properly in all paths. So all should be good. Check that you configured and placed all files correctly.

#EDIT
open your layout.php file and at first line paste:
PHP:
<?php print_r($layout_name); ?>
Then open your site in browser and copy that what shows before page content (first text on site) or better screenshot.
 
Last edited:
Back
Top