• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Icon Acc Maker Help!

patriciou

Member
Joined
Dec 26, 2009
Messages
180
Reaction score
6
Hello Otlanders

Its me Again... Patriciou...

I Wanted to ask How can i Add an Icon
To the Top of the Tab...
Where is Says 'icon here' 'Server name - Latest News'
As shown on the Picture Below !

icon.png

I would be really Please if Somebody could help me
And Ill Rep++ For HELP:$

Regards ... Waiting for a Quick Reply :_)
 
You should create a .ico image with any image editor in 64x64

Open layout.php and just below this:

LUA:
<title><?PHP echo $title; ?></title>

Paste this:

LUA:
<link rel="shortcut icon" href="<?PHP echo $layout_name; ?>/images/server.ico" type="image/x-icon">

Just edit the image path in /images/server.ico
 
XML:
<link rel="shortcut icon" href="<?php echo $layout_name; ?>/images/server.ico" type="image/x-icon">
<link rel="icon" href="<?php echo $layout_name; ?>/images/server.ico" type="image/x-icon">
 
Because you should have got icon file on local disk of hosting. Anyway, browsers accept png/gif as website's icon.
 
You're probably doing it wrong, because it's working here.

Put this under <head>
PHP:
<link rel="shortcut icon" href="<?PHP echo $layout_name; ?>/images/favicon.ico" type="image/x-icon">  
<link rel="icon" href="<?PHP echo $layout_name; ?>/images/favicon.ico" type="image/x-icon">
 
This is My Layouts.php


PHP:
<!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>
<script type="text/javascript">
 
  //Configure below to change URL path to the snow image
  var snowsrc="http://img849.imageshack.us/img849/5553/snowc.gif"
  // Configure below to change number of snow to render
  var no = 10;
  // Configure whether snow should disappear after x seconds (0=never):
  var hidesnowtime = 0;
  // Configure how much snow should drop down before fading ("windowheight" or "pageheight")
  var snowdistance = "windowheight";

///////////Stop Config//////////////////////////////////

  var ie4up = (document.all) ? 1 : 0;
  var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

	function iecompattest(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
	}

  var dx, xp, yp;    // coordinate and position variables
  var am, stx, sty;  // amplitude and step variables
  var i, doc_width = 800, doc_height = 600; 
  
  if (ns6up) {
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
  } else if (ie4up) {
    doc_width = iecompattest().clientWidth;
    doc_height = iecompattest().clientHeight;
  }

  dx = new Array();
  xp = new Array();
  yp = new Array();
  am = new Array();
  stx = new Array();
  sty = new Array();
  snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "snow.gif" : snowsrc
  for (i = 0; i < no; ++ i) {  
    dx[i] = 0;                        // set coordinate variables
    xp[i] = Math.random()*(doc_width-50);  // set position variables
    yp[i] = Math.random()*doc_height;
    am[i] = Math.random()*20;         // set amplitude variables
    stx[i] = 0.02 + Math.random()/10; // set step variables
    sty[i] = 0.7 + Math.random();     // set step variables
		if (ie4up||ns6up) {
      if (i == 0) {
        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
      } else {
        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
      }
    }
  }

  function snowIE_NS6() {  // IE and NS6 main animation function
    doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
		doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")?  iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
    for (i = 0; i < no; ++ i) {  // iterate for every dot
      yp[i] += sty[i];
      if (yp[i] > doc_height-50) {
        xp[i] = Math.random()*(doc_width-am[i]-30);
        yp[i] = 0;
        stx[i] = 0.02 + Math.random()/10;
        sty[i] = 0.7 + Math.random();
      }
      dx[i] += stx[i];
      document.getElementById("dot"+i).style.top=yp[i]+"px";
      document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px";  
    }
    snowtimer=setTimeout("snowIE_NS6()", 10);
  }

	function hidesnow(){
		if (window.snowtimer) clearTimeout(snowtimer)
		for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
	}
		

if (ie4up||ns6up){
    snowIE_NS6();
		if (hidesnowtime>0)
		setTimeout("hidesnow()", hidesnowtime*1000)
		}

