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

Usuniecie prawego menu na x podstronie.

Pietrzak19613

New Member
Joined
Oct 14, 2008
Messages
124
Reaction score
0
Witam.
Potrzebuje informacji jak zrobić aby było na stronie tak, że na x podstronie nie wyświetlana była prawa kolumna z menu ..
Proszę o pomoc.
 
yyyy, chodzi mi o to że mam acc makera, sa trzy tabele: Lewe menu, srodek(newsy itd.), prawe menu. I chodzi o ty żę gdy klikam w podstrone "highscores" to wyświetlane są wszystkie elementy. A ja bym chciał żę jak np. wezmę klikne te highscores to żeby nie było prawego menu. Da się takie coś zrobić ?
Ale żęby na stronie głownej i reszcie podstron prawe menu bylo normalnie ...
 
Po co?
w layout.php
daj ifa, ze jak subtopic jest rowny highscores to nie wyswietla i juz c'nie.
 
A no o to bo mi się nie mieści pewna podstrona.. Nie jestem zbyt obeznany w php. Dlatego proszę jeszcze raz o pomoc.
Mam to dać na samej górze?
I przede wszystkim jak ten warunek ma wyglądać. Mam wziąć całe prawe menu w if'a?

layout.php
PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!-- Powered by UNNAMED Acc. Maker &copy;2009 - 2010 by Gesior. -->
<!-- Rewrote and rebuild for Altara.pl purposes (c)2009 - 2010. -->
<!-- Designed by DeGhost -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
	<meta name="description" content=Tibia is a free massive multiplayer online role playing game (MMORPG)." />
	<meta name="author" content="DeGhost,Loleslav" />
	<meta http-equiv="content-language" content="pl" />
	<meta http-equiv="content-type" content="text/html; charset=windows-1250" />
	<meta name="keywords" content="free online game, free multiplayer game, ots, open tibia server" />
	<link rel="shortcut icon" href="<?PHP echo $layout_name; ?>/images/others/favicon.ico" type="image/x-icon">
	<link rel="icon" href="<?PHP echo $layout_name; ?>/images/others/favicon.ico" type="image/x-icon">
	<link rel="stylesheet" type="text/css" href="<?PHP echo $layout_name; ?>/default.css" media="screen"/>
	<link rel="stylesheet" type="text/css" href="<?PHP echo $layout_name; ?>/basic.css" media="screen"/>
	<title><?PHP echo $title; ?></title>
	<?PHP echo $layout_header; ?>
	<style type="text/css">
		@import "layout.css";
	</style>
</head>
<body class="home">
<div id="bg1">
<div id="bg2">
	<div id="header" class="container">
		<div id="logo">
		</div>
		<div id="topmenu">
			<ul>
			</ul>
		</div>
	</div>
</div>
<div id="menu">
	<ul class="container">
		<li class="first"><a href="?subtopic=latestnews">News</a></li>
		<li><a href="index.php?subtopic=createaccount">Załóż Konto</a></li>
		<li><a href="index.php?subtopic=downloads">Pobieralnia</a></li>
		<li><a href="index.php?subtopic=eventy">Eventy</a></li>
		<li><a href="index.php?subtopic=forum">Forum</a></li>
		<li>Poradniki</li>
	</ul>
</div>
<div id="bar">
	<div class="container">
		<div id="login">
			<?php
				if ($logged) {
					echo'<form method="post" action="?subtopic=accountmanagement&action=logout">
					<fieldset><p>Witaj, &nbsp;&nbsp;&nbsp;&nbsp;<a href="?subtopic=accountmanagement">Zarządzaj kontem</a>&nbsp;</p>
					<input value="Wyloguj" class="input-submit" type="submit" />
					</fieldset>
					</form>';
				}else{
					echo'<form method="post" action="?subtopic=accountmanagement">
						<fieldset> <span class="input-text"> <input name="account_login" value="" type="text" /> </span><span class="input-text"> <input name="password_login" value="" type="password" /> </span> <input value="Zaloguj" class="input-submit" type="submit" />
						<p><a href="?subtopic=lostaccount">Odzyskiwanie konta.</a>&nbsp;</p>
						</fieldset>
					</form>';
				}
			?>
		</div>
		<div id="search">
			<form method="post" action="index.php?subtopic=characters">
				<fieldset> <span class="input-text"> <input name="name" value="Player name" type="text" /> </span><input value="Search" class="input-submit" type="submit" /></fieldset>
			</form>
		</div>
	</div>
