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

[Modern Aac] WoW Style (recoded)

Here is a version that have all fixed..

- Animation
- Background
- Displaying the content :) now the tables and all pages are displayed correctly

wow-fix.rar
 
I dont know why, but it doesn't work for me, i see pure text but no images.
 
- Adding 2 tables ;)

221i.png

Search for

Code:
	<!-- Begin Content Inner -->
	<div id="content_outmiddle">
	<div id="user_modules1">

And place under it

PHP:
<div id="user1">

							           		<div class="moduletable">
					<h3>Highest Players</h3>
{include_php file='templates\wow\top.php'}  
					</div>

	
									</div>
									<div id="user2">
							           		<div class="moduletable">
					<h3>Strongest Guilds</h3>
					Hello
</div>
	
									</div>

Now create a file top.php in your template
Note
Code:
{include_php file='templates\wow\top.php'}
if you have a other path then change it!
And paste

PHP:
   <?PHP
//** Connection to the database **//
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = POT::getInstance()->getDBHandle();

//** Top Players + online status By Kavvson **//
                                $money_list = $SQL->query('SELECT `name`, `level`, `experience` FROM `players` WHERE `name` != "Account Manager" AND `name` NOT LIKE "%Sample" ORDER BY `experience` DESC LIMIT 5')->fetchAll();
                                        $i = 1;
                                        foreach($money_list as $money_chr){
                                        echo '<center>';
                                            echo $i.'. <a href="?subtopic=characters&name='.urlencode($money_chr['name']).'">';
        $player = $ots->createObject('Player');
        $player->find($money_chr['name']); 
                        echo '<font color="';
                        echo ($player->isOnline()) ? 'green' : 'red';
                        echo '">';    
                        echo '<b>'.$money_chr['name'].'</b></a></font>';
                        echo  '<br>Level: <B>'.$money_chr['level'].'</B><br>';
                                            $i++;
                                        }
                                        for( $i; $i <= 5; $i++ ){
                                            echo $i.'. <br><i>Empty</i><br /><br />';
                                        }
                                        echo '</center>';
                                        
?>
 
It's a great work but some of the links, for example 'houses', is not working :/.

But over all, it's great. I want to use this when everything works :D!
 
ah yeah, it is a great layout, but when I add the 2 tables I get an error, have tried it all over again sometimes now still getting this error.

Code:
Fatal error: Uncaught exception 'Exception' with message 'Syntax Error in template "templates/wow\index.tpl" on line 205 " &lt;/div&gt; " include_php: file "'templates\wow\top.php'" is not readable' in C:\xampp\htdocs\system\application\libraries\sysplugins\smarty_internal_templatecompilerbase.php:432 Stack trace: #0 C:\xampp\htdocs\system\application\libraries\sysplugins\smarty_internal_compile_include_php.php(43): Smarty_Internal_TemplateCompilerBase->trigger_template_error('include_php: fi...') #1 C:\xampp\htdocs\system\application\libraries\sysplugins\smarty_internal_templatecompilerbase.php(260): Smarty_Internal_Compile_Include_Php->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), NULL, NULL, NULL) #2 C:\xampp\htdocs\system\application\libraries\sysplugins\smarty_internal_templatecompilerbase.php(121): Smarty_Internal_TemplateCompilerBase->callTagCompiler('include_php', Array) #3 C:\xampp\htdocs\system\application\libraries\sysplugins\smarty_internal_templateparser.php(2154): Smarty_ in C:\xampp\htdocs\system\application\libraries\sysplugins\smarty_internal_templatecompilerbase.php  on line 432
 
file "'templates\wow\top.php'" is not readable' so put chmod 444 on the file
 
top.php
PHP:
   <?PHP
//** Connection to the database **//
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = POT::getInstance()->getDBHandle();

//** Top Players + online status By Kavvson **//
                                $money_list = $SQL->query('SELECT `name`, `level`, `experience` FROM `players` WHERE `name` != "Account Manager" AND `name` NOT LIKE "%Sample" ORDER BY `experience` DESC LIMIT 5')->fetchAll();
                                        $i = 1;
                                        foreach($money_list as $money_chr){
                                        echo '<center>';
                                            echo $i.'. <a href="?subtopic=characters&name='.urlencode($money_chr['name']).'">';
        $player = $ots->createObject('Player');
        $player->find($money_chr['name']); 
                        echo '<font color="';
                        echo ($player->isOnline()) ? 'green' : 'red';
                        echo '">';    
                        echo '<b>'.$money_chr['name'].'</b></a></font>';
                        echo  '<br>Level: <B>'.$money_chr['level'].'</B><br>';
                                            $i++;
                                        }
                                        for( $i; $i <= 5; $i++ ){
                                            echo $i.'. <br><i>Empty</i><br /><br />';
                                        }
                                        echo '</center>';
                                        
?>

index.php

PHP:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl-pl" lang="pl-pl" > 
<head> 

<meta name="Description" content="Information architecture, Web Design, Web Standards." />
<meta name="Keywords" content="your, keywords" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="author" content="Trans.Kavvson" />
<meta name="Robots" content="index,follow" />