(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
		<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-2" />
		<title><?php echo $title; ?></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $layout_name; ?>/main.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo $layout_name; ?>/basic.css" />
		<link rel="shortcut icon" href="<?php echo $layout_name; ?>genesis/images/favicons.ico" type="image/x-icon">
        <link rel="icon" href="<?php echo $layout_name; ?>genesis/images/favicons.ico" type="image/x-icon">
        <?PHP echo $layout_header; ?>
        <script type="text/javascript" src="<?php echo $layout_name; ?>/newsticker.js"></script>
	</head>
	<body>
		<div id="vt_page">
			<div id="vt_header"></div>
			<div id="vt_container">
				<div id="vt_menu">
					<div id="vt_news_menu">
						<div class="header"><img src="layouts/genesis/5958.gif"> <font size="5"><sup>News</div></sup></font>
						<ul>
							<li><a href="index.php?subtopic=latestnews">Latest News</a></li>
                            <li><a href="index.php?subtopic=archive">News Archive</a></li>
                            <li><a href="index.php?subtopic=changelog">Changelog</a></li>
						</ul>
					</div>
					<div id="vt_account_menu">
						<div class="header"><img src="layouts/genesis/account.gif"><font size="5"><sup>Account</div></sup></font>
						<ul>
							<li><a href="index.php?subtopic=accountmanagement">Manage Account</a></li>
                            <li><a href="index.php?subtopic=createaccount">Create Account</a></li>
                            <li><a href="index.php?subtopic=lostaccount">Lost Account</a></li>
                            <li><a href="index.php?subtopic=tibiarules"><font color="red">Server Rules</font></a></li>
                            <li><a href="index.php?subtopic=downloads">Downloads</a></li>
                            <?PHP
							if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
							echo '<li><a href="index.php?subtopic=adminpanel">Admin Panel</a></li>>';
                            echo '<li><a href="index.php?subtopic=polls">Manage Polls</a></li>';
                            echo '<li><a href="index.php?subtopic=namelock">Namelocks</a></li>';
                            echo '<li><a href="index.php?subtopic=mail">Mass Mail Sender</a></li>';
                            if($logged)
								{
									echo '<li><a href="?subtopic=accountmanagement&action=logout">Log Out</a></li>';
								}
					
								?>
						</ul>
					</div>
                    <div id="vt_community_menu">
					
                    	<div class="header"><img src="layouts/genesis/community.gif"><font size="5"><sup> Community</div></sup></font>
						
                        <ul>
                        	<li><a href="index.php?subtopic=characters">Characters</a></li>
                            <li><a href="index.php?subtopic=whoisonline">Who Is Online?</a></li>
                            <li><a href="index.php?subtopic=highscores">Highscores</a></li>
                            <li><a href="index.php?subtopic=killstatistics">Last Kills</a></li>
                            <li><a href="index.php?subtopic=bans">Banishments</a></li>
                            <li><a href="index.php?subtopic=houses">Houses</a></li>
                            <li><a href="index.php?subtopic=guilds">Guilds</a></li>
                            <li><a href="index.php?subtopic=team">Support List</a></li>
                            <li><a href="index.php?subtopic=signatures">Signature Generator</a></li>
                        </ul>
                    </div>
                    <div id="vt_forum_menu">
                    	<div class="header"><img src="layouts/genesis/5091.gif"><font size="5"><sup> Forum</div></sup></font>
                        <ul>
                        	<li><a href="index.php?subtopic=forum">Forum</a></li>
                        </ul>
                    </div>
                    <div id="vt_library_menu">
                    	<div class="header"><img src="layouts/genesis/library.gif"><font size="5"><sup> Library</div></sup></font>
                        <ul>
                        	<li><a href="index.php?subtopic=creatures">Creatures</a></li>
                            <li><a href="index.php?subtopic=spells">Spells</a></li>
                            <li><a href="index.php?subtopic=serverinfo">Server Info</a></li>
                            <li><a href="index.php?subtopic=experiencetable">Experience Table</a></li>
                        </ul>
                    </div>
                    <?php if($config['site']['shop_system'] == 1): ?>
                    <div id="vt_shop_menu">
                    	<div class="header"><img src="layouts/genesis/7429.gif"><font size="5"><sup> Shops</div></sup></font>
                        <ul>
                        	<li><a href="?subtopic=paypal"><b><font size="1" color="red">Buy Points</font></b></a></li>
                            <li><a href="index.php?subtopic=shopsystem">Shop Offer</a></li>
                            <?php if($logged): ?>
                            <li><a href="index.php?subtopic=shopsystem&amp;action=show_history">Trans. History</a></li>
                        	<?php endif; ?>
							<?php if($group_id_of_acc_logged >= $config['site']['access_admin_panel']): ?>
                            <li><a href="?subtopic=shopadmin">Shop Admin</a></li>
                            <?php endif; ?>
                        </ul>
                    </div>
                    <?php endif; ?>
				</div>
				<div id="vt_content">
					<?php echo $main_content; ?>
				</div>
				<div id="vt_panel">
					<div class="top">
						<div class="bot">
							<div id="vt_panel_buttons">
<ul><?PHP
            if($config['status']['serverStatus_online'] == 1)
                echo '<p style="padding-right: 50px; text-align: center"><font color="green" size="4"><b>ONLINE</b></font></p>
				<br />Players online: '.$config['status']['serverStatus_players'].' / '.$config['status']['serverStatus_playersMax'].'
				<br />Monsters: '.$config['status']['serverStatus_monsters'].'<br />Uptime: '.$config['status']['serverStatus_uptime'].
				'<br />Server Name: '.$config['server']['serverName'].'<br />Server IP: '.$config['server']['ip'];
            else
                echo '<p style="padding-right: 50px; text-align: center"><font color="red" size="4"><b>OFFLINE</b></font></p>';
            ?></ul></p>
								<a href="/Cintravia client.rar" class="button">
									Download Client
									<span>Official Cintravia game client</span>
								</a>
								<a href="index.php?subtopic=shopsystem" class="button">
									SMS Shop
									<span>If you need something special</span>
								</a>
								<a href="" class="button">
									Server Forum
									<span>Lead discussions about server life</span>
								</a>
							</div>
							<div id="vt_panel_module">
								<div class="header">Top Server Characters</div>
								<?php
									$TopPlayers = $SQL->query("SELECT `name`, `experience`, `level` FROM `players` ORDER BY `experience` DESC LIMIT 5")->fetchAll();
									$Counter = 1;
								?>
                                <table cellspacing="0" cellpadding="5" border="0" width="100%">
									<?php foreach($TopPlayers as $Player): ?>
                                    <tr>
										<td width="10%"><?php echo $Counter; $Counter++; ?>.</td>
										<td><a href="index.php?subtopic=characters&amp;name=<?php echo urlencode($Player['name']); ?>"><?php echo $Player['name']; ?></a></td>
										<td align="right" width="25%"><?php echo $Player['level']; ?> level</td>
									</tr>
                                    <?php endforeach; ?> 
								</table>
							</div>
						</div>
					</div>
					<BR>
					<BR>
				</div>
				<BR>
				<BR>
				<div class="fb-like-box" data-href="http://www.facebook.com/CintraviaOts" data-width="235" 
				data-height="300" data-colorscheme="dark" data-show-faces="true" data-border-color="White" 
				data-stream="true" data-header="true"></div>
			</div>
			<div id="vt_footer">
				<div class="column first">
					<a href=""><img src="<?php echo $layout_name; ?>/images/authornote.png" alt="Designed by Cintravia Team" /></a>
				</div>
				<div class="column second">
					<p>Copyrights &copy; 2012 by Cintravia Team. All Rights Reserved.</p>
				</div>
				<div class="column third">
					<a href=""><img src="<?php echo $layout_name; ?>/images/html_valid.png" alt="HTML Valid" /></a>
					<a href=""><img src="<?php echo $layout_name; ?>/images/css_valid.png" alt="CSS Valid" /></a>
				</div>
            </div>
            </div>
		</div>
	</body>
</html>

- - - Updated - - -

I pasted it and still doesnt work ...

- - - Updated - - -

Bring
Up
My
Post
 
Back
Top