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

Worgen Template holy cows!

Narzerus

Full-stack developer and old OT Developer
Joined
Oct 29, 2007
Messages
202
Reaction score
11
Well, I do feel embarassed for asking this question.

I was editing index.tpl on the Worgen template for Modern AAC.


one day I edited the captions of the three buttons that appear in the right menu.

I remember having problems on the refreshing of the layout, I was like: F5, F5, F5... Hmm it doesn't change even though I did change it. And suddenly the new captions were there..

I also changed the href="" but they never worked. They just stayed as "".


Today I wanted to edit the urls to which the buttons linked (Same href as before).
So I edited them, and still nothing. So I said... Aight, this is weird.. I changed the captions to see if I was in the right folder.. And they didn't change..

So I said, hmm I'm going to erase the index.tpl file to see if I AM on the right folder.
So I erased it and, BOOM error, yes I was on the right folder, but for some mystic informatic reason when I edit the file it just doesn't CHANGE, it shows what I wrote last time.

My brain is dying, it's probably a really stupid reason I havent thought of, but I can't think anymore. I KNOW php and html and I feel stupid.

This is my actual index.tpl:

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>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="distribution" content="Global" />
		<meta name="author" content="Vean" />
		<meta name="robots" content="index,follow" />
		<meta name="description" content="Site Description." />
		<meta name="keywords" content="ots, open tibia server, ..." />
		{$head}
		<title>{$title}</title>
		<link rel="stylesheet" type="text/css" href="{$path}/templates/worgen/main.css" />
	</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">News</div>
						<ul>
							<li><a href="{$path}">Latest News</a></li>
							<li><a href="{$path}/index.php/bugtracker">Bug Tracker</a></li>
						</ul>
					</div>
					<div id="vt_account_menu">
						<div class="header">Account</div>
						<ul>
							{if $logged == 1}
							<li><a href="{$path}/index.php/account/">Manage Account</a></li>
							{else}
							<li><a href="{$path}/index.php/account/create">Create Account</a></li>
							<li><a href="{$path}/index.php/account/login">Login</a></li>
							{/if}
						</ul>
					</div>
					<div id="vt_community_menu">
						<div class="header">Community</div>
						<ul>
							<li><a href="http://thanatosserver.freeforums.org">Forum</a></li>	
							<li><a href="{$path}/index.php/character/view">Characters</a></li>
							<li><a href="{$path}/index.php/guilds">Guilds</a></li>
							<li><a href="{$path}/index.php/p/v/fragers">Top fraggers</a></li>	
							<li><a href="{$path}/index.php/video">Videos</a></li>	
							<li><a href="{$path}/index.php/houses/main">Houses</a></li>	
							<li><a href="{$path}/index.php/p/v/deaths">Latest Deaths</a></li>	
							<li><a href="{$path}/index.php/p/v/gallery">Gallery</a></li>	
							<li><a href="{$path}/index.php/profile/community">Community</a></li>
							<li><a href="{$path}/index.php/p/v/donate">Donate!</a></li>
						</ul>
					</div>
				</div>
				<div id="vt_content">
					{$main}
				</div>
				<div id="vt_panel">
					<div class="top">
						<div class="bot">
							<div id="vt_panel_buttons">
								<a href="{$path}/index.php/p/v/donate" class="button">
									Download Client
									<span>Download the latest Thanatos client</span>
								</a>
								<a href="/p/v/donate" class="button">
									Donate!
									<span>Help us grow and be rewarded</span>
								</a>
								<a href="http://thanatosserver.freeforums.org" class="button">
									Our Forums
									<span>Our official forums</span>
								</a> 
							</div>
							<div class="vt_panel_module">
								<div class="header">Server Status</div>
								{foreach from=$worlds key=id item=world}
								<div>
									<b>World:</b> {$world} <br />
									<b>Status:</b>  
									{if $serverOnline[$id]}
										<span style="color: green;font-weight: bold;">Online</span><br />
										<b>Uptime:</b> {$serverUptime[$id]} <br />
										<b>Players:</b> {$serverPlayers[$id]}/{$serverMax[$id]}<br /><br />
									{else}
										<span style="color: red;font-weight: bold;">Offline</span>
									{/if}
								</div>
								{/foreach}
							</div>
						</div>
					</div>
				</div>
			</div>
			<div id="vt_footer">
				<div class="column first">
					<a href=""><img src="{$path}/templates/worgen/images/authornote.png" alt="Designed by Vean aand edited by Narzerus" /></a>
				</div>
				<div class="column second">
					<p>Copyrights &copy; 2010 by Thanatos. All Rights Reserved.</p>
					<p><small>Page rendered in: {$renderTime} {$admin}</small></p>
				</div>
				<div class="column third">
					<a href=""><img src="{$path}/templates/worgen/images/html_valid.png" alt="HTML Valid" /></a>
					<a href=""><img src="{$path}/templates/worgen/images/css_valid.png" alt="CSS Valid" /></a>
				</div>
			</div>
		</div>
	</body>
</html>


EDIT: By the way

<li><a href="{$path}/index.php/p/v/donate">Donate!</a></li>

Does not appear on the site either.



EDIT2: After complaining I changed ONE character on the footer, and the whole page changed.

Yes, I erased my browser's caché for every single refresh.
 
Back
Top