<title>{$title}</title>
	
  <link rel="stylesheet" href="{$path}/templates/wow/plugins/content/extravote/extravote.css" type="text/css" /> 
  <script type="text/javascript" src="{$path}/templates/wow/media/system/js/mootools.js"></script> 
  <script type="text/javascript" src="{$path}/templates/wow/media/system/js/caption.js"></script> 
  <script type="text/javascript" src="{$path}/templates/wow/plugins/content/extravote/extravote.js"></script> 

<link href="{$path}/templates/wow/css/reset.css" rel="stylesheet" type="text/css" media="all" /> 
<link href="{$path}/templates/wow/css/ie5x6x.css" rel="stylesheet" type="text/css" media="all" /> 
{$head}
	</head> 
<body> 

<div id="wrapper">
	<div id="bg_up">
		<div id="masthead_container">
			<div id="masthead"> 
                  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
				   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24"
				   width="1000" height="400"> 
				   
					<param name="movie" value="{$path}/templates/wow/fl/wow3_header.swf" /> 
					<param name="quality" value="high" /> 
					<param name="menu" value="false" /> 
					<param name="wmode" value="transparent" /> 
					<param name="allowScriptAccess" value="sameDomain" /> 
				    	<object data="{$path}/templates/wow/fl/wow3_header.swf"

									width="1000" height="400" type="application/x-shockwave-flash"> 
							 <param name="quality" value="high" /> 
							 <param name="menu" value="false" /> 
							 <param name="allowScriptAccess" value="sameDomain" /> 
							 <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" /> 
							 <param name="wmode" value="transparent" /> 
						</object> 
				</object> 
			</div> 
		</div>
		<div id="container">
<!-- Begin Container -->	
				<div id="navigation">
				</div>
			<!-- Begin Page Content -->
			<div id="page_content">
				<!-- Begin Content Upside -->
				<div id="content_up">
					<div id="content_up_left">
							<div id="breadcrumbs">
						    </div>
						<div id="content_up_right">
								<div id="search">
									<div id="search_inner">
									</div>
								</div>
						</div>
					</div>
				</div>
<!-- End Content Upside --> 
											<div id="sidebar_left"> 
				             		<div class="module"> 
			<div> 
				<div> 

				</div> 
			</div> 
		</div> 
			<div class="module_menu"> 
			<div> 
				<div> 
					<div> 
													<h3>Account</h3> 
											<ul class="menu">
	<li id="current" class="item40"><a href="{$path}/index.php/account/create">Create Account</a></li>
      <li class="item41"><a href="{$path}/index.php/account/login">Login</a></li>
	    <li class="item41">  <a href="{$path}/index.php/bugtracker">Bug Tracker</a></li>
	
	<li class="item54"><a href="?subtopic=lostaccount"><span>Account Lost?</span></a></li>
											</ul></div> 
				</div> 
			</div> 
		</div> 
					<div class="module_menu"> 
			<div> 
				<div> 
					<div> 
													<h3>Server</h3> 
											<ul class="menu">
											<li id="current" class="item40"><a href="{$path}/index.php/character/online">Who is Online</a></li>
											<li class="item41"><a href="?subtopic=tibiarules"><span>Rules</span></a></li>
											<li class="item54"><a href="?subtopic=konkursy"><span>Events</span></a></li>
											<li class="item54"><a href="?subtopic=lottery"><span>Lottery</span></a></li>
											<li class="item54"><a href="?subtopic=gallery"><span>Gallery</span></a></li>
											<li class="item54"><a href="?subtopic=team"><span>Administration</span></a></li>
											<li class="item54"><a href="?subtopic=serverinfo"><span>Server info</span></a></li>
											<li class="item54"><a href="?subtopic=experiencetable"><span>Experience Table</span></a></li>
											</ul></div> 
				</div> 
			</div> 
		</div> 
					<div class="module_menu"> 
			<div> 
				<div> 
					<div> 
													<h3>Player</h3> 
											<ul class="menu">
											<li id="current" class="item40"><a href="{$path}/index.php/character/view">Characters</a></li>
											<li class="item41"><a href="{$path}/index.php/guilds">Guilds</a></li>
											<li class="item41"><a href="{$path}/index.php/highscores">Highscores</a></li>
											<li class="item41"><a href="?subtopic=killstatistics"><span>Latest Deaths</span></a></li>
											<li class="item41"><a href="?subtopic=houses"><span>Houses</span></a></li>
											<li class="item41"><a href="?subtopic=creatures"><span>Monsters</span></a></li>
											<li class="item41"><a href="{$path}/index.php/forum">Forum</a></li>
											<li class="item41"><a href="?subtopic=exphist"><span>TOP EXP</span></a></li>
											<li class="item41"><a href="?subtopic=onlinetime"><span>TOP ONLINE</span></a></li>
											<li class="item41"><a href="?subtopic=bans"><span>Bans</span></a></li>
											<li class="item54"><a href="?subtopic=lottery"><span>Lottery System</span></a></li>
											<li class="item41"><a href="?subtopic=auctionsystem"><span>Auction System</span></a></li>
											<li class="item41"><a href="?subtopic=wars"><span>Guild War System</span></a></li>
											<li class="item41"><a href="?subtopic=bonusy"><span><blink>Addon Bonus System</blink></span></a></li>
											<li class="item41"><a href="{$path}/index.php/p/v/fragers">Top fraggers</a></li>
											</ul></div> 
				</div> 
			</div> 
		</div> 
					<div class="module_menu"> 
			<div> 
				<div> 
					<div> 
													<h3>SMS SHOP</h3> 
											<ul class="menu">
											<li id="current" class="item40"><a href="?subtopic=buypoints"><span>Purchase Points</span></a></li>
											<li class="item41"><a href="?subtopic=shopsystem"><span>Offers</span></a></li>
											<li class="item54"><a href="?subtopic=?subtopic=shopsystem&action=show_history"><span>Purchasing History</span></a></li>
											</ul></div> 
				</div> 
			</div> 
		</div> 



			<div class="module"> 
			<div> 
				<div> 
				</div> 
				</div> 
			</div> 
		</div> 
	
						</div> 
							
											<div id="sidebar_right"> 
				             		<div class="module"> 
			<div> 
				<div> 

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

			<div class="module"> 
			<div> 
				<div> 
					<div> 
													<h3>Server Status:</h3> 
{if $serverOnline[$id]}
								<font color='green'>Online</font><br />
							{else}
								<font color='red'>Offline</font><br />
							{/if}
							<br>																
																</div> 
				</div> 
											
			</div> 
		</div> 