</div>
<div id="bg3">
<div id="bg4">
<div id="page" class="container">
<div id="content">
<div id="sidebar2">
 	<?php
		if ($subtopic == "latestnews"){
			echo '<div id="box2" class="box-style3">
				<h2 class="title"></h2>
				<div class="entry">
                        <center><a href="index.php?subtopic=eventy">

                         <img src="http://www.playbackups.com/photos/Elite.jpg" width="500" height="300" />
                         </center></a>


					<div style="clear: both;"><!-- # --> </div>
				</div>
			</div>';
		}
	?>
<center>	</center>
	<div id="box3" class="box-style3">
	<h2 class="title"><?PHP echo $topic; ?></h2>
		<div class="main_content">
			<?PHP echo $main_content; ?>
		</div>
	</div>
</div>

<div id="sidebar3">
<div id="box4" class="box-style4">
	<h2 class="title"><center>Status</center></h2>
	<div class="entry">
		<ul class="list1">
		</ul>
		<center>
		<?php
if($config['status']['serverStatus_online'] == 1){
echo 'Players On-Line:
<a href="index.php?subtopic=whoisonline&world=0" title="Graczy ON-line"><b>'.$config['status']['serverStatus_players'].'/'.$config['status']['serverStatus_playersMax'].'</b></a>
<br>UpTime:
<b>'.$config['status']['serverStatus_uptime'].'</b><br>';
 $plik = "online.txt";
             $czas = 60;
                 $t = time();
             $ip = $HTTP_SERVER_VARS['REMOTE_ADDR'];
         $u = explode("\n", str_replace("\r", "", @join("", @file($plik))));
         foreach($u as $i => $v) {
             $e = explode("|", $v);
             if($e[0] == $ip || $e[1] < $t) unset($u[$i]);
         }
         $u[] = $ip . "|" . ($t + $czas);
         $fp = fopen($plik, "w");
             flock($fp, 2);
                 fputs($fp, join("\n", $u));
             flock($fp, 3);
         fclose($fp);
         echo 'Graczy na stronie: '.count($u);

}else{
echo '<font color="red">Server jest wyłączony.</font>';
}
?>

		
		</center>
	</div>
</div>

<div id="box5" class="box-style4">
	<div class="entry">	<ul class="list1">
		</ul>
		<h2 class="title"><center>Najlepsi gracze:</center></h2>
<center>		<?php
							$limitt = 5;
							$skills = $SQL->query('SELECT name,level,experience FROM players WHERE group_id < '.$config['site']['players_group_id_block'].' AND name != "Account Manager" ORDER BY level DESC, experience DESC LIMIT '.$limitt)->fetchAll();
							$number_of_rows = 0;
							foreach($skills as $skillss)
							{
							 $number_of_rows++;
							 echo '<li class="bg6"><a href="index.php?subtopic=characters&name='.urlencode($skillss['name']).'"  class="link2">'.$skillss['name'].'</a><br>';
							 echo '<em class="style2">Level: <b>'.urlencode($skillss['level']).'</b></em></li>';
							}
						?></center>
		
	</div>
	<ul class="list1">
		</ul>
		
		
		<br/>
                                          <!-- (C) GG Network SA - Gadu-Gadu Widget -->
   <center><script type="text/javascript" src="http://widget.gadu-gadu.pl/getCode.php?id=e87a9c3aaaf17d48ed67473328390533add2aca0"></script></center>
																		</center>
</div>
</div>
</div>


