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

AAC How to enable News Ticker/News TickerBox?

olekpro

Member
Joined
Nov 1, 2014
Messages
121
Reaction score
6
How to enable News Ticker/News TickerBox? I don't have it on website its probably hidden. Where can i set it ON? Gesior 2012 tfs1.2
 
How to enable News Ticker/News TickerBox? I don't have it on website its probably hidden. Where can i set it ON? Gesior 2012 tfs1.2

On:

file: layouts/tibiacom/layout.php
has <?php echo $newsTicker; ?>
Do you have this in your layout?
 
On:

file: layouts/tibiacom/layout.php
has <?php echo $newsTicker; ?>
Do you have this in your layout?
i got it and?
I don't have news ticker box on website
ticker.PNG
Post automatically merged:

in latestnews.php

Code:
//show tickers if any in database or not blocked (tickers limit = 4)
$tickers = $SQL->query('SELECT * FROM `z_news_tickers` WHERE hide_ticker != 1 ORDER BY date DESC LIMIT 4;');
$number_of_tickers = 0;
if(is_object($tickers)) {
foreach($tickers as $ticker) {
if(is_int($number_of_tickers / 2))
        $color = "Odd";
else
        $color = "Even";
$tickers_to_add .= '<div id="TickerEntry-'.$number_of_tickers.'" class="Row" onclick=\'TickerAction("TickerEntry-'.$number_of_tickers.'")\'>
  <div class="'.$color.'">
    <div class="NewsTickerIcon" style="background-image: url('.$layout_name.'/images/news/icon_'.$ticker['image_id'].'.gif);"></div>
    <div id="TickerEntry-'.$number_of_tickers.'-Button" class="NewsTickerExtend" style="background-image: url('.$layout_name.'/images/general/plus.gif);"></div>
    <div class="NewsTickerText">
      <span class="NewsTickerDate">'.date("j M Y", $ticker['date']).' -</span>
      <div id="TickerEntry-'.$number_of_tickers.'-ShortText" class="NewsTickerShortText">';
i got commentt show tickers if any in database or not blocked.
I got post in data base z_news_tickers (there is corret schema) but think somewhere its blocked. i don't know where.. The news ticker box is hidden idk
HELP!
 
Last edited:
How to activate News Ticker / News TickerBox? I don't have it on the website, it's probably hidden. Where can I activate it? Gesior 2012 tfs1.2
:)
 
Code:
 $SQL->tableName('z_forum') . '.' . $SQL->fieldName('post_topic') . '=\'News Ticker\'' .
Create thread with topic News Ticker on News board on forum and it will become 'news ticker' on latestnews.
News tickers do not need topic, only content, so it works.
It's dumb, but it works :) It was added around 2009 when someone asked 'i need to add "news ticker"'.
 
Last edited:
Back
Top