<!-- 	<div class="module"><div><div><div> 
						<center><h3>Advertisment:</h3> </center>
</div></div></div></div>  --> 
		
<div class="module"><div><div><div> 
						<h3>Top Exp:</h3> 
						.
</div></div></div></div>  
		</div> 
						

				<!-- Begin Content Inner -->
				    <div id="content_outmiddle">
						<div id="user_modules1">
<div id="user1">

                                               <div class="moduletable">
                    <h3>Highest Players</h3>
{include_php file='templates\wow\top.php'}  
                    </div>

    
                                    </div>
                                    <div id="user2">
                                               <div class="moduletable">
                    <h3>Strongest Guilds</h3>
                    Hello
</div>
    
                                    </div>  

									<div id="top"> 
					             		<div class="moduletable"> 
					
					
 
 
						<table class="contentpaneopen"> 
							<tbody><tr> 
								<td valign="top">
								<br>
					{$main}
							</td></tr> 
							<tr> 
								<td valign="top"> 
						 
									</td> 
							 </tr> 
						</tbody></table> 
								</div> 
	
							</div> 

					</div>
				</div>	
				<!-- Begin Content Downside -->
				<div class="clr"></div>
				<div id="content_down">
					<div id="content_down_left">
		                  
					</div>
				</div>	
				<!-- End Content Downside -->
			<div id="container2">
				<!-- End Page Content -->

				<div id="footer">
				<br>Created Modern Aac version by <a href="http://otland.net/members/kavvson/">Kavvson</a> | - Modern AAC Powered by IDE Engine -
<a href="{$path}/index.php/credits">Credits</a>, 
			Page rendered in: {$renderTime}<br />
					</div>
			</div>
		</div>
		<div class="clr"></div>
		<div id="designed_by">
			
		</div>
	</div>
</div>
</div></body></html>

Sorry wrong code tags in the first :/ Thank you for helping! ^^

Oh shit I ment, top.tpl and index.tpl.
And I don't use linux, I use windows XP.

Thanks for helping tho ^^ once again.
I would rep you if I could ;)
 
Last edited by a moderator:
No clue but it gives me this error,
PHP:
Fatal error: Uncaught exception 'Exception' with message 'Syntax Error in template "templates/wow\index.tpl" on line 205 " &lt;/div&gt; " include_php: file "'templates\wow\top.php'" is not readable' in C:\xampp\htdocs\system\application\libraries\sysplugins\smarty_internal_templatecompilerbase.php:432 Stack trace: #0 C:\xampp\htdocs\system\application\libraries\sysplugins\smarty_internal_compile_include_php.php(43): Smarty_Internal_TemplateCompilerBase->trigger_template_error('include_php: fi...') #1 C:\xampp\htdocs\system\application\libraries\sysplugins\smarty_internal_templatecompilerbase.php(260): Smarty_Internal_Compile_Include_Php->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), NULL, NULL, NULL) #2 C:\xampp\htdocs\system\application\libraries\sysplugins\smarty_internal_templatecompilerbase.php(121): Smarty_Internal_TemplateCompilerBase->callTagCompiler('include_php', Array) #3 C:\xampp\htdocs\system\application\libraries\sysplugins\smarty_internal_templateparser.php(2154): Smarty_ in C:\xampp\htdocs\system\application\libraries\sysplugins\smarty_internal_templatecompilerbase.php  on line 432
 
Code:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\xampp\htdocs\config.php on line 90

Why this happen I follow all steps :S
 
Back
Top