<div id="sidebar">
	<div id="box6" class="box-style2">
		<h2 class="title">Informacje</h2>
		<div class="entry">
			<ul class="list1">
                        <li><a href="?subtopic=latestnews">News</a></li>
				<li><a href="index.php?subtopic=characters">Szukaj gracza</a></li>
				<li><a href="index.php?subtopic=serverinfo">Server Info</a></li>
				<li><a href="index.php?subtopic=tibiarules">Zasady</a></li>
                        <li><a href="index.php?subtopic=team">Pomoc w grze</a></li>
                        <li><a href="index.php?subtopic=bans">Lista zbanowanych</a></li>
			 <?php
				if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
					echo '<li><a href="?subtopic=adminpanel"><b><font color="red">Admin Panel</font></b></a></li>';
				if($group_id_of_acc_logged > 0)
					echo '<li><a href="?subtopic=namelock"><b><font color="red">Namelocks</font></b></a></li>';
				if($group_id_of_acc_logged > 0)
					echo '<li><a href="?subtopic=changelog"><b><font color="red">Changelog</font></b></a></li>';
				?>
			</ul>
		</div>
	</div>

	<div id="box7" class="box-style2">
		<h2 class="title">Społeczność</h2>
		<ul class="list1">
			<li><a href="index.php?subtopic=guilds">Gildie</a></li>
			<li><a href="index.php?subtopic=houses">Domki</a></li>
			<li><a href="index.php?subtopic=killstatistics">Ostatnio zgineli</a></li>
			<li><a href="index.php?subtopic=spells">Czary</a></li>
			<li><a href="index.php?subtopic=creatures">Potwory</a></li>
		</ul>
		<div id="box8" class="box-style2">
			<h2 class="title">Rekordy</h2>
			<div class="entry">
				<ul class="list1">
				</ul>
				<div class="entry">
					<ul class="list1">
						<li><a href="index.php?subtopic=highscores&amp;list=experience&amp;world=0">Poziom</a></li>
						<li><a href="index.php?subtopic=highscores&amp;list=magic&amp;world=0">Poziom magiczny</a></li>
						<li><a href="index.php?subtopic=highscores&amp;list=fist&amp;world=0">Fist&nbsp;</a></li>
						<li><a href="index.php?subtopic=highscores&amp;list=clubt&amp;world=0">Club</a></li>
						<li><a href="index.php?subtopic=highscores&amp;list=fist&amp;world=0">Sword</a></li>
						<li><a href="index.php?subtopic=highscores&amp;list=axe&amp;world=0">Axe</a></li>
						<li><a href="index.php?subtopic=highscores&amp;list=distance&amp;world=0">Distance</a></li>
						<li><a href="index.php?subtopic=highscores&amp;list=shieldning&amp;world=0">Shielding</a></li>
						<li><a href="index.php?subtopic=highscores&amp;list=fisting&amp;world=0">Fishing</a></li>
					</ul>
				</div>
				<ul class="list1">
				</ul>
			</div>
		</div>
	</div>

	<div id="box8" class="box-style2">
	
	<div id="box8" class="box-style2">
			<h2 class="title">Sklepik</h2>
			<div class="entry">
				<ul class="list1">
				</ul>
				<div class="entry">
					<ul class="list1">
						<li><a href='?subtopic=buypoints&system=dotpay'>Kup punkty premium!</a></li>
						<li><a href='?subtopic=shopsystem'>Wymien Punkty</a></li>
						<li><a href='?subtopic=shopsystem&action=show_history'>Historia</li>
					</ul>
				</div>
				<ul class="list1">
				</ul>
			</div>
		</div>
	</div>

	<div id="box8" class="box-style2">
	
	</div>
</div>
<div style="clear: both;">&nbsp;</div>
</div>
</div>
</div>

<div id="footer">
	<p class="container">
</div>
</div>
</div>
</body>
</html>
 
Code:
if (subtopic != highscores)
{
   //prawe menu
}
//reszta
Tym jak pobradz subtopic do layput.php juz sie musisz sam martwic.
 
A jeszcze jedno jak zrobić warunek if w warunku? Bo w prawym menu mam 3 warunki ..;/

yyy, tzn. może źle napisalem bo mam coś takiego:

<?PHP if()
else


<?PHP if()
else
?>

<?PHP if()
else
?>

<?PHP if()
else
?>

?>

Wiec, jak zrobić jak mam 3 skrypty?
 
Last edited:
A po co ci echo?
Jak nie domkniesz apostrofu to na pewno nei zadziala.
I nie musisz leciec tu z kazdym gownem, takie rzeczy mzoesz sam sprawdzic.
btw dawaj repa ;/
 
No niestety, ale bez polecenia echo przed apostrofami strona nie działała. ( tzn wyświetlana była nie taka jak powinna ) Ale.. niestety nie osiągnąłem zamierzonego celu. Prawe menu nie jest wyświetlane na tej podstronie, ale stronie nie wygląda tak jak powinna. ;|

Tzn. Podstrona jest na swoim miejscu, ale za to lewe menu uciekło pod podstrone.
Proszę o pomoc.
 
Last edited:
A jeszcze jedno, jak rozciągnąć teraz tą srodkową kolumnę aby była wyświetlana na miejsciu tego prawego menu również?
 
Last edited:
Back
Top