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

[PHP+JS] Hourly countdown (With SERVER TIME!)

@up

in htdocs/layouts/tibiacom/layout.php

Lua:
 <?php
$lang['us']['time'] = "To server start remain: %s hours %s minutes %s seconds.";
printf($lang['pl']['time'],'<span id="hours"></span>','<span id="minutes"></span>','<span id="seconds"></span>'); ?>

Put that at the top of the php Page it should work it did for me so xD

if i helped Rep me :)
 
Was wondering if anyone could rescript this and make it work inside of this script..

http://otland.net/f118/gesior-aac-scrolling-newsticker-feature-scrollmachine-71429/


or some kind of scrolling new ticker thing like this script

inside Latestnews.php
Code:
 /**************************************** 
 ||   SCROLLNEWS FEATURE © Cybermaster  || 
 ||    * * * * * * OTland.net    * * * * * * || 
 ||* * * * * * * * * * * * * * * * * * *|| 
 -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ 
  
$news = $SQL->query('SELECT * FROM `z_scrolling_news` ORDER BY `id`;'); 
$main_content .= '<div id="TICKER" style="overflow:hidden;width:800px;float:left;border-top:1px solid #000000; border-bottom:1px solid #000000;" onmouseover="TICKER_PAUSED=true" onmouseout="TICKER_PAUSED=false">'; 
foreach($news as $scroll) { 
$main_content .= '<span style="background-color:'.$scroll['header_bgcolor'].';color:'.$scroll['header_color'].'">'.$scroll['header'].'</span>&nbsp;<span style="background-color:'.$scroll['text_bgcolor'].';">'.$scroll['text'].'&nbsp;|&nbsp;'; 
}
$main_content .= '</div><script type="text/javascript" src="scrolling_newsticker.js" language="javascript"></script><br/>';
 
where i put it
PHP:
<?php
$lang['us']['time'] = "To server start remain: %s hours %s minutes %s seconds.";
printf($lang['pl']['time'],'<span id="hours"></span>','<span id="minutes"></span>','<span id="seconds"></span>'); ?>
Im also having same issue of not knowing where to put this.
 
Back
Top